]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: dapm: connect virtual mux with default value
author이경택 <gt82.lee@samsung.com>
Tue, 31 Mar 2020 07:55:16 +0000 (16:55 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 14:11:58 +0000 (16:11 +0200)
commit13b267c8d7921b8b6721dd0d928aeccff49136cf
tree3ac74b994e8e3099c47584cb0b505a7abeab729a
parent758cd462c13b84675c0a988ece7c5a232e1260f6
ASoC: dapm: connect virtual mux with default value

commit 3bbbb7728fc853d71dbce4073fef9f281fbfb4dd upstream.

Since a virtual mixer has no backing registers
to decide which path to connect,
it will try to match with initial state.
This is to ensure that the default mixer choice will be
correctly powered up during initialization.
Invert flag is used to select initial state of the virtual switch.
Since actual hardware can't be disconnected by virtual switch,
connected is better choice as initial state in many cases.

Signed-off-by: Gyeongtaek Lee <gt82.lee@samsung.com>
Link: https://lore.kernel.org/r/01a301d60731$b724ea10$256ebe30$@samsung.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-dapm.c