alsa-project / alsa-lib

The Advanced Linux Sound Architecture (ALSA) - library
GNU Lesser General Public License v2.1
366 stars 177 forks source link

control: Fall back to old naming if ELD device name decoding fails #234

Closed berolinux closed 2 years ago

berolinux commented 2 years ago

If ELD device name lookup fails, fall back to the old style naming instead of disabling the HDMI output altogether.

Fixes: https://github.com/alsa-project/alsa-lib/issues/233 Signed-off-by: Bernhard Rosenkränzer bero@lindev.ch

perexg commented 2 years ago

Thanks for the patch. I would print the error message in __snd_pcm_info_eld_fixup() and return zero instead -EIO for the out-of-range values.

perexg commented 2 years ago

Fixed a bit differently in 89ee61914756a6f8bcafbad7fb1eca674b0a012f . Thank you for the report and proposed fix.