aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorHelge Konetzka <hk@zapateado.de>2022-10-12 13:49:24 +0200
committerGerd Hoffmann <kraxel@redhat.com>2022-10-12 20:36:17 +0200
commita7b7802bfe971b1b33cf85b328a521333e68ce97 (patch)
treea3127ce114f05bd9911191de3516054214f361d4 /audio
parentdbccb1a5a1b5b14b78ea6b27bb562e8cd0a8f317 (diff)
audio: fix in.voices test
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>
Diffstat (limited to 'audio')
-rw-r--r--audio/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio.c b/audio/audio.c
index 886725747b..1ecdbc4191 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;