diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-10-25 17:41:58 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-28 00:19:59 +0000 |
commit | 5fe5b767dc6fb3df6fa6eaa8e05b727914f2bb4c (patch) | |
tree | 99c5814c3be1eeaaebe7f11fe051080828b3a545 /include/sound | |
parent | 98407efc1384b31cdcb1eeddc74ee35499d3418f (diff) | |
download | linux-stable-5fe5b767dc6fb3df6fa6eaa8e05b727914f2bb4c.tar.gz linux-stable-5fe5b767dc6fb3df6fa6eaa8e05b727914f2bb4c.tar.bz2 linux-stable-5fe5b767dc6fb3df6fa6eaa8e05b727914f2bb4c.zip |
ASoC: dapm: Do not pretend to support controls for non mixer/mux widgets
Controls on a path only have an effect if the sink on the path is either a
mixer or mux widget. Currently we sort of silently ignore controls on other
paths, but since they don't do anything having them on other paths does not
make much sense and it is probably safe to assume that if we see such a path
it is a mistake in the driver that registered the path. This patch modifies
snd_soc_dapm_add_path() to report an error if a path with and control is
encountered where we didn't expect a control. This also allows to simplify
the code quite a bit.
The patch also moves the connecting of the path lists out of
dapm_connect_mux() and dapm_connect_mixer() into snd_soc_dapm_add_path().
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
0 files changed, 0 insertions, 0 deletions