Skip to content

ASoC: SOF: Intel: hda: Do not probe Soundwire in nocodec mode#5324

Merged
ranj063 merged 1 commit intothesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/hda-no-sdw-nocodec-01
Feb 14, 2025
Merged

ASoC: SOF: Intel: hda: Do not probe Soundwire in nocodec mode#5324
ranj063 merged 1 commit intothesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/hda-no-sdw-nocodec-01

Conversation

@ujfalusi
Copy link
Collaborator

Soundwire is not needed for nocodec mode, skip probing it.

Soundwire is not needed for nocodec mode, skip probing it.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Copy link
Collaborator

@lyakh lyakh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fixes a problem with a specific real-life device configuration, where SDW wasn't needed but still it was preventing the device from being used in nocodec mode

if (IS_ENABLED(CONFIG_SND_SOC_SOF_NOCODEC_DEBUG_SUPPORT) &&
sof_debug_check_flag(SOF_DBG_FORCE_NOCODEC))
goto skip_soundwire;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"SoundWire is not needed" but does it help to actually remove the scan?

I don't recall what "nocodec" means but we certainly have cases where we don't have actual SoundWire codecs connected. Is this the case that nocodec really means SSP/DMIC only?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, nocodec is SSP+DMIC. We need HDA for host DMA (and for Link with ACE2+).
What @lyakh faced is that a device which fails to probe with SDW cannot be turned to nocodec due to the fact that SDW fails. This should not prevent nocodec as it is irrelevant.

I don't know the details, but I think it is due to misconfiguration of ACPI table for SDW versus reality.

Yes, this happens in development environment, so things are moving here and there and the nocodec is a developer configuration.

@ranj063 ranj063 merged commit 4603be6 into thesofproject:topic/sof-dev Feb 14, 2025
9 of 14 checks passed
@ujfalusi ujfalusi deleted the peter/sof/pr/hda-no-sdw-nocodec-01 branch May 19, 2025 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants