]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dpcm: skip missing substream while applying symmetry
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 1 Apr 2019 13:03:54 +0000 (15:03 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 2 Apr 2019 05:39:50 +0000 (12:39 +0700)
commit2611441e8ed58f9bd55773bdbe4a7638930d2ec5
tree8948b433c896ab170d060af31dcf26acf5409ba3
parent19accc03fd037c5e810ddc2ac7d7f96ead11717e
ASoC: dpcm: skip missing substream while applying symmetry

If for any reason, the backend does not have the requested substream
(like capture on a playback only backend), the BE will be skipped in
dpcm_be_dai_startup().

However, dpcm_apply_symmetry() does not skip those BE and will
dereference the be_substream (NULL) pointer anyway.

Like in dpcm_be_dai_startup(), just skip those BE.

Fixes: 724d9fc954e7 ("ASoC: dpcm: Apply symmetry for DPCM")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c