ASoC: fix valid stream condition
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 29 Apr 2019 09:47:49 +0000 (11:47 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 3 May 2019 05:52:03 +0000 (14:52 +0900)
commit6a7c59c6d9f3b280e81d7a04bbe4e55e90152dce
tree9b1f1c8cbf470d5d538b1a60cb2cf76ec029cf44
parent30180e8436046344b12813dc954b2e01dfdcd22d
ASoC: fix valid stream condition

A stream may specify a rate range using 'rate_min' and 'rate_max', so a
stream may be valid and not specify any rates. However, as stream cannot
be valid and not have any channel. Let's use this condition instead to
determine if a stream is valid or not.

Fixes: cde79035c6cf ("ASoC: Handle multiple codecs with split playback / capture")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c