[PATCH] ALSA: hda: fix SND_INTEL_DSP_CONFIG dependency
Kai Vehmanen
kai.vehmanen at linux.intel.com
Tue Jan 5 16:39:39 CET 2021
Hey,
On Tue, 5 Jan 2021, Arnd Bergmann wrote:
> On Mon, Jan 4, 2021 at 4:05 PM Takashi Iwai <tiwai at suse.de> wrote:
> > As I wrote in another post, a part of the problem is that SOF PCI and
> > ACPI drivers call snd_intel_dsp_driver_probe() unconditionally, even
> > if no Intel driver is bound.
>
> Makes sense. Is there an existing Kconfig that could be used to
> decide whether the drivers use SND_INTEL_DSP_CONFIG or not?
no, unfortunately not. This is selected per platform in
sound/soc/sof/intel/Kconfig. CONFIG_SND_SOC_SOF_INTEL_PCI is close, but
there is at least one platform that does not use SND_INTEL_DSP_CONFIG.
> According to sof_pci_ids[], all PCI IDs are Intel specific, but I can't
> tell which ones need the DSP config.
Indeed currently all the ids are Intel ones (and with exception of old
Merrifield, all use DSP config). But that's just how it is now.
> Could it be part of the device specific driver_data?
This would certainly be a clean way and allow to remove the Intel-specific
calls from sof_pci_probe(). As a short-term solution, IS_REACHABLE()
seems ok as well.
Br, Kai
More information about the Alsa-devel
mailing list