Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283744
b: refs/heads/master
c: 717b8fa
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Nov 22, 2011
1 parent 8ea6f0e commit 7c852b3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 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: 12a7a709a09aac117b630264cdd526e20d4d0ce2
refs/heads/master: 717b8fae3873b4c83dda2274e8190f538c442000
6 changes: 3 additions & 3 deletions trunk/sound/soc/codecs/cs42l73.c
Original file line number Diff line number Diff line change
Expand Up @@ -1028,13 +1028,13 @@ static int cs42l73_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
switch (format) {
case SND_SOC_DAIFMT_DSP_B:
if (inv == SND_SOC_DAIFMT_IB_IF)
spc |= (PCM_MODE0 << 4);
spc |= PCM_MODE0;
if (inv == SND_SOC_DAIFMT_IB_NF)
spc |= (PCM_MODE1 << 4);
spc |= PCM_MODE1;
break;
case SND_SOC_DAIFMT_DSP_A:
if (inv == SND_SOC_DAIFMT_IB_IF)
spc |= (PCM_MODE1 << 4);
spc |= PCM_MODE1;
break;
default:
return -EINVAL;
Expand Down
18 changes: 9 additions & 9 deletions trunk/sound/soc/codecs/cs42l73.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,16 @@

/* CS42L73_ASPC, CS42L73_XSPC, CS42L73_VSPC */
#define SP_3ST (1 << 7)
#define SPDIF_I2S 0
#define SPDIF_I2S (0 << 6)
#define SPDIF_PCM (1 << 6)
#define PCM_MODE0 0
#define PCM_MODE1 1
#define PCM_MODE2 2
#define PCM_BO_MSBLSB 0
#define PCM_BO_LSBMSB 1
#define MCK_SCLK_64FS 0
#define MCK_SCLK_MCLK 2
#define MCK_SCLK_PREMCLK 3
#define PCM_MODE0 (0 << 4)
#define PCM_MODE1 (1 << 4)
#define PCM_MODE2 (2 << 4)
#define PCM_MODE_MASK (3 << 4)
#define PCM_BIT_ORDER (1 << 3)
#define MCK_SCLK_64FS (0 << 0)
#define MCK_SCLK_MCLK (2 << 0)
#define MCK_SCLK_PREMCLK (3 << 0)

/* CS42L73_xSPMMCC */
#define MS_MASTER (1 << 7)
Expand Down

0 comments on commit 7c852b3

Please sign in to comment.