summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-04-20 20:34:54 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-18 10:23:45 +0200
commit31606a73baa35acdae6ab95ff5d3928e2d8b4cb0 (patch)
tree1d90c09f31bf8b26417ec49f8721144a5fcf1457 /sound
parentce154bd3bc436dd92a9084337c2b06d18a3e5d87 (diff)
downloadlinux-stable-31606a73baa35acdae6ab95ff5d3928e2d8b4cb0.tar.gz
linux-stable-31606a73baa35acdae6ab95ff5d3928e2d8b4cb0.tar.bz2
linux-stable-31606a73baa35acdae6ab95ff5d3928e2d8b4cb0.zip
ASoC: max98090: Generate notifications on changes for custom control
[ Upstream commit 13fcf676d9e102594effc686d98521ff5c90b925 ] The max98090 driver has some custom controls which share a put() function which returns 0 unconditionally, meaning that events are not generated when the value changes. Fix that. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220420193454.2647908-2-broonie@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/max98090.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index 779845e3a9e3..5b6405392f08 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -430,7 +430,7 @@ static int max98090_put_enab_tlv(struct snd_kcontrol *kcontrol,
mask << mc->shift,
sel << mc->shift);
- return 0;
+ return *select != val;
}
static const char *max98090_perf_pwr_text[] =