[alsa-devel] How do I tell ALSA that my driver supports every possible sample rate?

Timur Tabi timur at freescale.com
Mon Jul 23 19:06:19 CEST 2007


Liam Girdwood wrote:
>
> If your lucky enough to have this hardware, I think I would probably set
> the I2S and DMA rates as SNDRV_PCM_RATE_8000_192000.

The problem is that this option only lists a selection of bit rates, and this particular 
macro also skips 5512 Hz.  I'm looking for something that's future-proof.

I was thinking perhaps "(u32) -1", but this also turns on SNDRV_PCM_RATE_KNOT, and don't 
you need to have some kind of callback function for KNOT?

BTW, I'm not sure why you say if I'm lucky enough.  The PCM driver, for instance, is just 
a front-end to the DMA controller.  DMA obviously doesn't care about sample rates, so it 
makes sense that most PCM drivers can handle any rate.  Or am I missing something?

-- 
Timur Tabi
Linux Kernel Developer @ Freescale


More information about the Alsa-devel mailing list