asoc: codecs: Fix pop noise while booting for ALC5639/40
Manoj Gangwal [Mon, 5 Mar 2012 09:30:09 +0000 (14:30 +0530)]
Fix for pop noise 'cut' from internal speaker while booting
on kai board.

Bug 929049

Change-Id: I9c3fe7e05d869709f50036042e70abc91722885e
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/87685
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

sound/soc/codecs/rt5639.c
sound/soc/codecs/rt5640.c

index 74d8a31..139503e 100644 (file)
@@ -657,8 +657,6 @@ static int rt5639_vol_rescale_put(struct snd_kcontrol *kcontrol,
 
 static const struct snd_kcontrol_new rt5639_snd_controls[] = {
        /* Speaker Output Volume */
-       SOC_DOUBLE("Speaker Playback Switch", RT5639_SPK_VOL,
-               RT5639_L_MUTE_SFT, RT5639_R_MUTE_SFT, 1, 1),
        SOC_DOUBLE_EXT_TLV("Speaker Playback Volume", RT5639_SPK_VOL,
                RT5639_L_VOL_SFT, RT5639_R_VOL_SFT, RT5639_VOL_RSCL_RANGE, 0,
                rt5639_vol_rescale_get, rt5639_vol_rescale_put, out_vol_tlv),
index dfeb1dc..e3d0af0 100644 (file)
@@ -661,9 +661,6 @@ static int rt5640_vol_rescale_put(struct snd_kcontrol *kcontrol,
 
 static const struct snd_kcontrol_new rt5640_snd_controls[] = {
        /* Speaker Output Volume */
-       SOC_DOUBLE("Speaker Playback Switch", RT5640_SPK_VOL,
-               RT5640_L_MUTE_SFT, RT5640_R_MUTE_SFT, 1, 1),
-
        SOC_DOUBLE_EXT_TLV("Speaker Playback Volume", RT5640_SPK_VOL,
                RT5640_L_VOL_SFT, RT5640_R_VOL_SFT, VOL_RESCALE_MIX_RANGE, 0,
                rt5640_vol_rescale_get, rt5640_vol_rescale_put, out_vol_tlv),