Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286763
b: refs/heads/master
c: 6b35f92
h: refs/heads/master
i:
  286761: b390034
  286759: d9c791d
v: v3
  • Loading branch information
Fabio Estevam authored and Mark Brown committed Jan 20, 2012
1 parent 637df08 commit 7751a42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fed22007113cb857e917913ce016d9b539dc3a80
refs/heads/master: 6b35f924b80a0e6d71711e66f5b3c16f427f3d2a
5 changes: 5 additions & 0 deletions trunk/sound/soc/mxs/mxs-saif.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ static int mxs_saif_set_clk(struct mxs_saif *saif,
*
* If MCLK is not used, we just set saif clk to 512*fs.
*/
clk_prepare_enable(master_saif->clk);

if (master_saif->mclk_in_use) {
if (mclk % 32 == 0) {
scr &= ~BM_SAIF_CTRL_BITCLK_BASE_RATE;
Expand All @@ -133,13 +135,16 @@ static int mxs_saif_set_clk(struct mxs_saif *saif,
ret = clk_set_rate(master_saif->clk, 384 * rate);
} else {
/* SAIF MCLK should be either 32x or 48x */
clk_disable_unprepare(master_saif->clk);
return -EINVAL;
}
} else {
ret = clk_set_rate(master_saif->clk, 512 * rate);
scr &= ~BM_SAIF_CTRL_BITCLK_BASE_RATE;
}

clk_disable_unprepare(master_saif->clk);

if (ret)
return ret;

Expand Down

0 comments on commit 7751a42

Please sign in to comment.