projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d5a6ed
)
ASoC: meson: g12a-tohdmitx: Fix event generation for S/PDIF mux
author
Mark Brown
<broonie@kernel.org>
Wed, 3 Jan 2024 18:34:04 +0000
(18:34 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 10 Jan 2024 16:16:51 +0000
(17:16 +0100)
[ Upstream commit
b036d8ef3120b996751495ce25994eea58032a98
]
When a control changes value the return value from _put() should be 1 so
we get events generated to userspace notifying applications of the change.
While the I2S mux gets this right the S/PDIF mux does not, fix the return
value.
Fixes:
c8609f3870f7
("ASoC: meson: add g12a tohdmitx control")
Signed-off-by: Mark Brown <broonie@kernel.org>
Link:
https://lore.kernel.org/r/20240103-meson-enum-val-v1-4-424af7a8fb91@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/meson/g12a-tohdmitx.c
patch
|
blob
|
history
diff --git
a/sound/soc/meson/g12a-tohdmitx.c
b/sound/soc/meson/g12a-tohdmitx.c
index
51b7703
..
b924341
100644
(file)
--- a/
sound/soc/meson/g12a-tohdmitx.c
+++ b/
sound/soc/meson/g12a-tohdmitx.c
@@
-118,7
+118,7
@@
static int g12a_tohdmitx_spdif_mux_put_enum(struct snd_kcontrol *kcontrol,
snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL);
- return
0
;
+ return
1
;
}
static SOC_ENUM_SINGLE_DECL(g12a_tohdmitx_spdif_mux_enum, TOHDMITX_CTRL0,