]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: atmel: Don't squash error codes from atmel_ssc_set_audio()
authorMark Brown <broonie@kernel.org>
Fri, 25 Mar 2022 15:42:41 +0000 (15:42 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 4 Apr 2022 13:24:20 +0000 (14:24 +0100)
commit99cb9bb17a9e982b838811416b43c895cbfe0862
treeabae391a07a6897389d0b0232834c72d77dbd4ef
parent934737511fe95d14c8a61cada6b69c710071fe91
ASoC: atmel: Don't squash error codes from atmel_ssc_set_audio()

The AT91SAM9G20-EK audio driver is replacing any error code returned by
atmel_ssc_set_audio() with -EINVAL which could be unhelpful for debugging.
Pass through the error code, and include it in the log message we print for
good measure.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link: https://lore.kernel.org/r/20220325154241.1600757-4-broonie@kernel.org
sound/soc/atmel/sam9g20_wm8731.c