Skip to contentSkip to conversation

unable to do simultaneous playback and recording

DISCUSSION prashant chopade 2 participants 2 messages Aug 20, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

My understandings:

Quoted 2 lines

Define your meaning of "simultaneous playback and recording" more exactly.

I mean: Playing audio file stored on disk on speaker and at the same time recording audio from MIC and storing it on disk.

I don,t want to do multiplayback, I mean i don,t want to play two or more audio files at a time.

So you are saying that my driver(ATMEL-AT91SAM9263-AC97c) is not supporting the full duplex mode?

Thanks & Regards,

Prashant C.

Quoted 6 lines

prashant chopade wrote:

Hello,

As per discussion, I know that ALSA driver does not have support for simultaneous playback and recording.

Huh?  The full-duplex is of course supported.
Your example shown in the thread doesn't indicate the multi playbacks or so.

Quoted 2 lines

We are using AD1981B codec, so our hardware has a support for simultaneous playback and recording of an audio.

I think you are confused.

Quoted 6 lines

So what exactly I have to do to get a support for simultaneous playback and recording?
Shall I have to use sound server demons?

Is it really possible to do simultaneous playback and recording in linux?

Define your meaning of "simultaneous playback and recording" more exactly.

If it's about full-duplex, the answer is definitely yes. If it's multi-streams, the answer is yes, but there are
choices, e.g.
dmix/dsnoop plugin or a sound server.

Takashi

Quoted 32 lines
Quoted 31 lines · prashant chopade

Hello,

We using linux-2.6.27 on target board-AT91SAM9263EK.
  We are using ALSA library utilities (aplay &
arecord). But by using these utilities we can’t do simultaneous playback and recording.

We performed following activity to come to this conclusion:

//At the background we were recording

#arecord –f cd record_test_file &

//At the forefront we were playing pre-recorded audio file

#aplay –f cd pre_recorded_file

Quoted 8 lines
Quoted 2 lines

Our observation is that, recording stops when start playing file.

In the API side, the above should work fine.  It must be the driver that doesn't work with full-duplex.

Takashi

Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8. http://downloads.yahoo.com/in/internetexplorer/
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#1 lore raw

At Thu, 20 Aug 2009 15:35:41 +0530 (IST),

Quoted 5 lines · prashant chopade

Hello,

My understandings:

Quoted 8 lines
Quoted 2 lines

Define your meaning of "simultaneous playback and recording" more exactly.

I mean: Playing audio file stored on disk on speaker and at the same time recording audio from MIC and storing it on disk.

I don,t want to do multiplayback, I mean i don,t want to play two or more audio files at a time.

So you are saying that my driver(ATMEL-AT91SAM9263-AC97c) is not supporting the full duplex mode?

Yes.

Takashi