Skip to content

Commit 0236859

Browse files
committed
ASoC: SOF: Intel: hda: Do not probe Soundwire in nocodec mode
Soundwire is not needed for nocodec mode, skip probing it. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 9262878 commit 0236859

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sound/soc/sof/intel/hda.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,11 @@ static int hda_init_caps(struct snd_sof_dev *sdev)
613613
if (!(interface_mask & BIT(SOF_DAI_INTEL_ALH)))
614614
goto skip_soundwire;
615615

616+
/* Skip SoundWire in nocodec mode */
617+
if (IS_ENABLED(CONFIG_SND_SOC_SOF_NOCODEC_DEBUG_SUPPORT) &&
618+
sof_debug_check_flag(SOF_DBG_FORCE_NOCODEC))
619+
goto skip_soundwire;
620+
616621
/* scan SoundWire capabilities exposed by DSDT */
617622
ret = hda_sdw_acpi_scan(sdev);
618623
if (ret < 0) {

0 commit comments

Comments
 (0)