From af55ab16532d021841f6738d674eaec5c194f94c Mon Sep 17 00:00:00 2001 From: zhouwl Date: Fri, 29 Nov 2019 16:40:18 +0800 Subject: [PATCH] ASoC: tas2562 digital volume According to CTO-Audio colleagues suggestion, former stereo products, such as Lake, Doha, volume ramp only takes effect on the top speaker, the bottom one doesnt need it. In order to align with former products, they asked me change SofiaRow, left channel is the top one. Change-Id: I83c16d2b5e3ce2c2c59f6383d892e429873fa90e Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/1463746 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- sound/soc/codecs/tas2562-codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/tas2562-codec.c b/sound/soc/codecs/tas2562-codec.c index abf45c4b2247..caa16028ce29 100644 --- a/sound/soc/codecs/tas2562-codec.c +++ b/sound/soc/codecs/tas2562-codec.c @@ -682,7 +682,7 @@ static int tas2562_set_digital_volume(struct snd_kcontrol *pKcontrol, p_tas2562->spk_digital_vol = p_u_control->value.integer.value[0]; vol += p_tas2562->spk_digital_vol * 4; - ret = p_tas2562->bulk_write(p_tas2562, channel_both, TAS2562_DVC_REG, vol, 4); + ret = p_tas2562->bulk_write(p_tas2562, channel_left, TAS2562_DVC_REG, vol, 4); return ret; }