Skip to content

Commit

Permalink
ASoC: Fix logic in WM8350 master clocking check
Browse files Browse the repository at this point in the history
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: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Apr 27, 2009
1 parent a396e32 commit 5e42336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm8350.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* valid audio path i.e. pin -> ADC or DAC -> pin before
* the LRC will be enabled in master mode. */
if (!master && cmd != SNDRV_PCM_TRIGGER_START)
if (!master || cmd != SNDRV_PCM_TRIGGER_START)
return 0;

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

0 comments on commit 5e42336

Please sign in to comment.