Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMD SOF Soundwire generic machine driver code refactor #5171

Merged
merged 5 commits into from
Sep 12, 2024

Conversation

vijendarmukunda
Copy link

No description provided.

Rename SoundWire endpoint and dai link structures with asoc tag to make it
generic.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Rename SoundWire parsing helper functions with 'asoc_sdw' tag
to make it generic.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Move Soundwire endpoint and dai link structures from Intel generic machine
driver code to common place holder(soc_sdw_utils.h). These structures will
be used in other platform SoundWire machine driver code.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
plbossart
plbossart previously approved these changes Sep 10, 2024
Copy link
Member

@plbossart plbossart left a comment

Choose a reason for hiding this comment

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

looks ok to me but @charleskeepax and @bardliao must review

@vijendarmukunda
Copy link
Author

@plbossart @bardliao @charleskeepax : could you please review ?

Copy link

@charleskeepax charleskeepax left a comment

Choose a reason for hiding this comment

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

Mostly looks good one very minor comment from me.

Move SoundWire endpoint parsing helper functions to common place holder.
These functions will be used by other platform machine driver code.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Refactor Soundwire machine driver code by using common SoundWire
endpoint parsing helper functions.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
@vijendarmukunda
Copy link
Author

@charleskeepax : dropped type strings from debug statement. There is no hard requirement to change type_strings in AMD code as of now. Changing the type_strings in driver code, also require changes in topology file. For current platform , we want to go with no modifications in type_strings for AMD source code.

@vijendarmukunda
Copy link
Author

@bardliao : please review the PR

Copy link

@charleskeepax charleskeepax left a comment

Choose a reason for hiding this comment

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

Yeah no need to change the strings. But this way there is less coupling between the two drivers. Anyways all looks good to me.

Copy link
Collaborator

@bardliao bardliao left a comment

Choose a reason for hiding this comment

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

LGTM

@vijendarmukunda
Copy link
Author

@bardliao @plbossart : as PR got approved could you please merge the PR? we have other patches to be submitted on top of it?

@bardliao bardliao merged commit 6b8cade into thesofproject:topic/sof-dev Sep 12, 2024
12 of 14 checks passed
tiwai pushed a commit to tiwai/sound that referenced this pull request Sep 14, 2024
Merge series from Vijendar Mukunda <Vijendar.Mukunda@amd.com>:

This patch series moves common Soundwire endpoint parsing and dai
creation logic to common placeholder from Intel generic SoundWire
machine driver code to make it generic. AMD SoundWire machine driver
code is refactored to use these functions for SoundWire endpoint
parsing and dai creation logic.

Link: thesofproject#5171
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.

4 participants