Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305592
b: refs/heads/master
c: 7e811ae
h: refs/heads/master
v: v3
  • Loading branch information
M R Swami Reddy authored and Mark Brown committed Apr 5, 2012
1 parent 1036cab commit 42ddd30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7fda2ba82b7531158c68f700fa806e645ff3b7c
refs/heads/master: 7e811ae74b12392fd2f6d6dc9bdee020814e2a0e
13 changes: 5 additions & 8 deletions trunk/sound/soc/codecs/lm49453.c
Original file line number Diff line number Diff line change
Expand Up @@ -1177,27 +1177,24 @@ static int lm49453_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
{
struct snd_soc_codec *codec = codec_dai->codec;

int aif_val = 0;
u16 aif_val;
int mode = 0;
int clk_phase = 0;
int clk_shift = 0;

switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
case SND_SOC_DAIFMT_CBS_CFS:
aif_val = ~LM49453_AUDIO_PORT1_BASIC_CLK_MS |
~LM49453_AUDIO_PORT1_BASIC_SYNC_MS;
aif_val = 0;
break;
case SND_SOC_DAIFMT_CBS_CFM:
aif_val = ~LM49453_AUDIO_PORT1_BASIC_CLK_MS |
LM49453_AUDIO_PORT1_BASIC_SYNC_MS;
aif_val = LM49453_AUDIO_PORT1_BASIC_SYNC_MS;
break;
case SND_SOC_DAIFMT_CBM_CFS:
aif_val = LM49453_AUDIO_PORT1_BASIC_CLK_MS |
~LM49453_AUDIO_PORT1_BASIC_SYNC_MS;
aif_val = LM49453_AUDIO_PORT1_BASIC_CLK_MS;
break;
case SND_SOC_DAIFMT_CBM_CFM:
aif_val = LM49453_AUDIO_PORT1_BASIC_CLK_MS |
LM49453_AUDIO_PORT1_BASIC_SYNC_MS;
LM49453_AUDIO_PORT1_BASIC_SYNC_MS;
break;
default:
return -EINVAL;
Expand Down

0 comments on commit 42ddd30

Please sign in to comment.