mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
ASoC: initialize queue head for compress capture
Waitqueue head is not initialized at open stage. Future action may wake up uninitialized wait. Initialize them for compress capture. Change-Id: I142202783aa9b7b9334c1a9632a89cd1ba7f5005 Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
This commit is contained in:
parent
e039f16fa4
commit
d57aca0812
1 changed files with 5 additions and 0 deletions
|
|
@ -1779,6 +1779,11 @@ static int msm_compr_capture_open(struct snd_compr_stream *cstream)
|
|||
atomic_set(&prtd->wait_on_close, 0);
|
||||
atomic_set(&prtd->error, 0);
|
||||
|
||||
init_waitqueue_head(&prtd->eos_wait);
|
||||
init_waitqueue_head(&prtd->drain_wait);
|
||||
init_waitqueue_head(&prtd->close_wait);
|
||||
init_waitqueue_head(&prtd->wait_for_stream_avail);
|
||||
|
||||
runtime->private_data = prtd;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue