]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.19.31/asoc-codecs-pcm186x-fix-energysense-sleep-bit.patch
Linux 4.19.31
[thirdparty/kernel/stable-queue.git] / releases / 4.19.31 / asoc-codecs-pcm186x-fix-energysense-sleep-bit.patch
CommitLineData
eedc2696
GKH
1From 05bd7fcdd06b19a10f069af1bea3ad9abac038d7 Mon Sep 17 00:00:00 2001
2From: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
3Date: Tue, 19 Feb 2019 16:29:28 +0000
4Subject: ASoC: codecs: pcm186x: Fix energysense SLEEP bit
5
6From: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
7
8commit 05bd7fcdd06b19a10f069af1bea3ad9abac038d7 upstream.
9
10The ADCs are sleeping when the SLEEP bit is set and running when it's
11cleared, so the bit should be inverted.
12Tested on pcm1863.
13
14Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
15Acked-by: Andrew F. Davis <afd@ti.com>
16Signed-off-by: Mark Brown <broonie@kernel.org>
17Cc: stable@vger.kernel.org
18Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19
20---
21 sound/soc/codecs/pcm186x.c | 6 +++---
22 1 file changed, 3 insertions(+), 3 deletions(-)
23
24--- a/sound/soc/codecs/pcm186x.c
25+++ b/sound/soc/codecs/pcm186x.c
26@@ -158,7 +158,7 @@ static const struct snd_soc_dapm_widget
27 * Put the codec into SLEEP mode when not in use, allowing the
28 * Energysense mechanism to operate.
29 */
30- SND_SOC_DAPM_ADC("ADC", "HiFi Capture", PCM186X_POWER_CTRL, 1, 0),
31+ SND_SOC_DAPM_ADC("ADC", "HiFi Capture", PCM186X_POWER_CTRL, 1, 1),
32 };
33
34 static const struct snd_soc_dapm_widget pcm1865_dapm_widgets[] = {
35@@ -184,8 +184,8 @@ static const struct snd_soc_dapm_widget
36 * Put the codec into SLEEP mode when not in use, allowing the
37 * Energysense mechanism to operate.
38 */
39- SND_SOC_DAPM_ADC("ADC1", "HiFi Capture 1", PCM186X_POWER_CTRL, 1, 0),
40- SND_SOC_DAPM_ADC("ADC2", "HiFi Capture 2", PCM186X_POWER_CTRL, 1, 0),
41+ SND_SOC_DAPM_ADC("ADC1", "HiFi Capture 1", PCM186X_POWER_CTRL, 1, 1),
42+ SND_SOC_DAPM_ADC("ADC2", "HiFi Capture 2", PCM186X_POWER_CTRL, 1, 1),
43 };
44
45 static const struct snd_soc_dapm_route pcm1863_dapm_routes[] = {