]> git.baikalelectronics.ru Git - kernel.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)
committerMark Brown <broonie@kernel.org>
Tue, 31 Mar 2020 18:23:55 +0000 (19:23 +0100)
commit55a8b38b0b7d1d06410b759c97f99ceaaa08a6f3
tree01faa143e636980230c43bc6b5f092bf340292a7
parent39bf2572d88a65d013a3171a9b2c3a136f336000
ASoC: dapm: connect virtual mux with default value

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>
sound/soc/soc-dapm.c