Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321353
b: refs/heads/master
c: d0ba4c0
h: refs/heads/master
i:
  321351: 992cf57
v: v3
  • Loading branch information
Dong Aisheng authored and Mark Brown committed Jul 24, 2012
1 parent 7fdeac1 commit 91011f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 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: c2e1d9073fc98f471067c0257a31b4818306ebe1
refs/heads/master: d0ba4c014934cb56f1eabb481ff8026b6d49d33c
16 changes: 15 additions & 1 deletion trunk/sound/soc/mxs/mxs-saif.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,22 @@ static int mxs_saif_hw_params(struct snd_pcm_substream *substream,

/* prepare clk in hw_param, enable in trigger */
clk_prepare(saif->clk);
if (saif != master_saif)
if (saif != master_saif) {
/*
* Set an initial clock rate for the saif internal logic to work
* properly. This is important when working in EXTMASTER mode
* that uses the other saif's BITCLK&LRCLK but it still needs a
* basic clock which should be fast enough for the internal
* logic.
*/
clk_enable(saif->clk);
ret = clk_set_rate(saif->clk, 24000000);
clk_disable(saif->clk);
if (ret)
return ret;

clk_prepare(master_saif->clk);
}

scr = __raw_readl(saif->base + SAIF_CTRL);

Expand Down

0 comments on commit 91011f3

Please sign in to comment.