From: Joonho Lee <[email protected]>

Use system_highpri_wq for capture progress notifications. Capture now
always uses request-owned storage. Playback keeps the ordinary
workqueue. This preserves the priority proposal separately from recovery
and accounting. It provides no hard real-time guarantee and cannot
prevent reader overruns.

Assisted-by: LLM
Signed-off-by: Joonho Lee <[email protected]>
---
 sound/virtio/virtio_pcm.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sound/virtio/virtio_pcm.h b/sound/virtio/virtio_pcm.h
index 95881a3a2c57..987105145205 100644
--- a/sound/virtio/virtio_pcm.h
+++ b/sound/virtio/virtio_pcm.h
@@ -173,6 +173,9 @@ virtsnd_pcm_defer_paused_xrun(struct virtio_pcm_substream 
*vss)
 static inline bool
 virtsnd_pcm_schedule_period_elapsed(struct virtio_pcm_substream *vss)
 {
+       if (vss->direction == SNDRV_PCM_STREAM_CAPTURE)
+               return queue_work(system_highpri_wq, &vss->elapsed_period);
+
        return schedule_work(&vss->elapsed_period);
 }
 

-- 
Git-157)



Reply via email to