]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ASoC: snd_soc_new_{mixer,mux,pga} make sure to use right DAPM context
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 9 Jun 2011 11:22:36 +0000 (13:22 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 9 Jun 2011 14:06:54 +0000 (15:06 +0100)
commit4b80b8c2eee5282dab57f094fd3893c0c09f750c
tree233898690a53e59335f2ebd3fda38845cabb911d
parent0cd114fff9ace7014c0d3ef8ab385fc5d3cf2d2f
ASoC: snd_soc_new_{mixer,mux,pga} make sure to use right DAPM context

Currently it is possible that snd_soc_new_{mixer,mux,pga} is called with a
DAPM context not matching the widgets context. This can lead to a wrong
prefix_len calculation, which will result in undefined behaviour. To avoid
this always use the DAPM context from the widget itself.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
sound/soc/soc-dapm.c