]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: max98090: Fix event generation for custom controls
authorMark Brown <broonie@kernel.org>
Thu, 28 Apr 2022 11:32:21 +0000 (12:32 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 3 May 2022 12:42:25 +0000 (13:42 +0100)
commit498a1a0367403cab13f190d94d2670e19bb5cc0e
tree44ede7e668c934a22255f6372f08218e0638b09d
parentc54720c22aa5f32cd872bb01f33781c14b3f96ca
ASoC: max98090: Fix event generation for custom controls

The previous fix for event generation for custom controls compared the
value already in the register with the value being written, missing the
logic that only applies the value to the register when the control is
already enabled. Fix this, compare the value cached in the driver data
rather than the register.

This should really be an autodisable control rather than open coded.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220428113221.15326-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98090.c