]>
Commit | Line | Data |
---|---|---|
eedc2696 GKH |
1 | From 05bd7fcdd06b19a10f069af1bea3ad9abac038d7 Mon Sep 17 00:00:00 2001 |
2 | From: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> | |
3 | Date: Tue, 19 Feb 2019 16:29:28 +0000 | |
4 | Subject: ASoC: codecs: pcm186x: Fix energysense SLEEP bit | |
5 | ||
6 | From: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> | |
7 | ||
8 | commit 05bd7fcdd06b19a10f069af1bea3ad9abac038d7 upstream. | |
9 | ||
10 | The ADCs are sleeping when the SLEEP bit is set and running when it's | |
11 | cleared, so the bit should be inverted. | |
12 | Tested on pcm1863. | |
13 | ||
14 | Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> | |
15 | Acked-by: Andrew F. Davis <afd@ti.com> | |
16 | Signed-off-by: Mark Brown <broonie@kernel.org> | |
17 | Cc: stable@vger.kernel.org | |
18 | Signed-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[] = { |