[alsa-devel] [PATCH] ASoC: Fix merge issue with WM8962 control addition

Liam Girdwood lrg at slimlogic.co.uk
Tue Sep 21 15:06:52 CEST 2010


On Mon, 2010-09-20 at 19:27 +0100, Mark Brown wrote:
> Let's not add the core controls twice.
> 
> Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
> ---
>  sound/soc/codecs/wm8962.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
> index 28adc6c..c4deea1 100644
> --- a/sound/soc/codecs/wm8962.c
> +++ b/sound/soc/codecs/wm8962.c
> @@ -1845,8 +1845,6 @@ static int wm8962_probe(struct snd_soc_codec *codec)
>  	wm8962->reg_cache[WM8962_HPOUTL_VOLUME] |= WM8962_HPOUT_VU;
>  	wm8962->reg_cache[WM8962_HPOUTR_VOLUME] |= WM8962_HPOUT_VU;
>  
> -	snd_soc_add_controls(codec, wm8962_snd_controls,
> -			     ARRAY_SIZE(wm8962_snd_controls));
>  	wm8962_add_widgets(codec);
>  
>  	wm8962_init_beep(codec);

Acked-by: Liam Girdwood <lrg at slimlogic.co.uk>
-- 
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk



More information about the Alsa-devel mailing list