-
Notifications
You must be signed in to change notification settings - Fork 140
ASoC: sof: ipc4-topology: Add support to sched_domain attribute #5382
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
ASoC: sof: ipc4-topology: Add support to sched_domain attribute #5382
Conversation
e7f2745 to
6bbbbb5
Compare
6bbbbb5 to
22e80a0
Compare
|
@ujfalusi could you approve this to get this merged? |
|
@lyakh , @ujfalusi , I still think no warning should be needed if we somehow encounter unrecognized topology value. Something like that should not really happen as long as the current topology attribute definition is not tampered: https://github.com/thesofproject/sof/blob/d6786df73a3e6185d06b90c2c02a3c54c63e7907/tools/topology/topology2/include/components/widget-common.conf#L124 But would it get this PR moving if I device a mechanism to provide a warning in such a case by introducing one more enum value for invalid string to be stored in swidget->comp_domain and report a warning in sof_ipc4_widget_setup_msg() about that value? That solution is far from ideal, as the warning would come only if that widget is set up, and always when its set up, but it could not tell what the wrong string was. Of course the ultimate solution would be changing the prototype for struct sof_topology_token -> get_token() and add sof_dev there, but that is a big change touching all over the place, and I really don't thing it is in the scope of this PR. |
6759ebb to
e52a93a
Compare
lgirdwood
left a comment
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.
Just some simplifications.
e52a93a to
b077804
Compare
Add SOF_TKN_COMP_SCHED_DOMAIN and connect it to struct snd_sof_widget comp_domain member, with new get_token_comp_domain() function. The logic is such that if the topology attribute is not present in the widget node the corresponding IPC4 extension value is taken from the module's manifest like before. But if the attribute is found and recognized its value overrides what is there in the manifest. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
b077804 to
33b3efb
Compare
jsarha
left a comment
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.
@ujfalusi & @lgirdwood , New version pushded. Hope its finally good.
|
SOFCI TEST |
|
@ranj063 good to merge ? |
Add SOF_TKN_COMP_SCHED_DOMAIN and connect it to struct snd_sof_widget comp_domain member, with new get_token_comp_domain() function.
The logic is such that if the topology attribute is not present in the widget node the corresponding IPC4 extension value is taken from the module's manifest like before. But if the attribute is found its value overrides what is there in the manifest.
I do not yet know how to test this feature end to end, so that is why this is only Draft now. However, with a corresponding topology change the attribute is correctly passed to domain extension bit in widget setup message