]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: add Intel DSP configuration / probe code
authorJaroslav Kysela <perex@perex.cz>
Tue, 22 Oct 2019 17:43:12 +0000 (19:43 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 Oct 2019 04:31:37 +0000 (06:31 +0200)
commit573ce1806025cc10c971f58adeb3f186a45486ee
treef2335fd53f409bf724f06c812fa68f112b418989
parentafe906efd3c7f53b927c77a8ef00e2e87caf6438
ALSA: hda: add Intel DSP configuration / probe code

For distributions, we need one place where we can decide
which driver will be activated for the auto-configation of the
Intel's HDA hardware with DSP. Actually, we cover three drivers:

* Legacy HDA
* Intel SST
* Intel Sound Open Firmware (SOF)

All those drivers registers similar PCI IDs, so the first
driver probed from the PCI stack can win. But... it is not
guaranteed that the correct driver wins.

This commit changes Intel's NHLT ACPI module to a common
DSP probe module for the Intel's hardware. All above sound
drivers calls this code. The user can force another behaviour
using the module parameter 'dsp_driver' located in
the 'snd-intel-dspcfg' module.

This change allows to add specific dmi checks for the specific
systems. The examples are taken from the pull request:

  https://github.com/thesofproject/linux/pull/927

Tested on Lenovo Carbon X1 7th gen.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191022174313.29087-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/intel-dsp-config.h [new file with mode: 0644]
sound/hda/Kconfig
sound/hda/Makefile
sound/hda/intel-dsp-config.c [new file with mode: 0644]
sound/hda/intel-nhlt.c
sound/pci/hda/Kconfig
sound/pci/hda/hda_intel.c
sound/soc/intel/Kconfig
sound/soc/intel/skylake/skl.c
sound/soc/sof/intel/Kconfig
sound/soc/sof/sof-pci-dev.c