Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: tas5805m: add missing page switch.

In tas5805m_refresh, we switch pages to update the DSP volume control,
but we need to switch back to page 0 before trying to alter the
soft-mute control. This latter page-switch was missing.

Fixes: ec45268467f4 ("ASoC: add support for TAS5805M digital amplifier")
Signed-off-by: Daniel Beer <daniel.beer@igorinstitute.com>
Link: https://lore.kernel.org/r/1fea38a71ea6ab0225d19ab28d1fa12828d762d0.1675497326.git.daniel.beer@igorinstitute.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Daniel Beer and committed by
Mark Brown
e0576cd6 14732379

+3
+3
sound/soc/codecs/tas5805m.c
··· 203 203 set_dsp_scale(rm, 0x24, tas5805m->vol[0]); 204 204 set_dsp_scale(rm, 0x28, tas5805m->vol[1]); 205 205 206 + regmap_write(rm, REG_PAGE, 0x00); 207 + regmap_write(rm, REG_BOOK, 0x00); 208 + 206 209 /* Set/clear digital soft-mute */ 207 210 regmap_write(rm, REG_DEVICE_CTRL_2, 208 211 (tas5805m->is_muted ? DCTRL2_MUTE : 0) |