Commit eed7cd2
intel: Fix for Zephyr pre-wakeup latency calc bug
Fix for Zephyr bug (?) introduced by this commit:
zephyrproject-rtos/zephyr#88145
Before that commit, the conversion of wakeup exit latency from us to ticks
was done using the k_us_to_ticks_ceil32() function. After that commit, it
was done with k_us_to_ticks_near32().
ACE has a 100 us exit latency declared in the device tree. A tick is about
83.3 us. Before that commit, the exit latency was calculated as 2 ticks;
after the commit, it was calculated as 1 tick.
This created a sporadic problem in HDA loopback tests: proper audio was
sent to the HDA output link, but silent samples were read from the HDA
input link. It seems that running the LL too early, before all hardware
parts have completely woken up, results in samples being zeroed by the
hardware.
This commit restores the correct us to ticks conversion behavior by
forcing the use of k_us_to_ticks_ceil32() for conversion.
Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>1 parent b35aba3 commit eed7cd2
File tree
6 files changed
+6
-0
lines changed- app/boards
6 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
0 commit comments