diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-11 06:06:30 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-02-11 06:06:30 -0500 |
commit | d289323286d6b4e738458c31533da51d294d28a0 (patch) | |
tree | 64a3869290395a9eaafacd26cf992278f4302f7b /sound/soc/soc-pcm.c | |
parent | 6a47366973be7d234952332e09646981951d3879 (diff) | |
parent | b5a8fe439ab343631d905a51438db3de54ba94df (diff) |
Merge remote-tracking branch 'asoc/topic/core' into asoc-next
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r-- | sound/soc/soc-pcm.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index d675b4ae0df6..73bb8eefa491 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c | |||
@@ -1728,20 +1728,16 @@ static int dpcm_run_update_startup(struct snd_soc_pcm_runtime *fe, int stream) | |||
1728 | 1728 | ||
1729 | /* startup must always be called for new BEs */ | 1729 | /* startup must always be called for new BEs */ |
1730 | ret = dpcm_be_dai_startup(fe, stream); | 1730 | ret = dpcm_be_dai_startup(fe, stream); |
1731 | if (ret < 0) { | 1731 | if (ret < 0) |
1732 | goto disconnect; | 1732 | goto disconnect; |
1733 | return ret; | ||
1734 | } | ||
1735 | 1733 | ||
1736 | /* keep going if FE state is > open */ | 1734 | /* keep going if FE state is > open */ |
1737 | if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_OPEN) | 1735 | if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_OPEN) |
1738 | return 0; | 1736 | return 0; |
1739 | 1737 | ||
1740 | ret = dpcm_be_dai_hw_params(fe, stream); | 1738 | ret = dpcm_be_dai_hw_params(fe, stream); |
1741 | if (ret < 0) { | 1739 | if (ret < 0) |
1742 | goto close; | 1740 | goto close; |
1743 | return ret; | ||
1744 | } | ||
1745 | 1741 | ||
1746 | /* keep going if FE state is > hw_params */ | 1742 | /* keep going if FE state is > hw_params */ |
1747 | if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_PARAMS) | 1743 | if (fe->dpcm[stream].state == SND_SOC_DPCM_STATE_HW_PARAMS) |
@@ -1749,10 +1745,8 @@ static int dpcm_run_update_startup(struct snd_soc_pcm_runtime *fe, int stream) | |||
1749 | 1745 | ||
1750 | 1746 | ||
1751 | ret = dpcm_be_dai_prepare(fe, stream); | 1747 | ret = dpcm_be_dai_prepare(fe, stream); |
1752 | if (ret < 0) { | 1748 | if (ret < 0) |
1753 | goto hw_free; | 1749 | goto hw_free; |
1754 | return ret; | ||
1755 | } | ||
1756 | 1750 | ||
1757 | /* run the stream event for each BE */ | 1751 | /* run the stream event for each BE */ |
1758 | dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_NOP); | 1752 | dpcm_dapm_stream_event(fe, stream, SND_SOC_DAPM_STREAM_NOP); |