ALSA: hda - handle multiple i915 device instances
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Mon, 21 Sep 2020 14:17:40 +0000 (17:17 +0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Sep 2020 15:57:30 +0000 (17:57 +0200)
commit7b882fe3e3e8bfd6427bf61780e59d5bed6699b4
treea3b13e91c615d5bb368b513b450fd03419fa2c70
parent1bee263dfda57e45ad39c59a663c123a357ce38b
ALSA: hda - handle multiple i915 device instances

Currently i915_component_master_match() will return the first matching
i915 instance. This does not work in case system has multiple i915
and HDA audio controller instances.

Add a new connectivity check that handles following cases:
 - i915 and HDA controller on same PCI bus
 - discrete GPU with embedded HDA audio controller connected
   via PCI bridge

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200921141741.2983072-4-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_i915.c