Skip to contentSkip to conversation

ASoC: wm8994: Is the rate_reg for wm8994-aif2 correct?

PATCH Axel Lin 2 participants 2 messages Oct 4, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

hi Mark,
While reading wm8994.c, it seems the correct rate_reg for wm8994-aif2 should be WM8994_AIF2_RATE.
I cannot find wm8994 datasheet, could you help checking it?

Thanks,
Axel

Quoted 1 line

From 5b4cb1e9eae945dfe473139a80d16da6f2fee622 Mon Sep 17 00:00:00 2001

From: Axel Lin <[email protected]>
Date: Tue, 4 Oct 2011 22:00:01 +0800
Subject: [PATCH] ASoC: wm8994: Fix setting rate_reg for wm8994-aif2

For wm8994-aif2, the rate_reg should be WM8994_AIF2_RATE.

---
 sound/soc/codecs/wm8994.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8994.c +1 -1
index 4225e1f..d5b69c0 100644
@@ -2421,7 +2421,7 @@ static void wm8994_aif_shutdown(struct snd_pcm_substream *substream,
 		rate_reg = WM8994_AIF1_RATE;
 		break;
 	case 2:
-		rate_reg = WM8994_AIF1_RATE;
+		rate_reg = WM8994_AIF2_RATE;
 		break;
 	default:
 		break;
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 3 lines · Axel Lin

While reading wm8994.c, it seems the correct rate_reg for wm8994-aif2 should be WM8994_AIF2_RATE.
I cannot find wm8994 datasheet, could you help checking it?

Looks good, I've applied - thanks!