Skip to content

[DNM] Trace for dai not found#5356

Closed
bardliao wants to merge 3 commits intothesofproject:topic/sof-devfrom
bardliao:trace-for-dai-not-found
Closed

[DNM] Trace for dai not found#5356
bardliao wants to merge 3 commits intothesofproject:topic/sof-devfrom
bardliao:trace-for-dai-not-found

Conversation

@bardliao
Copy link
Copy Markdown
Collaborator

PTLP_RVP_SDW test of #5351 always fails with "codec dai rt722-sdca-aif1 not registered yet". But I can see the dai has been registered if I enable ASoC debug log. And I can't reproduce with my built kernel. I.e. Only with CI built kernel can reproduce the issue.
Add some trace in the PR. Hope I can get some useful log.

Currently asoc_sdw_get_codec_name will return codec_info->codec_name if
it is set. However, in some case we need the sdw codec name no matter if
codec_info->codec_name is set or not.
_asoc_sdw_get_codec_name() will be used in the follow up commit.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
A codec endpoint may not be used. We could check the present SDCA
functions to know if the endpoint is used or not. Skip the endpoint
which is not used.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
@bardliao bardliao changed the title Trace for dai not found [DNM] Trace for dai not found Mar 11, 2025
Need to get snd_soc_find_dai() didn't return rt722-sdca-aif1 dai when
the DAI is registered.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
@bardliao bardliao force-pushed the trace-for-dai-not-found branch from 3022565 to 84d38d9 Compare March 11, 2025 07:52
@bardliao bardliao closed this Mar 11, 2025
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.

1 participant