summary refs log tree commit diff stats
path: root/python/scripts
diff options
context:
space:
mode:
authorManos Pitsidianakis <manos.pitsidianakis@linaro.org>2023-10-23 15:03:27 +0300
committerMichael S. Tsirkin <mst@redhat.com>2023-11-07 03:39:10 -0500
commitd8d64acbecfa131153e5b96fb24b4f95f55be881 (patch)
tree5c52b8a4c6ef9635fa95421a6d6d808454b785f3 /python/scripts
parent18a752810f04e3f1933682addd0a6c978efc5cdf (diff)
downloadfocaccia-qemu-d8d64acbecfa131153e5b96fb24b4f95f55be881.tar.gz
focaccia-qemu-d8d64acbecfa131153e5b96fb24b4f95f55be881.zip
virtio-sound: implement audio capture (RX)
To perform audio capture we duplicate the TX logic of the previous
commit with the following difference: we receive data from the QEMU
audio backend and write it in the virt queue IO buffers the guest sends
to QEMU. When they are full (i.e. they have `period_bytes` amount of
data) or when recording stops in QEMU's audio backend, the buffer is
returned to the guest by notifying it.

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <e56a17741a24ccadfbbea19d3c60c9406b795b23.1698062525.git.manos.pitsidianakis@linaro.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'python/scripts')
0 files changed, 0 insertions, 0 deletions