Skip to content

Conversation

@Cuda-Chen
Copy link
Collaborator

@Cuda-Chen Cuda-Chen commented Nov 17, 2025

Summary by cubic

Implements VirtIO sound capture (RX) with PortAudio input, RX virtqueue handling, and circular buffering so input audio can be delivered to the guest. Also exposes separate input/output streams with accurate device info.

  • New Features
    • Added RX virtqueue handlers (normal/flush) with default flush stream_id = 1.
    • Opened PortAudio input stream and RX callback to capture frames and enqueue to the driver.
    • Implemented circular intermediate buffer (buf_sz, buf_idx) and RX enqueue/dequeue helpers.
    • Exposed two streams (output + input), mono S16, with per-stream jack/pcm/chmap info.
    • Added RX worker thread, mutex/cond vars, and VSND_QUEUE_RX notifications.
    • Applied direction-aware flush in pcm_release and set RX response length/status.

Written for commit 4dd617c. Summary will update automatically on new commits.

Copy link
Collaborator

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebase to avoid unnecessary merge commits.

@jserv

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants