From: 宋秀杰 Date: Mon, 20 Aug 2012 14:35:49 +0000 (+0800) Subject: phonepad: make rt3261 incall volume control work. X-Git-Tag: firefly_0821_release~8886^2~8 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9edeaf1839534f9ceeaca8b78470a491c8019939;p=firefly-linux-kernel-4.4.55.git phonepad: make rt3261 incall volume control work. --- diff --git a/sound/soc/codecs/rt3261.c b/sound/soc/codecs/rt3261.c index f7e18dd050a7..863991ccd304 100644 --- a/sound/soc/codecs/rt3261.c +++ b/sound/soc/codecs/rt3261.c @@ -821,10 +821,13 @@ static const struct snd_kcontrol_new rt3261_snd_controls[] = { SOC_DOUBLE_EXT_TLV("Speaker Playback Volume", RT3261_SPK_VOL, RT3261_L_VOL_SFT, RT3261_R_VOL_SFT, RT3261_VOL_RSCL_RANGE, 0, rt3261_vol_rescale_get, rt3261_vol_rescale_put, out_vol_tlv), + SOC_DOUBLE_EXT_TLV("Earpiece Playback Volume", RT3261_SPK_VOL, + RT3261_L_VOL_SFT, RT3261_R_VOL_SFT, RT3261_VOL_RSCL_RANGE, 0, + rt3261_vol_rescale_get, rt3261_vol_rescale_put, out_vol_tlv), /* Headphone Output Volume */ SOC_DOUBLE("HP Playback Switch", RT3261_HP_VOL, RT3261_L_MUTE_SFT, RT3261_R_MUTE_SFT, 1, 1), - SOC_DOUBLE_EXT_TLV("HP Playback Volume", RT3261_HP_VOL, + SOC_DOUBLE_EXT_TLV("Headphone Playback Volume", RT3261_HP_VOL, RT3261_L_VOL_SFT, RT3261_R_VOL_SFT, RT3261_VOL_RSCL_RANGE, 0, rt3261_vol_rescale_get, rt3261_vol_rescale_put, out_vol_tlv), /* OUTPUT Control */