]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ALSA: hda/intel: stop probe if DMICS are detected on Skylake+ platforms
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 10 Feb 2020 08:44:00 +0000 (09:44 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Fri, 14 Feb 2020 13:20:16 +0000 (14:20 +0100)
commit7fb5d9ef82eae66e97c95715dd0256a89256da3f
tree82ac6aeae2301279e86746f6b1a9a38fd772a7bb
parentda6dce55ae8b4087e82b4c122578279ba07ba5ce
ALSA: hda/intel: stop probe if DMICS are detected on Skylake+ platforms

BugLink: https://bugs.launchpad.net/bugs/1837828
The legacy HD-Audio driver cannot handle Skylake+ platforms with
digital microphones. For those platforms, the SOF or SST drivers need
to be used.

This patch provides an automatic way of detecting the presence of
DMICs using NHTL information reported by the BIOS. A kernel kconfig
option or a kernel module parameter provide an opt-in means of
stopping the probe. The kernel would then look for an alternate driver
registered for the same PCI ID to probe.

With this capability, distros no longer have to blacklist
snd-hda-intel, but still need to make sure the SOF/SST drivers are
functional by providing the relevant firmware and topology files in
/lib/firmware/intel

The coexistence between SOF and SST drivers and their dynamic
detection is not addressed by this patch, different mechanisms need to
be used, e.g. DMI-based quirks.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit 8c57588313805d4e12a3d470dee3405c2236655f)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Acked-by: Sultan Alsawaf <sultan.alsawaf@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/pci/hda/Kconfig
sound/pci/hda/hda_intel.c