-
Notifications
You must be signed in to change notification settings - Fork 318
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
[WIP][Do no review] Tools: Testbech: Add IPC4 support #9025
Changes from all commits
c2929e1
cb69a48
2eae600
0164162
4191747
c9918b6
848f8b8
e1829b0
389a9e0
71aa31c
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 |
---|---|---|
|
@@ -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 | ||
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. 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); | ||
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; | ||
} | ||
|
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