]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dapm: allow muxes to force a disconnect
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 15 May 2019 13:18:55 +0000 (15:18 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 16 May 2019 11:13:23 +0000 (12:13 +0100)
commit12c898db0f7aa82c51e823b19dcf1f38c38889e3
treeebae0c4d5055bc1dcf4b186011312f2e80755ad5
parent3de5cefd48a8e86c53cec344250f0694b8e14e82
ASoC: dapm: allow muxes to force a disconnect

Let soc_dapm_mux_update_power() accept NULL as 'e' enum.

It makes the code a bit more robust and, more importantly, let the calling
mux force a disconnect of the output path if necessary.

This is useful if the dapm elements following the mux must be off
while updating the mux, to avoid glitches or force a (re)configuration.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Tested-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c