]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: HD-Audio: SKL+: abort probe if DSP is present and Skylake driver selected
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Sat, 15 Dec 2018 20:07:22 +0000 (14:07 -0600)
committerTakashi Iwai <tiwai@suse.de>
Wed, 19 Dec 2018 17:07:21 +0000 (18:07 +0100)
commit1ee16d38115c0068ef3cd398d07e9fd734a6e224
tree0ec9e200db3f02ab75d4806454fd462679e23e3c
parent4e2c18ba4347ddb963c79e4272eaf882002f0851
ALSA: HD-Audio: SKL+: abort probe if DSP is present and Skylake driver selected

Now that the SST/Skylake driver supports per platform selectors, we
can add logic to automatically select the right driver.

If the Skylake driver is selected for a specific platform, and the DSP
is detected at run-time based on the PCI class/subclass/prog-if
information, the legacy HDaudio driver aborts the probe. This will
result in a single driver probing and remove the need for modprobe
blacklists.

Follow-up patches will add a module parameter to bypass the logic if
this automatic detection fails, or if the Skylake driver is unable to
actually support the platform (firmware authentication, missing
topology file, hardware issue, etc).

The same mechanism will be used to conflicts generated by the same PCI
ID being registered by both legacy HDAuudio and SOF drivers for Intel
platforms. In other words SOF will not require changes to the HDaudio
legacy.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/Kconfig
sound/pci/hda/hda_controller.h
sound/pci/hda/hda_intel.c
sound/soc/intel/Kconfig