summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormillerliang <millerliang@google.com>2022-01-04 16:48:00 +0800
committermillerliang <millerliang@google.com>2022-01-04 17:17:05 +0800
commit30560419c50d77461e5d39e4d3a896a2e7bd8d7c (patch)
treeff48e632989da9a4c8e1439c565b149a8310e7a0
parent56ab8f57a308022cd274cb95d6b4b2b0e1d5883e (diff)
downloadaoc-30560419c50d77461e5d39e4d3a896a2e7bd8d7c.tar.gz
aoc/alsa: use system_highpri_wq for aoc_pcm_period_work
We use workqueue to update the pcm hw_ptr. It needs higher priority to avoid updating the pcm hw_ptr too late. Bug: 208717360 Signed-off-by: millerliang <millerliang@google.com> Change-Id: I84895f1086bb3ae12f85791f54df930914bd98ff
-rw-r--r--alsa/aoc_alsa_pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alsa/aoc_alsa_pcm.c b/alsa/aoc_alsa_pcm.c
index 27f5d95..11167dc 100644
--- a/alsa/aoc_alsa_pcm.c
+++ b/alsa/aoc_alsa_pcm.c
@@ -200,7 +200,7 @@ static enum hrtimer_restart aoc_pcm_hrtimer_irq_handler(struct hrtimer *timer)
alsa_stream->pos = (consumed - alsa_stream->hw_ptr_base) % alsa_stream->buffer_size;
}
- schedule_work(&alsa_stream->pcm_period_work);
+ queue_work(system_highpri_wq, &alsa_stream->pcm_period_work);
return HRTIMER_RESTART;
}