Skip to content

Commit 5413dfd

Browse files
committed
Merge series "ASoC: SOF: partial fix to Kconfig issues" from Pierre-Louis Bossart <[email protected]>:
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 thesofproject/linux#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
2 parents 9ad9bc5 + 8a3fea9 commit 5413dfd

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

sound/soc/sof/intel/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ config SND_SOC_SOF_HDA
355355

356356
config SND_SOC_SOF_INTEL_SOUNDWIRE_LINK
357357
bool "SOF support for SoundWire"
358-
depends on SOUNDWIRE && ACPI
358+
depends on ACPI
359359
help
360360
This adds support for SoundWire with Sound Open Firmware
361361
for Intel(R) platforms.
@@ -371,6 +371,7 @@ config SND_SOC_SOF_INTEL_SOUNDWIRE_LINK_BASELINE
371371

372372
config SND_SOC_SOF_INTEL_SOUNDWIRE
373373
tristate
374+
select SOUNDWIRE
374375
select SOUNDWIRE_INTEL
375376
help
376377
This option is not user-selectable but automagically handled by

sound/soc/sof/sof-acpi-dev.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,13 @@ static int sof_acpi_probe(struct platform_device *pdev)
131131
if (!id)
132132
return -ENODEV;
133133

134-
ret = snd_intel_acpi_dsp_driver_probe(dev, id->id);
135-
if (ret != SND_INTEL_DSP_DRIVER_ANY && ret != SND_INTEL_DSP_DRIVER_SOF) {
136-
dev_dbg(dev, "SOF ACPI driver not selected, aborting probe\n");
137-
return -ENODEV;
134+
if (IS_REACHABLE(CONFIG_SND_INTEL_DSP_CONFIG)) {
135+
ret = snd_intel_acpi_dsp_driver_probe(dev, id->id);
136+
if (ret != SND_INTEL_DSP_DRIVER_ANY && ret != SND_INTEL_DSP_DRIVER_SOF) {
137+
dev_dbg(dev, "SOF ACPI driver not selected, aborting probe\n");
138+
return -ENODEV;
139+
}
138140
}
139-
140141
dev_dbg(dev, "ACPI DSP detected");
141142

142143
sof_pdata = devm_kzalloc(dev, sizeof(*sof_pdata), GFP_KERNEL);

sound/soc/sof/sof-pci-dev.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,12 @@ static int sof_pci_probe(struct pci_dev *pci,
344344
const struct snd_sof_dsp_ops *ops;
345345
int ret;
346346

347-
ret = snd_intel_dsp_driver_probe(pci);
348-
if (ret != SND_INTEL_DSP_DRIVER_ANY && ret != SND_INTEL_DSP_DRIVER_SOF) {
349-
dev_dbg(&pci->dev, "SOF PCI driver not selected, aborting probe\n");
350-
return -ENODEV;
347+
if (IS_REACHABLE(CONFIG_SND_INTEL_DSP_CONFIG)) {
348+
ret = snd_intel_dsp_driver_probe(pci);
349+
if (ret != SND_INTEL_DSP_DRIVER_ANY && ret != SND_INTEL_DSP_DRIVER_SOF) {
350+
dev_dbg(&pci->dev, "SOF PCI driver not selected, aborting probe\n");
351+
return -ENODEV;
352+
}
351353
}
352354
dev_dbg(&pci->dev, "PCI DSP detected");
353355

0 commit comments

Comments
 (0)