]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-dai: return proper error for get_sdw_stream()
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 16 Mar 2020 15:11:10 +0000 (15:11 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 16 Mar 2020 18:07:41 +0000 (18:07 +0000)
commitfa457975554fdfd7c2923657f6d02e9f51f9f83d
tree7dde13155ed7ff9b019f09e02041ed9cdcda1544
parent705802ee29adc60554138b3d24a8970214250bf7
ASoC: soc-dai: return proper error for get_sdw_stream()

snd_soc_dai_get_sdw_stream() returns null if dai does not support
this callback, this is no very useful for the caller to
differentiate if this is an error or unsupported call for the dai.

return -ENOTSUPP in cases where this callback is not supported.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200316151110.2580-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-dai.h