]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: mioa701_wm9713: Fix speaker event
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 15 Jan 2015 11:52:01 +0000 (12:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:57:18 +0000 (14:57 -0800)
commit6393f60525cc47c7456b78ea5e2bc03e7d6c69f9
tree919106665b8dc784c04af13f581e51120278b617
parent2ce87d6e511c11b4cf86d5b8fce4790e046ecee1
ASoC: mioa701_wm9713: Fix speaker event

commit 7331ea474e9e7a348541c207bdb6aa518c6403f4 upstream.

Commit f6b2a04590bb ("ASoC: pxa: mioa701_wm9713: Convert to table based DAPM
setup") converted the driver to register the board level DAPM elements with
the card's DAPM context rather than the CODEC's DAPM context. The change
overlooked that the speaker widget event callback accesses the widget's
codec field which is only valid if the widget has been registered in a CODEC
DAPM context. This patch modifies the callback to take an alternative route
to get the CODEC.

Fixes: f6b2a04590bb ("ASoC: pxa: mioa701_wm9713: Convert to table based DAPM
setup")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/pxa/mioa701_wm9713.c