summaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra/tegra_i2s.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-04 08:54:40 -0700
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-04 08:54:40 -0700
commit469bb638dc2a6ea87ea56256f25cc964deb3cf2b (patch)
tree882c6a76805a4f705d5a29ff58c71f93ede4b395 /sound/soc/tegra/tegra_i2s.c
parentb5f9cfed12dc639cce5a8b6e741352980e05a8a9 (diff)
parent8e9ddf811ba021506d2316fcfe619faa0ab3f567 (diff)
downloadblackbird-op-linux-469bb638dc2a6ea87ea56256f25cc964deb3cf2b.tar.gz
blackbird-op-linux-469bb638dc2a6ea87ea56256f25cc964deb3cf2b.zip
Merge branch 'for-3.0' into for-3.1
Diffstat (limited to 'sound/soc/tegra/tegra_i2s.c')
-rw-r--r--sound/soc/tegra/tegra_i2s.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra_i2s.c b/sound/soc/tegra/tegra_i2s.c
index 2e5685512db0..f36b9969cfec 100644
--- a/sound/soc/tegra/tegra_i2s.c
+++ b/sound/soc/tegra/tegra_i2s.c
@@ -222,12 +222,18 @@ static int tegra_i2s_hw_params(struct snd_pcm_substream *substream,
if (i2sclock % (2 * srate))
reg |= TEGRA_I2S_TIMING_NON_SYM_ENABLE;
+ if (!i2s->clk_refs)
+ clk_enable(i2s->clk_i2s);
+
tegra_i2s_write(i2s, TEGRA_I2S_TIMING, reg);
tegra_i2s_write(i2s, TEGRA_I2S_FIFO_SCR,
TEGRA_I2S_FIFO_SCR_FIFO2_ATN_LVL_FOUR_SLOTS |
TEGRA_I2S_FIFO_SCR_FIFO1_ATN_LVL_FOUR_SLOTS);
+ if (!i2s->clk_refs)
+ clk_disable(i2s->clk_i2s);
+
return 0;
}
OpenPOWER on IntegriCloud