]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: Fix return code shown on error for hw_params
authorJon Hunter <jonathanh@nvidia.com>
Wed, 30 May 2018 15:15:19 +0000 (16:15 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 30 May 2018 15:34:28 +0000 (16:34 +0100)
commitdbb5091d8300b234bcf09305c0245da3af763f89
treec8b4524240c07c3d3ed68c5630cf210feb0a5f97
parentc07b30ef1d55aeff9bc0f7aa5757470d7d25edf3
ASoC: core: Fix return code shown on error for hw_params

When the call to hw_params for a component fails, the error code is held
by the variable '__ret' but the error message displays the value held by
the variable 'ret'. Fix the return code shown when hw_params fails for
a component.

Fixes: ec7e60e1f192 ("ASoC: snd_soc_component_driver has snd_pcm_ops")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c