[alsa-devel] [PATCH 07/15] ASoC: twl6040: Support other sample rates

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Dec 7 14:26:38 CET 2010


On Mon, Dec 06, 2010 at 06:18:02PM -0600, Olaya, Margarita wrote:
> The twl6040 can support more sample rates other than 88.2 and 96k.
> 
> Signed-off-by: Margarita Olaya Cabrera <magi.olaya at ti.com>

Acked-by: Mark Brown <broonie at opensource.wolfsonmicro.com>

>  	rate = params_rate(params);
>  	switch (rate) {
> +	case 11250:
> +	case 22500:
> +	case 44100:
>  	case 88200:
>  		lppllctl |= TWL6040_LPLLFIN;
>  		priv->sysclk = 17640000;
>  		break;
> +	case 8000:
> +	case 16000:
> +	case 32000:
> +	case 48000:
>  	case 96000:
>  		lppllctl &= ~TWL6040_LPLLFIN;
>  		priv->sysclk = 19200000;

I'd expect to see more code for this unless the CODEC is always running
as clock slave?


More information about the Alsa-devel mailing list