]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita57bfd14d937993e8523b129f22f44e4bbc1637e
tree9b1f1c8cbf470d5d538b1a60cb2cf76ec029cf44
parent13860e97a649f6ff63c758f48ea72435541cf752
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: 12af2080f5bf ("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