]> git.alsa-project.org Git - alsa-lib.git/commit
control: decode HDMI device name from ELD
authorJaroslav Kysela <perex@perex.cz>
Thu, 5 May 2022 12:28:41 +0000 (14:28 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 5 May 2022 12:31:45 +0000 (14:31 +0200)
commit859448f01033b40feebf9a0aab467ba57a655b5b
tree466c729249d219c79b45c13c1883e5c5ada3fa22
parent9c0c757b854a063c476014cfba935517383326cd
control: decode HDMI device name from ELD

The HDMI drivers set an uniform PCM names. Use ELD (EDID) to obtain
the HDMI device name and send this string to applications for a better
user experience.

Example (aplay -l):

  card 1: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
    Subdevices: 1/1

  vs improved:

  card 1: PCH [HDA Intel PCH], device 8: HDMI 2 [Philips 272P4]
    Subdevices: 1/1

Fixes: https://github.com/alsa-project/alsa-lib/issues/209
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/control/Makefile.am
src/control/control_hw.c
src/control/control_local.h
src/control/eld.c [new file with mode: 0644]
src/pcm/pcm_hw.c