Skip to contentSkip to conversation

Cards and PCM instances

DISCUSSION Nikhil Rao 2 participants 2 messages Feb 17, 2006 – Feb 18, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Nikhil Rao

author
#1 lore raw

In "Writing an ALSA driver", the author has mentioned that each card can have upto 4 PCM instances.

Does a PCM instance correspond to an independent audio output ?

For e.g, in the project I am working the hardware has 2 audio outputs that would be used to render 2 separate PCM streams at the same time, would this configuration correspond to 2 different PCMs or to 2 different cards ?

Thanks,
Nikhil

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

#2 lore raw
Quoted 4 lines · On Thu, 16 Feb 2006 21:15:06 -0800 "Nikhil Rao" <[email protected]>…

In "Writing an ALSA driver", the author has mentioned that each card can have upto 4 PCM instances.

Does a PCM instance correspond to an independent audio output ?

Mostly, yes, it does, but they can also be related in some ways (eg. if the card has only one clock generator, all channels share the same clock frequency).

Quoted 3 lines

For e.g, in the project I am working the hardware has 2 audio outputs that would be used to render 2 separate PCM streams at the same time, would this configuration correspond to 2 different PCMs or to 2 different cards ?

2 PCMs is the most obvious config, IMO, expecially if the control interface is one. With 2 card instances you also need 2 control interfaces.

--
Giuliano.

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642