Skip to contentSkip to conversation

ASoC: rt5645: Fix updating wrong register for T5645_AIF2 case

PATCH Applied Axel Lin 3 participants 3 messages May 17, 2014 – May 19, 2014

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: rt5645: Fix updating wrong register for T5645_AIF2 case

This looks like a copy-paste bug, fix it.

---
Hi,
I don't have this h/w, so please test if this patch works. Axel

 sound/soc/codecs/rt5645.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/rt5645.c +2 -2
index 68923ec..ab97d72 100644
@@ -1932,8 +1932,8 @@ static int rt5645_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 			RT5645_I2S_MS_MASK | RT5645_I2S_BP_MASK |
 			RT5645_I2S_DF_MASK, reg_val);
 		break;
-	case  RT5645_AIF2:
-		snd_soc_update_bits(codec, RT5645_I2S1_SDP,
+	case RT5645_AIF2:
+		snd_soc_update_bits(codec, RT5645_I2S2_SDP,
 			RT5645_I2S_MS_MASK | RT5645_I2S_BP_MASK |
 			RT5645_I2S_DF_MASK, reg_val);
 		break;
Signature · 1 line
1.8.3.2
maintainer
#1 lore raw

Re: [PATCH RFT] ASoC: rt5645: Fix updating wrong registerforT5645_AIF2 case

Quoted 8 lines

-----Original Message-----
From: Axel Lin [mailto:[email protected]]
Sent: Saturday, May 17, 2014 7:18 PM
To: Mark Brown
Cc: Oder Chiou; Bard Liao; Liam Girdwood; [email protected]
Subject: [PATCH RFT] ASoC: rt5645: Fix updating wrong register forT5645_AIF2 case

Quoted 7 lines

This looks like a copy-paste bug, fix it.

---
Hi,
I don't have this h/w, so please test if this patch works. Axel

We've tested it, and it works properly, thanks.