23 Jul
2007
23 Jul
'07
7:06 p.m.
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