Skip to contentSkip to conversation

ASoC: SAMSUNG: Fix the inverted clocks handling for pcm driver

PATCH Applied Sangbeom Kim 4 participants 4 messages Apr 9, 2011 – Apr 11, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: SAMSUNG: Fix the inverted clocks handling for pcm driver

Fix the inverted clocks handling for pcm cpu driver.
By using SND_SOC_DAIFMT_NB_NF, Audio noise can be generated on SMDK.

---
 sound/soc/samsung/pcm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/samsung/pcm.c +2 -2
index 38aac7d..9c7e8b4 100644
@@ -350,8 +350,8 @@ static int s3c_pcm_set_fmt(struct snd_soc_dai *cpu_dai,
 	ctl = readl(regs + S3C_PCM_CTL);
 
 	switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
-	case SND_SOC_DAIFMT_NB_NF:
-		/* Nothing to do, NB_NF by default */
+	case SND_SOC_DAIFMT_IB_NF:
+		/* Nothing to do, IB_NF by default */
 		break;
 	default:
 		dev_err(pcm->dev, "Unsupported clock inversion!\n");
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Sangbeom Kim

Fix the inverted clocks handling for pcm cpu driver.
By using SND_SOC_DAIFMT_NB_NF, Audio noise can be generated on SMDK.

---
 sound/soc/samsung/pcm.c |    4 ++--

 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/samsung/pcm.c +0 -0
index 38aac7d..9c7e8b4 100644

sound/soc/samsung/pcm.c static int s3c_pcm_set_fmt(struct snd_soc_dai *cpu_dai, · line 354

Quoted 7 lines
sound/soc/samsung/pcm.c +2 -2
@@ -350,8 +350,8 @@ static int s3c_pcm_set_fmt(struct snd_soc_dai *cpu_dai,
        ctl = readl(regs + S3C_PCM_CTL);
 
        switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
-       case SND_SOC_DAIFMT_NB_NF:
-               /* Nothing to do, NB_NF by default */
+       case SND_SOC_DAIFMT_IB_NF:
+               /* Nothing to do, IB_NF by default */

Assuming you already compared screenshot
of a scope and what's mentioned in the manual for IB_NF ...

Acked-by
#2 lore raw
Quoted 25 lines · Jassi Brar
Quoted 13 lines · Sangbeom Kim

Fix the inverted clocks handling for pcm cpu driver.
By using SND_SOC_DAIFMT_NB_NF, Audio noise can be generated on SMDK.

---
 sound/soc/samsung/pcm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/samsung/pcm.c +0 -0
index 38aac7d..9c7e8b4 100644

sound/soc/samsung/pcm.c static int s3c_pcm_set_fmt(struct snd_soc_dai *cpu_dai, · line 354

Quoted 7 lines
sound/soc/samsung/pcm.c +2 -2
@@ -350,8 +350,8 @@ static int s3c_pcm_set_fmt(struct snd_soc_dai *cpu_dai,
       ctl = readl(regs + S3C_PCM_CTL);
 
       switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
-       case SND_SOC_DAIFMT_NB_NF:
-               /* Nothing to do, NB_NF by default */
+       case SND_SOC_DAIFMT_IB_NF:
+               /* Nothing to do, IB_NF by default */

Assuming you already compared screenshot
of a scope and what's mentioned in the manual for IB_NF ...

Quoted 1 line