Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353365
b: refs/heads/master
c: fffc0ca
h: refs/heads/master
i:
  353363: 61e1b58
v: v3
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Jan 12, 2013
1 parent eec3829 commit 3c0fcc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: ff541f4b2a7546ffa8edf123f4b3b49bb24574e2
refs/heads/master: fffc0ca29fdf3a786e74082c698c701d6ebdf720
12 changes: 3 additions & 9 deletions trunk/sound/soc/soc-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1728,31 +1728,25 @@ static int dpcm_run_update_startup(struct snd_soc_pcm_runtime *fe, int stream)

/* startup must always be called for new BEs */
ret = dpcm_be_dai_startup(fe, stream);
if (ret < 0) {
if (ret < 0)
goto disconnect;
return ret;
}

/* keep going if FE state is > open */
if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_OPEN)
return 0;

ret = dpcm_be_dai_hw_params(fe, stream);
if (ret < 0) {
if (ret < 0)
goto close;
return ret;
}

/* keep going if FE state is > hw_params */
if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_PARAMS)
return 0;


ret = dpcm_be_dai_prepare(fe, stream);
if (ret < 0) {
if (ret < 0)
goto hw_free;
return ret;
}

/* run the stream event for each BE */
dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_NOP);
Expand Down

0 comments on commit 3c0fcc7

Please sign in to comment.