diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-04-27 19:18:22 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-04-27 20:40:21 +0100 |
commit | 5e42336a461a2354b640001323cd07cebd9ade6e (patch) | |
tree | 10a8c1d85c2592e579c8b3dc73f776bf8dafa938 /sound/soc | |
parent | a396e32ef0f3b98700abb9a6da3530c945e55908 (diff) | |
download | op-kernel-dev-5e42336a461a2354b640001323cd07cebd9ade6e.zip op-kernel-dev-5e42336a461a2354b640001323cd07cebd9ade6e.tar.gz |
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: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm8350.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index 3b1d099..0275321 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c @@ -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) { |