diff options
Diffstat (limited to 'sound/pci/hda/patch_intelhdmi.c')
-rw-r--r-- | sound/pci/hda/patch_intelhdmi.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/pci/hda/patch_intelhdmi.c b/sound/pci/hda/patch_intelhdmi.c index 82312c67f8dd..095c993f4b76 100644 --- a/sound/pci/hda/patch_intelhdmi.c +++ b/sound/pci/hda/patch_intelhdmi.c | |||
@@ -62,8 +62,6 @@ struct intel_hdmi_spec { | |||
62 | /* | 62 | /* |
63 | * HDMI sink attached to each pin | 63 | * HDMI sink attached to each pin |
64 | */ | 64 | */ |
65 | bool sink_present[INTEL_HDMI_PINS]; | ||
66 | bool sink_eldv[INTEL_HDMI_PINS]; | ||
67 | struct hdmi_eld sink_eld[INTEL_HDMI_PINS]; | 65 | struct hdmi_eld sink_eld[INTEL_HDMI_PINS]; |
68 | 66 | ||
69 | /* | 67 | /* |
@@ -645,7 +643,7 @@ static void hdmi_setup_audio_infoframe(struct hda_codec *codec, hda_nid_t nid, | |||
645 | for (i = 0; i < spec->num_pins; i++) { | 643 | for (i = 0; i < spec->num_pins; i++) { |
646 | if (spec->pin_cvt[i] != nid) | 644 | if (spec->pin_cvt[i] != nid) |
647 | continue; | 645 | continue; |
648 | if (spec->sink_present[i] != true) | 646 | if (!spec->sink_eld[i].monitor_present) |
649 | continue; | 647 | continue; |
650 | 648 | ||
651 | pin_nid = spec->pin[i]; | 649 | pin_nid = spec->pin[i]; |
@@ -675,8 +673,8 @@ static void hdmi_intrinsic_event(struct hda_codec *codec, unsigned int res) | |||
675 | if (index < 0) | 673 | if (index < 0) |
676 | return; | 674 | return; |
677 | 675 | ||
678 | spec->sink_present[index] = pind; | 676 | spec->sink_eld[index].monitor_present = pind; |
679 | spec->sink_eldv[index] = eldv; | 677 | spec->sink_eld[index].eld_valid = eldv; |
680 | 678 | ||
681 | if (pind && eldv) { | 679 | if (pind && eldv) { |
682 | hdmi_parse_eld(codec, index); | 680 | hdmi_parse_eld(codec, index); |