-
Notifications
You must be signed in to change notification settings - Fork 142
Fix handling of platform_component in sof_sdw #5383
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1067,9 +1067,8 @@ EXPORT_SYMBOL_NS(asoc_sdw_init_dai_link, "SND_SOC_SDW_UTILS"); | |
| int asoc_sdw_init_simple_dai_link(struct device *dev, struct snd_soc_dai_link *dai_links, | ||
| int *be_id, char *name, int playback, int capture, | ||
| const char *cpu_dai_name, const char *platform_comp_name, | ||
| int num_platforms, const char *codec_name, | ||
| const char *codec_dai_name, int no_pcm, | ||
| int (*init)(struct snd_soc_pcm_runtime *rtd), | ||
| const char *codec_name, const char *codec_dai_name, | ||
| int no_pcm, int (*init)(struct snd_soc_pcm_runtime *rtd), | ||
| const struct snd_soc_ops *ops) | ||
| { | ||
| struct snd_soc_dai_link_component *dlc; | ||
|
|
@@ -1086,8 +1085,8 @@ int asoc_sdw_init_simple_dai_link(struct device *dev, struct snd_soc_dai_link *d | |
| dlc[2].dai_name = codec_dai_name; | ||
|
|
||
| asoc_sdw_init_dai_link(dev, dai_links, be_id, name, playback, capture, | ||
| &dlc[0], 1, &dlc[1], num_platforms, | ||
| &dlc[2], 1, no_pcm, init, ops); | ||
| &dlc[0], 1, &dlc[1], 1, &dlc[2], 1, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @charleskeepax did you mean to remove num_platforms from this one too?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry struggling with the github, can't seem to figure out if these comments are showing in two places or if they are two different comments. But this is attempting to comment on the asoc_sdw_init_simple_dai_link part. Yeah doesn't make sense for asoc_sdw_init_simple_dai_link to set multiple platforms, the input string is "const char *platform_comp_name", which can only pass a single platform in to the function, and if you have multiple platforms its not really a simple dai you the full helper. |
||
| no_pcm, init, ops); | ||
|
|
||
| return 0; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good @charleskeepax except for the typo in the commit title "don't both to set platform string"