ASoC: dapm: Sort speakers after other outputs
authorMark Brown <broonie@kernel.org>
Fri, 24 Mar 2023 16:33:28 +0000 (16:33 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 30 Mar 2023 00:26:32 +0000 (01:26 +0100)
commit24e9e57f581dd3e90c4b63f066dab96c6ba4e05f
treeee9ddd7779796f1678a6b9d0d2f91386d8c2c104
parent461b56f26119b9fc47a83113a59c05be05e4c6fa
ASoC: dapm: Sort speakers after other outputs

Currently we sequence speakers with line and headphone outputs in DAPM.
This works well when speakers are integrate into a CODEC but when there is
an external speaker driver connected to a line or headphone output it can
mean that the speaker driver ends up getting sequenced such that it picks
up pops and clicks from the CODEC. Mask this by moving speakers after the
other outputs in DAPM.

We may want to consider doing this for headphones too but separate drivers
are less common there and headphone drivers often also function as line
outputs so the situation is less clear.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230324-asoc-dapm-spk-v1-1-e1f27f766505@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c