]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: wcd934x: return error code correctly from hw_params
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 16 Nov 2021 11:46:22 +0000 (11:46 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 16 Nov 2021 14:29:52 +0000 (14:29 +0000)
commitb818f84453ec28f23dc46670e6fc3809126fa61f
treeff1a666f1baf0c32efbc8824b5c9008023fdc2e8
parent00a68739b7e6b752dd3d986adfd7744ba0bf3019
ASoC: codecs: wcd934x: return error code correctly from hw_params

Error returned from wcd934x_slim_set_hw_params() are not passed to upper layer,
this could be misleading to the user which can start sending stream leading
to unnecessary errors.

Fix this by properly returning the errors.

Fixes: f1898e102cf5 ("ASoC: wcd934x: add support to wcd9340/wcd9341 codec")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20211116114623.11891-3-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd934x.c