Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154831
b: refs/heads/master
c: da9ff1f
h: refs/heads/master
i:
  154829: d671a97
  154827: b82d09d
  154823: 2e505e1
  154815: b90abbb
v: v3
  • Loading branch information
Mark Brown committed Jul 1, 2009
1 parent d8afaee commit 22472b1
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 1bdd7419910c1506151e7b9e2d60c6980e015f76
refs/heads/master: da9ff1f796e81976935407251815838bef9868d4
7 changes: 6 additions & 1 deletion trunk/sound/soc/pxa/pxa2xx-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ static int pxa2xx_i2s_hw_params(struct snd_pcm_substream *substream,

BUG_ON(IS_ERR(clk_i2s));
clk_enable(clk_i2s);
dai->private_data = dai;
pxa_i2s_wait();

if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
Expand Down Expand Up @@ -255,7 +256,10 @@ static void pxa2xx_i2s_shutdown(struct snd_pcm_substream *substream,
if ((SACR1 & (SACR1_DREC | SACR1_DRPL)) == (SACR1_DREC | SACR1_DRPL)) {
SACR0 &= ~SACR0_ENB;
pxa_i2s_wait();
clk_disable(clk_i2s);
if (dai->private_data != NULL) {
clk_disable(clk_i2s);
dai->private_data = NULL;
}
}
}

Expand Down Expand Up @@ -336,6 +340,7 @@ static int pxa2xx_i2s_probe(struct platform_device *dev)
return PTR_ERR(clk_i2s);

pxa_i2s_dai.dev = &dev->dev;
pxa_i2s_dai.private_data = NULL;
ret = snd_soc_register_dai(&pxa_i2s_dai);
if (ret != 0)
clk_put(clk_i2s);
Expand Down

0 comments on commit 22472b1

Please sign in to comment.