From: Lars-Peter Clausen Date: Sat, 25 Oct 2014 15:41:57 +0000 (+0200) Subject: ASoC: dapm: Do not add un-muxed paths to MUX control X-Git-Tag: omap-for-v3.19/fixes-rc1~126^2~20^2~25^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98407efc1384b31cdcb1eeddc74ee35499d3418f;p=pandora-kernel.git ASoC: dapm: Do not add un-muxed paths to MUX control Paths that are directly connected to a MUX widget are not affected by changes to the MUX's control. Rather than checking if a path is directly connected each time the MUX is updated do it only once when MUX is created. We can also remove the check for e->texts[mux] != NULL, since if that condition was true the code would have had already crashed much earlier (And generally speaking if a enum's 'texts' entry is NULL it's a bug in the driver). Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed