• Takashi Iwai's avatar
    ALSA: hda - Restrict PCM parameters per ELD information over HDMI · bbbe3390
    Takashi Iwai authored
    When a device is plugged over HDMI, it passes some information in ELD
    including the supported PCM parameters like formats, rates, channels.
    This patch adds the check to PCM open callback of HDMI streams so that
    only valid parameters the device supports are used.
    
    When no device is plugged, the parameters the codec supports are used;
    it's mostly all parameters the hardware can work.  This is for apps
    that are started before device plugging and do probing (e.g. a sound
    daemon), so that at least, probing would work even before the device
    plugging.
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    bbbe3390
patch_nvhdmi.c 17.2 KB