ALSA: hda: add autodetection for SoundWire
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 9 Apr 2020 19:02:51 +0000 (14:02 -0500)
committerTakashi Iwai <tiwai@suse.de>
Sat, 11 Apr 2020 10:39:32 +0000 (12:39 +0200)
commit0650857570d161486a95d37bc8682628881ae2da
tree18a9b81bdd267be929eb6d36d951dff60d443d2b
parent4963d66b8a26c489958063abb6900ea6ed8e4836
ALSA: hda: add autodetection for SoundWire

When an ACPI companion device is present and the SoundWire link mask
information is available, use SoundWire instead of legacy HDA or
Skylake drivers.

The SOF driver is selected when SoundWire or DMIC are detected. There
is no precedence at this level. In the SOF driver proper, SoundWire
will be handled first since it is mutually exclusive with HDaudio.

Known devices with an existing DMI quirk bypass this detection to
avoid any dependency on ACPI/DSDT tables.

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200409190251.16569-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/intel-dsp-config.c