Manos Pitsidianakis d8d64acbec 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>
2023-11-07 03:39:10 -05:00
..
2023-10-20 08:51:41 +02:00
2023-10-23 14:45:29 -07:00
2023-11-03 10:04:12 +08:00
2023-11-03 10:04:12 +08:00
2023-09-21 11:31:16 +03:00
2023-11-03 10:04:12 +08:00
2023-10-20 00:47:38 +02:00
2023-11-03 10:04:12 +08:00
2023-11-03 10:04:12 +08:00
2023-11-03 09:57:32 +08:00
2023-10-23 14:45:29 -07:00
2023-10-23 14:45:29 -07:00
2023-11-01 16:13:58 +01:00
2023-11-01 16:13:58 +01:00
2023-10-20 08:51:41 +02:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00
2023-11-01 16:13:59 +01:00
2023-08-31 19:47:43 +02:00
2023-09-21 11:31:16 +03:00
2023-07-25 17:14:07 +03:00
2023-09-21 11:31:16 +03:00
2023-09-20 07:54:34 +03:00
2023-10-20 08:51:41 +02:00
2023-10-18 10:01:01 +02:00