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 <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1463746
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
zhouwl 2019-11-29 16:40:18 +08:00 • committed by Wanlong Zhou
commit af55ab1653

View file

@ -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;
}