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

Clemens Ladisch cladisch at fastmail.net
Mon Jul 23 19:14:27 CEST 2007

Timur Tabi wrote:
> I'm building an ASOC driver, and I want to tell ALSA that my PCM and my I2S drivers 
> support every possible sample rate, because it's the codec that determines the real 
> limitations.  What SNDRV_PCM_RATE_xxx bit-pattern do I specify that will
> always match?

To indicate that the PCM device supports all sample rates between the
minimum and the maximum, set SNDRV_PCM_RATE_CONTINUOUS in addition to
the other supported bits.

However, in your case these bits should be set according to the
capabilities of the codec.


More information about the Alsa-devel mailing list