summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormillerliang <millerliang@google.com>2022-01-04 16:48:00 +0800
committermillerliang <millerliang@google.com>2022-01-04 16:48:00 +0800
commite9f269cf50e6612ba31366ed2fafe7afcea2175c (patch)
treef94d338ae4816bc9ab1c28780592d98d01d0c5d5
parent758b6c92bb9ddb8d4745cc9c41be21ab7a34df1a (diff)
downloadaoc-e9f269cf50e6612ba31366ed2fafe7afcea2175c.tar.gz
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 5cbd12f..94d85d4 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;
}