[PATCH] ASoC: hdmi-codec: Fix return value in hdmi_codec_set_jack()

Mark Brown broonie at kernel.org
Thu Jan 7 17:36:00 CET 2021


On Thu, Jan 07, 2021 at 05:26:40PM +0100, Stephan Gerhold wrote:

> However, hdmi_codec_set_jack() returns -E*OP*NOTSUPP if jack detection
> is not supported, which is not handled in apq8016_sbc and soc_component_ret().
> Make it return -ENOTSUPP instead to fix sound and silence the errors.

You will also need to update imx-hdmi, it is explicitly checking for
-EOPNOTSUPP so this will break it.  Having two error codes with such
similar names is rather unfortunate.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20210107/d0440aad/attachment.sig>


More information about the Alsa-devel mailing list