From: Lars-Peter Clausen Date: Thu, 15 Jan 2015 11:52:01 +0000 (+0100) Subject: ASoC: mioa701_wm9713: Fix speaker event X-Git-Tag: fixes-v4.0-rc1~146^2~13^2~11^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7331ea474e9e7a348541c207bdb6aa518c6403f4;p=pandora-kernel.git ASoC: mioa701_wm9713: Fix speaker event 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed