[PATCH 03/14] ASoC: correct s6000 I2S clock polarity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Daniel Glöckner <dg@xxxxxxxxx>
According to the data sheet data is clocked out on the falling edgeand latched on the rising edge of the bit clock. While the left sampleis transmitted the word clock line is low.
Signed-off-by: Daniel Glöckner <dg@xxxxxxxxx>Signed-off-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>--- sound/soc/s6000/s6000-i2s.c   |    4 ++-- sound/soc/s6000/s6105-ipcam.c |    2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/s6000/s6000-i2s.c b/sound/soc/s6000/s6000-i2s.cindex dcc7904..c5cda18 100644--- a/sound/soc/s6000/s6000-i2s.c+++ b/sound/soc/s6000/s6000-i2s.c@@ -252,10 +252,10 @@ static int s6000_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai, 	}  	switch (fmt & SND_SOC_DAIFMT_INV_MASK) {-	case SND_SOC_DAIFMT_IB_IF:+	case SND_SOC_DAIFMT_NB_NF: 		w |= S6_I2S_LEFT_FIRST; 		break;-	case SND_SOC_DAIFMT_IB_NF:+	case SND_SOC_DAIFMT_NB_IF: 		w |= S6_I2S_RIGHT_FIRST; 		break; 	default:diff --git a/sound/soc/s6000/s6105-ipcam.c b/sound/soc/s6000/s6105-ipcam.cindex 21c4f55..b5f95f9 100644--- a/sound/soc/s6000/s6105-ipcam.c+++ b/sound/soc/s6000/s6105-ipcam.c@@ -43,7 +43,7 @@ static int s6105_hw_params(struct snd_pcm_substream *substream,  	/* set cpu DAI configuration */ 	ret = snd_soc_dai_set_fmt(cpu_dai, SND_SOC_DAIFMT_CBM_CFM |-					   SND_SOC_DAIFMT_IB_IF);+					   SND_SOC_DAIFMT_NB_NF); 	if (ret < 0) 		return ret; -- 1.6.2.2
_______________________________________________Alsa-devel mailing listAlsa-devel@xxxxxxxxxxxxxxxxxxxx://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux