ASoC: SAMSUNG: Fix the inverted clocks handling for pcm driver
Subsystems (4)
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
@@ -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
Quoted 13 lines · Sangbeom Kim
Fix the inverted clocks handling for pcm cpu driver.
By usingSND_SOC_DAIFMT_NB_NF, Audio noise can be generated on SMDK.Signed-off-by Sangbeom Kim <[email protected]>---
sound/soc/samsung/pcm.c | 4 ++--1 files changed, 2 insertions(+), 2 deletions(-)sound/soc/samsung/pcm.c +0
-0
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 ...
Liam Girdwood
Acked-byQuoted 25 lines · Jassi Brar
Quoted 13 lines · Sangbeom Kim
Fix the inverted clocks handling for pcm cpu driver.
By usingSND_SOC_DAIFMT_NB_NF, Audio noise can be generated on SMDK.Signed-off-by Sangbeom Kim <[email protected]>--- sound/soc/samsung/pcm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)sound/soc/samsung/pcm.c +0
-0sound/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 forIB_NF...
Quoted 1 line
Acked-by Jassi Brar <[email protected]>
Mark Brown
AppliedQuoted 4 lines · Sangbeom Kim
Fix the inverted clocks handling for pcm cpu driver.
By usingSND_SOC_DAIFMT_NB_NF, Audio noise can be generated on SMDK.Signed-off-by Sangbeom Kim <[email protected]>
Applied, thanks.