Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206591
b: refs/heads/master
c: 4d53952
h: refs/heads/master
i:
  206589: 7af1af3
  206587: 2b346c2
  206583: a0f4f31
  206575: edeaf62
  206559: 2a01e73
  206527: 96a08ff
  206463: f6fd6bf
  206335: 441ebf9
v: v3
  • Loading branch information
Mark Brown committed Jul 13, 2010
1 parent a515770 commit 4b2a770
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 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: 66b47fdb851924956b6e4696fb43a3496ae2c462
refs/heads/master: 4d53952a396d7fcde295b6eedee1f588dfb8464c
27 changes: 11 additions & 16 deletions trunk/sound/soc/sh/fsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,20 +674,15 @@ static int fsi_dai_startup(struct snd_pcm_substream *substream,

/* clock inversion (CKG2) */
data = 0;
switch (SH_FSI_INVERSION_MASK & flags) {
case SH_FSI_LRM_INV:
data = 1 << 12;
break;
case SH_FSI_BRM_INV:
data = 1 << 8;
break;
case SH_FSI_LRS_INV:
data = 1 << 4;
break;
case SH_FSI_BRS_INV:
data = 1 << 0;
break;
}
if (SH_FSI_LRM_INV & flags)
data |= 1 << 12;
if (SH_FSI_BRM_INV & flags)
data |= 1 << 8;
if (SH_FSI_LRS_INV & flags)
data |= 1 << 4;
if (SH_FSI_BRS_INV & flags)
data |= 1 << 0;

fsi_reg_write(fsi, CKG2, data);

/* do fmt, di fmt */
Expand Down Expand Up @@ -717,15 +712,15 @@ static int fsi_dai_startup(struct snd_pcm_substream *substream,
break;
case SH_FSI_FMT_TDM:
msg = "TDM";
data = CR_FMT(CR_TDM) | (fsi->chan - 1);
fsi->chan = is_play ?
SH_FSI_GET_CH_O(flags) : SH_FSI_GET_CH_I(flags);
data = CR_FMT(CR_TDM) | (fsi->chan - 1);
break;
case SH_FSI_FMT_TDM_DELAY:
msg = "TDM Delay";
data = CR_FMT(CR_TDM_D) | (fsi->chan - 1);
fsi->chan = is_play ?
SH_FSI_GET_CH_O(flags) : SH_FSI_GET_CH_I(flags);
data = CR_FMT(CR_TDM_D) | (fsi->chan - 1);
break;
default:
dev_err(dai->dev, "unknown format.\n");
Expand Down

0 comments on commit 4b2a770

Please sign in to comment.