[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/18] ui/vnc: Require audiodev=
From: |
Martin Kletzander |
Subject: |
[PATCH 06/18] ui/vnc: Require audiodev= |
Date: |
Mon, 25 Apr 2022 10:21:49 +0200 |
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
---
ui/vnc.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/ui/vnc.c b/ui/vnc.c
index badf1d7664fe..2e7af139b030 100644
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -4188,12 +4188,15 @@ void vnc_display_open(const char *id, Error **errp)
vd->ledstate = 0;
audiodev = qemu_opt_get(opts, "audiodev");
- if (audiodev) {
- vd->audio_state = audio_state_by_name(audiodev);
- if (!vd->audio_state) {
- error_setg(errp, "Audiodev '%s' not found", audiodev);
- goto fail;
- }
+ if (!audiodev) {
+ error_setg(errp, "Audiodev parameter for vnc required");
+ goto fail;
+ }
+
+ vd->audio_state = audio_state_by_name(audiodev);
+ if (!vd->audio_state) {
+ error_setg(errp, "Audiodev '%s' not found", audiodev);
+ goto fail;
}
device_id = qemu_opt_get(opts, "display");
--
2.35.1
- Re: [PATCH 17/18] audio: Remove unused can_be_default, (continued)
- [PATCH 13/18] audio: Make AUD_register_card fallible and require audiodev=, Martin Kletzander, 2022/04/25
- [PATCH 09/18] hw/display/xlnx_dp.c: Add audiodev property, Martin Kletzander, 2022/04/25
- [PATCH 04/18] hw/audio/lm4549: Add errp error reporting to init function, Martin Kletzander, 2022/04/25
- [PATCH 12/18] hw/ppc: Support machine-default audiodev with fallback, Martin Kletzander, 2022/04/25
- [PATCH 02/18] hw/input/tsc210x: Extract common init code into new function, Martin Kletzander, 2022/04/25
- [PATCH 06/18] ui/vnc: Require audiodev=,
Martin Kletzander <=
- [PATCH 15/18] audio: Be more strict during audio backend initialisation, Martin Kletzander, 2022/04/25
- [PATCH 03/18] hw/audio: Simplify hda audio init, Martin Kletzander, 2022/04/25
- [PATCH 01/18] hw/audio: Remove -soundhw support, Martin Kletzander, 2022/04/25