[alsa-devel] Requiring the same sample rate for playback and record?

Timur Tabi timur at freescale.com
Fri Jun 20 21:08:50 CEST 2008


In my driver, how do I tell ALSA that the sample rate for playback must be the
same as for capture?

I know I can have my driver remember the sample rate for the first stream open,
and then if the second stream doesn't specify the same sample rate, it can
reject it, but this is inelegant.  I'm hoping there's a more straightforward way.

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the Alsa-devel mailing list