Skip to content

Commit

Permalink
ASoC: correct s6000 I2S clock polarity
Browse files Browse the repository at this point in the history
According to the data sheet data is clocked out on the falling edge
and latched on the rising edge of the bit clock. While the left sample
is transmitted the word clock line is low.

Signed-off-by: Daniel Glöckner <dg@emlix.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Daniel Glöckner authored and Mark Brown committed Apr 6, 2009
1 parent 2b7dbbe commit 80fbe6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sound/soc/s6000/s6000-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/s6000/s6105-ipcam.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 80fbe6a

Please sign in to comment.