Skip to content

Commit

Permalink
ASoC: SOF: Intel: hda: Do not probe Soundwire in nocodec mode
Browse files Browse the repository at this point in the history
Soundwire is not needed for nocodec mode, skip probing it.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
  • Loading branch information
ujfalusi authored and ranj063 committed Feb 14, 2025
1 parent 3a7fbd9 commit 4603be6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sound/soc/sof/intel/hda.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,11 @@ static int hda_init_caps(struct snd_sof_dev *sdev)
if (!(interface_mask & BIT(SOF_DAI_INTEL_ALH)))
goto skip_soundwire;

/* Skip SoundWire in nocodec mode */
if (IS_ENABLED(CONFIG_SND_SOC_SOF_NOCODEC_DEBUG_SUPPORT) &&
sof_debug_check_flag(SOF_DBG_FORCE_NOCODEC))
goto skip_soundwire;

/* scan SoundWire capabilities exposed by DSDT */
ret = hda_sdw_acpi_scan(sdev);
if (ret < 0) {
Expand Down

0 comments on commit 4603be6

Please sign in to comment.