Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305813
b: refs/heads/master
c: f33238e
h: refs/heads/master
i:
  305811: 8ff7d7c
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed May 19, 2012
1 parent 0cde495 commit 4b2c2e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 9c59dd342e4dd3c0bab5a9cad1aca7ed9501cbf8
refs/heads/master: f33238e96f619d9888713c07dcd92e4518879282
7 changes: 5 additions & 2 deletions trunk/sound/soc/sh/fsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1232,15 +1232,16 @@ static int fsi_dai_startup(struct snd_pcm_substream *substream,
{
struct fsi_priv *fsi = fsi_get_priv(substream);

return fsi_hw_startup(fsi, fsi_stream_get(fsi, substream), dai->dev);
fsi->rate = 0;

return 0;
}

static void fsi_dai_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{
struct fsi_priv *fsi = fsi_get_priv(substream);

fsi_hw_shutdown(fsi, dai->dev);
fsi->rate = 0;
}

Expand All @@ -1254,11 +1255,13 @@ static int fsi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
switch (cmd) {
case SNDRV_PCM_TRIGGER_START:
fsi_stream_init(fsi, io, substream);
fsi_hw_startup(fsi, io, dai->dev);
ret = fsi_stream_transfer(io);
if (0 == ret)
fsi_stream_start(fsi, io);
break;
case SNDRV_PCM_TRIGGER_STOP:
fsi_hw_shutdown(fsi, dai->dev);
fsi_stream_stop(fsi, io);
fsi_stream_quit(fsi, io);
break;
Expand Down

0 comments on commit 4b2c2e0

Please sign in to comment.