Skip to contentSkip to conversation

Full duplex mode

DISCUSSION Carlos Munoz 3 participants 3 messages Apr 8, 2006

lore
Share & tools
lore
#0 lore raw

Hi all,

An alsa driver I've written supports full duplex mode (playback and capture simultaneously). Do I need to anything special to support full duplex mode ? I assume the playback_open(), etc and capture_open(), etc will both get called and from the driver point of view I'm just handling two streams, right ?

Thanks,

Carlos

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

#1 lore raw
Quoted 7 lines · Carlos Munoz

Hi all,

An alsa driver I've written supports full duplex mode (playback and capture simultaneously). Do I need to anything special to support full duplex mode ? I assume the playback_open(), etc and capture_open(), etc will both get called and from the driver point of view I'm just handling two streams, right ?

more or less correct. it depends on how you intend to manage synchronization between the two streams within your application.

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

#2 lore raw
Quoted 11 lines · Paul Davis
Quoted 7 lines · Carlos Munoz

Hi all,

An alsa driver I've written supports full duplex mode (playback and capture simultaneously). Do I need to anything special to support full duplex mode ? I assume the playback_open(), etc and capture_open(), etc will both get called and from the driver point of view I'm just handling two streams, right ?

more or less correct. it depends on how you intend to manage synchronization between the two streams within your application.

Note that you can support sample accurate start for both streams (linked streams). See pci/ice1712/ice1712.c - snd_ice1712_pro_trigger() for example.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642