-
Notifications
You must be signed in to change notification settings - Fork 350
Update host position value in every period to improve precision #5137
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 |
|---|---|---|
|
|
@@ -29,8 +29,8 @@ | |
|
|
||
| /** \brief SOF ABI version major, minor and patch numbers */ | ||
| #define SOF_ABI_MAJOR 3 | ||
| #define SOF_ABI_MINOR 20 | ||
| #define SOF_ABI_PATCH 1 | ||
| #define SOF_ABI_MINOR 21 | ||
| #define SOF_ABI_PATCH 0 | ||
|
|
||
|
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. @yaochunhung @lgirdwood what is SOF_ABI_PATCH and why is decremented?
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. |
||
| /** \brief SOF ABI version number. Format within 32bit word is MMmmmppp */ | ||
| #define SOF_ABI_MAJOR_SHIFT 24 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -193,6 +193,7 @@ static int ipc_stream_pcm_params(uint32_t stream) | |
| struct sof_ipc_pcm_params pcm_params; | ||
| struct sof_ipc_pcm_params_reply reply; | ||
| struct ipc_comp_dev *pcm_dev; | ||
| struct sof_ipc_stream_posn posn; | ||
| int err, reset_err; | ||
|
|
||
| /* copy message with ABI safe method */ | ||
|
|
@@ -299,6 +300,11 @@ static int ipc_stream_pcm_params(uint32_t stream) | |
| reply.rhdr.error = 0; | ||
| reply.comp_id = pcm_params.comp_id; | ||
| reply.posn_offset = pcm_dev->cd->pipeline->posn_offset; | ||
|
|
||
| /* reset position value before send ipc */ | ||
| memset(&posn, 0, sizeof(posn)); | ||
| mailbox_stream_write(reply.posn_offset, &posn, sizeof(posn)); | ||
|
||
|
|
||
| mailbox_hostbox_write(0, &reply, sizeof(reply)); | ||
| return 1; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.