Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 367
[WIP][Do no review] Tools: Testbech: Add IPC4 support#9025
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
c2929e1cb69a482eae60001641624191747c9918b6848f8b8e1829b0389a9e071aa31cFile 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 |
|---|---|---|
| @@ -486,6 +486,7 @@ static int pipeline_comp_trigger(struct comp_dev *current, | ||
| * Initialization delay is only used with SSP, where we | ||
| * don't use more than one DAI per copier | ||
| */ | ||
| #if !CONFIG_LIBRARY | ||
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. Can we provide this API in the file module instead, even if it returns 0 today. CollaboratorAuthor 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. Yep, I started to separate file component module adapter changes into a separate PR. It was quite simple to get dai_get_init_delay_ms() to pass without duplicating much of DAI data structures. | ||
| struct dai_data *dd; | ||
| #if CONFIG_IPC_MAJOR_3 | ||
| dd = comp_get_drvdata(current); | ||
| @@ -498,6 +499,7 @@ static int pipeline_comp_trigger(struct comp_dev *current, | ||
| #error Unknown IPC major version | ||
| #endif | ||
| ppl_data->delay_ms = dai_get_init_delay_ms(dd->dai); | ||
| #endif | ||
| } | ||
| break; | ||
| default: | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -534,6 +534,9 @@ static void ipc_compound_msg_done(uint32_t msg_id, int error) | ||
| static int ipc_wait_for_compound_msg(void) | ||
| { | ||
| #if CONFIG_LIBRARY | ||
| atomic_set(&msg_data.delayed_reply, 0); | ||
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. Btw, where do we clear this in DSP mode ? i.e. does this need to be executed on all targets ? | ||
| #else | ||
| int try_count = 30; | ||
| while (atomic_read(&msg_data.delayed_reply)) { | ||
| @@ -545,6 +548,7 @@ static int ipc_wait_for_compound_msg(void) | ||
| return IPC4_FAILURE; | ||
| } | ||
| } | ||
| #endif | ||
| return IPC4_SUCCESS; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
long term we can inherit the optimization level from Kconfig