diff mbox

ASoC: cs4349: Fix up setting PWR_DWN bit

Message ID 1437531753.3325.0.camel@ingics.com (mailing list archive)
State Accepted
Commit ec12693e5d03c7e6399ba1e9150908527b809f33
Headers show

Commit Message

Axel Lin July 22, 2015, 2:22 a.m. UTC
The PWR_DWN is Bit 7, so current code does not set the PWR_DWN bit. Fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/codecs/cs4349.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Howe, Tim July 30, 2015, 9:49 p.m. UTC | #1
On Tue, 21 Jul 2015, Axel Lin wrote:

> The PWR_DWN is Bit 7, so current code does not set the PWR_DWN bit. Fix it.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  sound/soc/codecs/cs4349.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
Another good catch, thank you!
Acked-by: Tim Howe <tim.howe@cirrus.com>
diff mbox

Patch

diff --git a/sound/soc/codecs/cs4349.c b/sound/soc/codecs/cs4349.c
index 852be85..0d010c2 100644
--- a/sound/soc/codecs/cs4349.c
+++ b/sound/soc/codecs/cs4349.c
@@ -326,7 +326,7 @@  static int cs4349_runtime_suspend(struct device *dev)
 	struct cs4349_private *cs4349 = dev_get_drvdata(dev);
 	int ret;
 
-	ret = regmap_update_bits(cs4349->regmap, CS4349_MISC, PWR_DWN, 1);
+	ret = regmap_update_bits(cs4349->regmap, CS4349_MISC, PWR_DWN, PWR_DWN);
 	if (ret < 0)
 		return ret;