[alsa-devel] [PATCH] [v2] ASoC: support all possible sample rates in the WM8776 driver

Mark Brown broonie at opensource.wolfsonmicro.com
Fri Sep 16 18:48:39 CEST 2011

On Fri, Sep 16, 2011 at 11:47:05AM -0500, Timur Tabi wrote:
> Mark Brown wrote:
> > No, it doesn't - it just blindly stores the sample rate in the private
> > data.  There's no list at all there, the only checking that's done is
> > for the DAI ID.

> Wait, what?  This is the list I am talking about:

> #define WM8776_RATES (SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 |\
> 		      SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 |\
> 		      SNDRV_PCM_RATE_96000)

> Is this not a list of sample rates that the driver says it supports?

It is.  It's not referenced at all in set_sysclk().

More information about the Alsa-devel mailing list