[alsa-devel] [PATCH] ASoC: ak4642: fixup snd_soc_update_bits mask for PW_MGMT2

Liam Girdwood lrg at ti.com
Thu Jul 7 11:20:38 CEST 2011


On 07/07/11 01:58, Kuninori Morimoto wrote:
> mask didn't cover update-data
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> ---
> This patch based on asoc/for-3.1
> 
>  sound/soc/codecs/ak4642.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c
> index 4be0570..65f4604 100644
> --- a/sound/soc/codecs/ak4642.c
> +++ b/sound/soc/codecs/ak4642.c
> @@ -357,7 +357,7 @@ static int ak4642_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
>  	default:
>  		return -EINVAL;
>  	}
> -	snd_soc_update_bits(codec, PW_MGMT2, MS, data);
> +	snd_soc_update_bits(codec, PW_MGMT2, MS | MCKO | PMPLL, data);
>  	snd_soc_update_bits(codec, MD_CTL1, BCKO_MASK, bcko);
>  
>  	/* format type */

Acked-by: Liam Girdwood <lrg at ti.com>


More information about the Alsa-devel mailing list