Commit eedf8a12 authored by Jonghwan Choi's avatar Jonghwan Choi Committed by Mark Brown

ASoC: tas2562: Fixed incorrect amp_level setting.

According to the tas2562 datasheet,the bits[5:1] represents the amp_level value.
So to set the amp_level value correctly,the shift value should be set to 1.
Signed-off-by: default avatarJonghwan Choi <charlie.jh@kakaocorp.com>
Acked-by: default avatarDan Murphy <dmurphy@ti.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200319140043.GA6688@jhbirdchoi-MS-7B79Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a168dae5
...@@ -409,7 +409,7 @@ static const struct snd_kcontrol_new vsense_switch = ...@@ -409,7 +409,7 @@ static const struct snd_kcontrol_new vsense_switch =
1, 1); 1, 1);
static const struct snd_kcontrol_new tas2562_snd_controls[] = { static const struct snd_kcontrol_new tas2562_snd_controls[] = {
SOC_SINGLE_TLV("Amp Gain Volume", TAS2562_PB_CFG1, 0, 0x1c, 0, SOC_SINGLE_TLV("Amp Gain Volume", TAS2562_PB_CFG1, 1, 0x1c, 0,
tas2562_dac_tlv), tas2562_dac_tlv),
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment