Re: How do I tell ALSA that my driver supports every possible sample rate?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux