ALSA: hda - Don't handle ELD notify from invalid port
[deliverable/linux.git] / sound / pci / hda / patch_hdmi.c
index bcbc4ee10130a5ee86de2c23815eb85ec8684459..b90e4f3967de6885170d022fc1fa87381450bbcd 100644 (file)
@@ -2432,6 +2432,10 @@ static void intel_pin_eld_notify(void *audio_ptr, int port)
        struct hda_codec *codec = audio_ptr;
        int pin_nid = port + 0x04;
 
+       /* we assume only from port-B to port-D */
+       if (port < 1 || port > 3)
+               return;
+
        /* skip notification during system suspend (but not in runtime PM);
         * the state will be updated at resume
         */
This page took 0.049011 seconds and 5 git commands to generate.