ASoC: soc-dai: don't call PCM audio ops if the stream is not supported
authorPeter Suti <peter.suti@streamunlimited.com>
Thu, 13 Jul 2023 09:52:58 +0000 (11:52 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 25 Jul 2023 11:11:49 +0000 (12:11 +0100)
commit4005d1ba0a7e5cf32f669bf0014dca0dd12c2a44
tree86792e90d4132f83c9325ef4d96f98fc7b68730e
parent85d12eda2382cd5b93eed720b5a08f39d42cfef4
ASoC: soc-dai: don't call PCM audio ops if the stream is not supported

PCM audio ops may be called when the stream is not supported.
We should not call the ops in that case to avoid unexpected behavior.

hw_params is handled already in soc-pcm.c

[0] https://lore.kernel.org/alsa-devel/ae06b00a-f3f7-f9d1-0b58-4d71f3394416@linux.intel.com/T/#t

Signed-off-by: Peter Suti <peter.suti@streamunlimited.com>
Link: https://lore.kernel.org/r/20230713095258.3393827-1-peter.suti@streamunlimited.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dai.c