Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 150
UUID kernel implementation#2215
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
6c911876f472bec7c040aff4cc1660f53dce2d3c3e650c8b6ea9d235f108924da2434c2cc3c772e91613911343bec152994f4c50aFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -57,8 +57,8 @@ struct sof_ipc_comp { | ||
| uint32_t pipeline_id; | ||
| uint32_t core; | ||
| /* reserved for future use */ | ||
| uint32_t reserved[1]; | ||
| /* extended data length, 0 if no extended data */ | ||
| uint32_t ext_data_length; | ||
Member 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. I am not a big fan of running out of options if we need a new flag... 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. The fact is that it is used up, if we need a new flag, we should bump the ABI major per my understanding. @kv2019i This is an common scenario of ABI management you proposed? 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.
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.
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. @keyonjie@plbossart@marc-hb Given we are adding a new extension mechanism that can be used to add more fields and the more minor consideration that 32bit values are easier for the DSP to handle, this seems ok to me. 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.
Yes, I think we finally aligned on using all the 32 bits. | ||
| } __packed; | ||
| /* | ||
| @@ -87,6 +87,9 @@ struct sof_ipc_comp { | ||
| */ | ||
| #define SOF_BUF_UNDERRUN_PERMITTED BIT(1) | ||
| /* the UUID size in bytes, shared between FW and host */ | ||
| #define SOF_UUID_SIZE 16 | ||
| /* create new component buffer - SOF_IPC_TPLG_BUFFER_NEW */ | ||
| struct sof_ipc_buffer { | ||
| struct sof_ipc_comp comp; | ||
| @@ -300,4 +303,9 @@ enum sof_event_types { | ||
| SOF_KEYWORD_DETECT_DAPM_EVENT, | ||
| }; | ||
| /* extended data struct for UUID components */ | ||
| struct sof_ipc_comp_ext { | ||
| uint8_t uuid[SOF_UUID_SIZE]; | ||
| } __packed; | ||
marc-hb marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -74,6 +74,7 @@ | ||
| * #define SOF_TKN_COMP_PRELOAD_COUNT 403 | ||
kv2019i marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| */ | ||
| #define SOF_TKN_COMP_CORE_ID 404 | ||
| #define SOF_TKN_COMP_UUID 405 | ||
| /* SSP */ | ||
| #define SOF_TKN_INTEL_SSP_CLKS_CONTROL 500 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -165,8 +165,9 @@ int sof_restore_pipelines(struct device *dev) | ||
| struct snd_sof_route *sroute; | ||
| struct sof_ipc_pipe_new *pipeline; | ||
| struct snd_sof_dai *dai; | ||
| struct sof_ipc_comp_dai *comp_dai; | ||
| struct sof_ipc_cmd_hdr *hdr; | ||
| struct sof_ipc_comp *comp; | ||
| size_t ipc_size; | ||
| int ret; | ||
| /* restore pipeline components */ | ||
| @@ -189,12 +190,24 @@ int sof_restore_pipelines(struct device *dev) | ||
| switch (swidget->id) { | ||
| case snd_soc_dapm_dai_in: | ||
| case snd_soc_dapm_dai_out: | ||
| ipc_size = sizeof(struct sof_ipc_comp_dai) + | ||
| sizeof(struct sof_ipc_comp_ext); | ||
| comp = kzalloc(ipc_size, GFP_KERNEL); | ||
| if (!comp) | ||
| return -ENOMEM; | ||
ranj063 marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| dai = swidget->private; | ||
| comp_dai = &dai->comp_dai; | ||
| ret = sof_ipc_tx_message(sdev->ipc, | ||
| comp_dai->comp.hdr.cmd, | ||
| comp_dai, sizeof(*comp_dai), | ||
| memcpy(comp, &dai->comp_dai, | ||
| sizeof(struct sof_ipc_comp_dai)); | ||
| /* append extended data to the end of the component */ | ||
| memcpy((u8 *)comp + sizeof(struct sof_ipc_comp_dai), | ||
| &swidget->comp_ext, sizeof(swidget->comp_ext)); | ||
kv2019i marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| ret = sof_ipc_tx_message(sdev->ipc, comp->hdr.cmd, | ||
| comp, ipc_size, | ||
| &r, sizeof(r)); | ||
| kfree(comp); | ||
| break; | ||
| case snd_soc_dapm_scheduler: | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.