Commit 21947cd
ASoC: SOF: trace: only init wait_queue one time
Today we init trace wait_queue at each resume, snd_sof_init_trace_ipc(),
which will clear the wait_queue entry that is waiting for trace update
at suspend, that will lead to sof-logger infinitely waiting for logger
tools like sof-logger so no trace updating or refreshing though we are
back to resume and playback.
Here move this wait_queue initialization to snd_sof_init_trace() which
is called at first boot only, keep waiting trace update during
S0->S3->S0, and fix logger tools no update issues.
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>1 parent b34040b commit 21947cd
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
| |||
233 | 232 | | |
234 | 233 | | |
235 | 234 | | |
| 235 | + | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
| |||
0 commit comments