* [PATCH] ASoC: codecs: rt1011: Use component to get the dapm context in spk_mode_put
@ 2026-03-10 6:53 Peter Ujfalusi
2026-03-11 10:47 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Peter Ujfalusi @ 2026-03-10 6:53 UTC (permalink / raw)
To: lgirdwood, broonie, kuninori.morimoto.gx; +Cc: linux-sound, ckeepax, stable
The correct helper to use in rt1011_recv_spk_mode_put() to retrieve the
DAPM context is snd_soc_component_to_dapm(), from kcontrol we will
receive NULL pointer.
Closes: https://github.com/thesofproject/linux/issues/5691
Fixes: 5b35bb517f27 ("ASoC: codecs: rt1011: convert to snd_soc_dapm_xxx()")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
sound/soc/codecs/rt1011.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/rt1011.c b/sound/soc/codecs/rt1011.c
index 9f34a6a35487..03f31d9d916e 100644
--- a/sound/soc/codecs/rt1011.c
+++ b/sound/soc/codecs/rt1011.c
@@ -1047,7 +1047,7 @@ static int rt1011_recv_spk_mode_put(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
struct snd_soc_component *component = snd_kcontrol_chip(kcontrol);
- struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_to_dapm(kcontrol);
+ struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(component);
struct rt1011_priv *rt1011 =
snd_soc_component_get_drvdata(component);
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: codecs: rt1011: Use component to get the dapm context in spk_mode_put
2026-03-10 6:53 [PATCH] ASoC: codecs: rt1011: Use component to get the dapm context in spk_mode_put Peter Ujfalusi
@ 2026-03-11 10:47 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2026-03-11 10:47 UTC (permalink / raw)
To: lgirdwood, kuninori.morimoto.gx, Peter Ujfalusi
Cc: linux-sound, ckeepax, stable
On Tue, 10 Mar 2026 08:53:50 +0200, Peter Ujfalusi wrote:
> The correct helper to use in rt1011_recv_spk_mode_put() to retrieve the
> DAPM context is snd_soc_component_to_dapm(), from kcontrol we will
> receive NULL pointer.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: codecs: rt1011: Use component to get the dapm context in spk_mode_put
commit: 30e4b2290cc2a8d1b9ddb9dcb9c981df1f2a7399
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-11 10:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-10 6:53 [PATCH] ASoC: codecs: rt1011: Use component to get the dapm context in spk_mode_put Peter Ujfalusi
2026-03-11 10:47 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox