summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/cs47l85.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.cirrus.com>2020-01-14 16:18:41 +0000
committerMark Brown <broonie@kernel.org>2020-01-17 15:28:31 +0000
commit8ab6ddc5c51b09630f3c89eb410ac48e13a2f0ff (patch)
tree2c9364fea741659b2aa4dc72e6a4b794dd9b0532 /sound/soc/codecs/cs47l85.c
parent73ecf1a673d3502dff1445f06675aba65ff20ce7 (diff)
downloadlwn-8ab6ddc5c51b09630f3c89eb410ac48e13a2f0ff.tar.gz
lwn-8ab6ddc5c51b09630f3c89eb410ac48e13a2f0ff.zip
ASoC: madera: Update handling of DAPM routes for mono muxed outputs
Correctly link both channels on the DAC if an output muxed between a stereo and mono output. Without this one channel of the DAC may be erroneously powered down whilst in mono mode. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20200114161841.451-4-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs47l85.c')
-rw-r--r--sound/soc/codecs/cs47l85.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs47l85.c b/sound/soc/codecs/cs47l85.c
index 32fe7ffb7526..a69311008134 100644
--- a/sound/soc/codecs/cs47l85.c
+++ b/sound/soc/codecs/cs47l85.c
@@ -2507,7 +2507,8 @@ static int cs47l85_component_probe(struct snd_soc_component *component)
if (ret)
return ret;
- ret = madera_init_outputs(component, CS47L85_MONO_OUTPUTS);
+ ret = madera_init_outputs(component, NULL, CS47L85_MONO_OUTPUTS,
+ CS47L85_MONO_OUTPUTS);
if (ret)
return ret;