Unverified Commit 8a01fbf0 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: soc-pcm: tidyup dulicate handing at dpcm_fe_dai_startup()

parent 0c9ba720
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -2162,16 +2162,12 @@ static int dpcm_fe_dai_startup(struct snd_pcm_substream *fe_substream)
	snd_pcm_limit_hw_rates(runtime);

	ret = dpcm_apply_symmetry(fe_substream, stream);
	if (ret < 0) {
	if (ret < 0)
		dev_err(fe->dev, "ASoC: failed to apply dpcm symmetry %d\n",
			ret);
		goto unwind;
	}

	dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO);
	return 0;

unwind:
	if (ret < 0)
		dpcm_be_dai_startup_unwind(fe, stream);
be_err:
	dpcm_set_fe_update_state(fe, stream, SND_SOC_DPCM_UPDATE_NO);