summaryrefslogtreecommitdiffstats
path: root/qapi
diff options
context:
space:
mode:
authorAlexandre Ratchov2022-09-07 15:23:42 +0200
committerGerd Hoffmann2022-09-27 07:32:31 +0200
commit663df1cc68729adc0468d632fb19f6106ddcdca8 (patch)
tree8bcb3bdd80a091b8082186fcbdb5b6e29bab8c9f /qapi
parentusbnet: Report link-up via interrupt endpoint in CDC-ECM mode (diff)
downloadqemu-663df1cc68729adc0468d632fb19f6106ddcdca8.tar.gz
qemu-663df1cc68729adc0468d632fb19f6106ddcdca8.tar.xz
qemu-663df1cc68729adc0468d632fb19f6106ddcdca8.zip
audio: Add sndio backend
sndio is the native API used by OpenBSD, although it has been ported to other *BSD's and Linux (packages for Ubuntu, Debian, Void, Arch, etc.). Signed-off-by: Brad Smith <brad@comstyle.com> Signed-off-by: Alexandre Ratchov <alex@caoua.org> Reviewed-by: Volker RĂ¼melin <vr_qemu@t-online.de> Tested-by: Volker RĂ¼melin <vr_qemu@t-online.de> Message-Id: <YxibXrWsrS3XYQM3@vm1.arverb.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/audio.json25
1 files changed, 24 insertions, 1 deletions
diff --git a/qapi/audio.json b/qapi/audio.json
index 8099e3d7f1..1e0a24bdfc 100644
--- a/qapi/audio.json
+++ b/qapi/audio.json
@@ -107,6 +107,28 @@
'*threshold': 'uint32' } }
##
+# @AudiodevSndioOptions:
+#
+# Options of the sndio audio backend.
+#
+# @in: options of the capture stream
+#
+# @out: options of the playback stream
+#
+# @dev: the name of the sndio device to use (default 'default')
+#
+# @latency: play buffer size (in microseconds)
+#
+# Since: 7.2
+##
+{ 'struct': 'AudiodevSndioOptions',
+ 'data': {
+ '*in': 'AudiodevPerDirectionOptions',
+ '*out': 'AudiodevPerDirectionOptions',
+ '*dev': 'str',
+ '*latency': 'uint32'} }
+
+##
# @AudiodevCoreaudioPerDirectionOptions:
#
# Options of the Core Audio backend that are used for both playback and
@@ -387,7 +409,7 @@
##
{ 'enum': 'AudiodevDriver',
'data': [ 'none', 'alsa', 'coreaudio', 'dbus', 'dsound', 'jack', 'oss', 'pa',
- 'sdl', 'spice', 'wav' ] }
+ 'sdl', 'sndio', 'spice', 'wav' ] }
##
# @Audiodev:
@@ -418,5 +440,6 @@
'oss': 'AudiodevOssOptions',
'pa': 'AudiodevPaOptions',
'sdl': 'AudiodevSdlOptions',
+ 'sndio': 'AudiodevSndioOptions',
'spice': 'AudiodevGenericOptions',
'wav': 'AudiodevWavOptions' } }