Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e42336a authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Fix logic in WM8350 master clocking check



We need to check only if the WM8350 is master and only when starting
the stream so if either is not true then we can skip the check.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a396e32e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -968,7 +968,7 @@ static int wm8350_pcm_trigger(struct snd_pcm_substream *substream,
	 * required for LRC in master mode. The DACs or ADCs need a
	 * required for LRC in master mode. The DACs or ADCs need a
	 * valid audio path i.e. pin -> ADC or DAC -> pin before
	 * valid audio path i.e. pin -> ADC or DAC -> pin before
	 * the LRC will be enabled in master mode. */
	 * the LRC will be enabled in master mode. */
	if (!master && cmd != SNDRV_PCM_TRIGGER_START)
	if (!master || cmd != SNDRV_PCM_TRIGGER_START)
		return 0;
		return 0;


	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {