ALSA: hda/hdmi: Reduce hda_jack_tbl lookup at unsol event handling
authorTakashi Iwai <tiwai@suse.de>
Thu, 6 Feb 2020 16:28:01 +0000 (17:28 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Feb 2020 07:22:33 +0000 (08:22 +0100)
commit165c0946a863cdfd056e472d8a9673d7197ef066
treef9840ccebe4813ff01bb91e62b49ec4af778ef4b
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
ALSA: hda/hdmi: Reduce hda_jack_tbl lookup at unsol event handling

Pass hda_jack_tbl object to hdmi_intrinsic_event() along with res from
hdmi_unsol_event() so that we can reduce the lookup of the same
hda_jack_tbl object again.

Minor code refactoring.

Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Nikhil Mahale <nmahale@nvidia.com>
Link: https://lore.kernel.org/r/20200206162804.4734-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c