ASoC: codecs: rt1011: Use component to get the dapm context in spk_mode_put
Subsystems (4)
PATCH 1/1 ASoC: codecs: rt1011: Use component to get the dapm context in spk_mode_put
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.
--- sound/soc/codecs/rt1011.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt1011.c +1 -1
@@ -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);
Signature · 1 line
2.53.0
Mark Brown
maintainerQuoted 3 lines · Peter Ujfalusi
The correct helper to use in
rt1011_recv_spk_mode_put()to retrieve the DAPM context issnd_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