Skip to content

Conversation

@rfvirgil
Copy link

@rfvirgil rfvirgil commented Dec 4, 2025

No description provided.

include/sdw_type.h provides the function is_sdw_slave() which
requires sdw_slave_type. But sdw_slave_type it was not exported.

Change-Id: I629f9c120d443308b03bbc90cbe71d259bd15bd6
Signed-off-by: Richard Fitzgerald <[email protected]>
asoc_sdw_rtd_init() needs to call the rtd_init() callbacks for each
codec in a dailink. It was finding the codecs by looking for the
matching DAI name in codec_info_list[] but this is not reliable
because the DAI name isn't guaranteed to be unique. Parts using the
same codec driver (so the same DAI names) might require different
machine driver setup.

Instead, get the struct sdw_slave for the dai->component and from
that the soundWire part ID can be extracted. This can be used to
match against the .part_id value in codec_info_list[].

Change-Id: Ic89712176e1c7289ec00e8c6ef83a6677874d953
Signed-off-by: Richard Fitzgerald <[email protected]>
Remove the asoc_sdw_find_codec_info_dai() function because it
isn't reliable and is now unused.

It was finding the entry in codec_info_list[] by looking for the
matching DAI name. But this is not reliable because the DAI name
isn't guaranteed to be unique. Parts using the same codec driver
(so the same DAI names) might require different machine driver
setup.

Change-Id: I178b5e136436b9259242fd5a79e39c011211ca7d
Signed-off-by: Richard Fitzgerald <[email protected]>
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