ASoC: simple-mux: add read function
authorMaarten Zanders <maarten.zanders@mind.be>
Fri, 28 Oct 2022 19:13:01 +0000 (21:13 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 3 Nov 2022 13:26:14 +0000 (13:26 +0000)
commitf7d97cb564a2ac5517ee7cc933de729e533d659a
tree6e1371f58f94a0f3617a1159657bfbb3f2f781d4
parenta984d8332d90afd2989e10b095ffdb2875d4bac8
ASoC: simple-mux: add read function

During initialisation DAPM tries to read the state of the MUX
being connected, resulting in this error log:
input-mux: ASoC: error at soc_component_read_no_lock on input-mux: -5

Provide a read function which allows DAPM to read the state of the
MUX.

Signed-off-by: Maarten Zanders <maarten.zanders@mind.be>
Link: https://lore.kernel.org/r/20221028191303.166115-1-maarten.zanders@mind.be
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/simple-mux.c