mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 22:10:51 +07:00
ASoC: Fix WM8962 headphone volume update for use of advanced caches
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com> Cc: stable@kernel.org
This commit is contained in:
parent
064d58ee3a
commit
0f82bdf572
@ -1999,12 +1999,12 @@ static int wm8962_put_hp_sw(struct snd_kcontrol *kcontrol,
|
||||
return 0;
|
||||
|
||||
/* If the left PGA is enabled hit that VU bit... */
|
||||
if (reg_cache[WM8962_PWR_MGMT_2] & WM8962_HPOUTL_PGA_ENA)
|
||||
if (snd_soc_read(codec, WM8962_PWR_MGMT_2) & WM8962_HPOUTL_PGA_ENA)
|
||||
return snd_soc_write(codec, WM8962_HPOUTL_VOLUME,
|
||||
reg_cache[WM8962_HPOUTL_VOLUME]);
|
||||
|
||||
/* ...otherwise the right. The VU is stereo. */
|
||||
if (reg_cache[WM8962_PWR_MGMT_2] & WM8962_HPOUTR_PGA_ENA)
|
||||
if (snd_soc_read(codec, WM8962_PWR_MGMT_2) & WM8962_HPOUTR_PGA_ENA)
|
||||
return snd_soc_write(codec, WM8962_HPOUTR_VOLUME,
|
||||
reg_cache[WM8962_HPOUTR_VOLUME]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user