mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 21:24:08 +08:00
Merge series "ASoC: SOF: partial fix to Kconfig issues" from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:
We've had several reports of broken dependencies. The 'right' fix is to revisit the module dependencies as suggested by Arnd Bergmann. This is WIP at https://github.com/thesofproject/linux/pull/2683. Since this is taking longer than expected, I am only sharing quick fixes for now. Pierre-Louis Bossart (2): ASoC: SOF: Intel: soundwire: fix select/depend unmet dependencies ASoC: SOF: SND_INTEL_DSP_CONFIG dependency sound/soc/sof/intel/Kconfig | 3 ++- sound/soc/sof/sof-acpi-dev.c | 11 ++++++----- sound/soc/sof/sof-pci-dev.c | 10 ++++++---- 3 files changed, 14 insertions(+), 10 deletions(-) -- 2.25.1
This commit is contained in:
commit
5413dfd8ce
@ -355,7 +355,7 @@ config SND_SOC_SOF_HDA
|
||||
|
||||
config SND_SOC_SOF_INTEL_SOUNDWIRE_LINK
|
||||
bool "SOF support for SoundWire"
|
||||
depends on SOUNDWIRE && ACPI
|
||||
depends on ACPI
|
||||
help
|
||||
This adds support for SoundWire with Sound Open Firmware
|
||||
for Intel(R) platforms.
|
||||
@ -371,6 +371,7 @@ config SND_SOC_SOF_INTEL_SOUNDWIRE_LINK_BASELINE
|
||||
|
||||
config SND_SOC_SOF_INTEL_SOUNDWIRE
|
||||
tristate
|
||||
select SOUNDWIRE
|
||||
select SOUNDWIRE_INTEL
|
||||
help
|
||||
This option is not user-selectable but automagically handled by
|
||||
|
@ -131,12 +131,13 @@ static int sof_acpi_probe(struct platform_device *pdev)
|
||||
if (!id)
|
||||
return -ENODEV;
|
||||
|
||||
ret = snd_intel_acpi_dsp_driver_probe(dev, id->id);
|
||||
if (ret != SND_INTEL_DSP_DRIVER_ANY && ret != SND_INTEL_DSP_DRIVER_SOF) {
|
||||
dev_dbg(dev, "SOF ACPI driver not selected, aborting probe\n");
|
||||
return -ENODEV;
|
||||
if (IS_REACHABLE(CONFIG_SND_INTEL_DSP_CONFIG)) {
|
||||
ret = snd_intel_acpi_dsp_driver_probe(dev, id->id);
|
||||
if (ret != SND_INTEL_DSP_DRIVER_ANY && ret != SND_INTEL_DSP_DRIVER_SOF) {
|
||||
dev_dbg(dev, "SOF ACPI driver not selected, aborting probe\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
}
|
||||
|
||||
dev_dbg(dev, "ACPI DSP detected");
|
||||
|
||||
sof_pdata = devm_kzalloc(dev, sizeof(*sof_pdata), GFP_KERNEL);
|
||||
|
@ -344,10 +344,12 @@ static int sof_pci_probe(struct pci_dev *pci,
|
||||
const struct snd_sof_dsp_ops *ops;
|
||||
int ret;
|
||||
|
||||
ret = snd_intel_dsp_driver_probe(pci);
|
||||
if (ret != SND_INTEL_DSP_DRIVER_ANY && ret != SND_INTEL_DSP_DRIVER_SOF) {
|
||||
dev_dbg(&pci->dev, "SOF PCI driver not selected, aborting probe\n");
|
||||
return -ENODEV;
|
||||
if (IS_REACHABLE(CONFIG_SND_INTEL_DSP_CONFIG)) {
|
||||
ret = snd_intel_dsp_driver_probe(pci);
|
||||
if (ret != SND_INTEL_DSP_DRIVER_ANY && ret != SND_INTEL_DSP_DRIVER_SOF) {
|
||||
dev_dbg(&pci->dev, "SOF PCI driver not selected, aborting probe\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
}
|
||||
dev_dbg(&pci->dev, "PCI DSP detected");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user