[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 25/26] audio: fix in.voices test
From: |
Gerd Hoffmann |
Subject: |
[PULL 25/26] audio: fix in.voices test |
Date: |
Thu, 13 Oct 2022 08:52:23 +0200 |
From: Helge Konetzka <hk@zapateado.de>
Calling qemu with valid -audiodev ...,in.voices=0 results in an obsolete
warning:
audio: Bogus number of capture voices 0, setting to 0
This patch fixes the in.voices test.
Signed-off-by: Helge Konetzka <hk@zapateado.de>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20221012114925.5084-2-hk@zapateado.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
audio/audio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/audio/audio.c b/audio/audio.c
index 886725747bda..1ecdbc4191f2 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -1778,7 +1778,7 @@ static AudioState *audio_init(Audiodev *dev, const char
*name)
s->nb_hw_voices_out = 1;
}
- if (s->nb_hw_voices_in <= 0) {
+ if (s->nb_hw_voices_in < 0) {
dolog ("Bogus number of capture voices %d, setting to 0\n",
s->nb_hw_voices_in);
s->nb_hw_voices_in = 0;
--
2.37.3
- [PULL 19/26] pci-ids: drop PCI_DEVICE_ID_VIRTIO_PMEM, (continued)
- [PULL 19/26] pci-ids: drop PCI_DEVICE_ID_VIRTIO_PMEM, Gerd Hoffmann, 2022/10/13
- [PULL 20/26] pci-ids: drop list of modern virtio devices, Gerd Hoffmann, 2022/10/13
- [PULL 13/26] ui/vnc-clipboard: fix integer underflow in vnc_client_cut_text_ext, Gerd Hoffmann, 2022/10/13
- [PULL 11/26] audio: fix sw->buf size for audio recording, Gerd Hoffmann, 2022/10/13
- [PULL 18/26] pci-ids: drop PCI_DEVICE_ID_VIRTIO_MEM, Gerd Hoffmann, 2022/10/13
- [PULL 14/26] ui/gtk-egl: egl context needs to be unbound in the end of gd_egl_switch, Gerd Hoffmann, 2022/10/13
- [PULL 21/26] pci-ids: document modern virtio-pci ids in pci.h too, Gerd Hoffmann, 2022/10/13
- [PULL 24/26] gtk: Add show_menubar=on|off command line option., Gerd Hoffmann, 2022/10/13
- [PULL 26/26] audio: improve out.voices test, Gerd Hoffmann, 2022/10/13
- [PULL 09/26] audio: rename audio_sw_bytes_free(), Gerd Hoffmann, 2022/10/13
- [PULL 25/26] audio: fix in.voices test,
Gerd Hoffmann <=
- Re: [PULL 00/26] Kraxel 20221013 patches, Stefan Hajnoczi, 2022/10/13