diff options
author | Helge Konetzka <hk@zapateado.de> | 2022-10-12 13:49:25 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2022-10-12 20:36:17 +0200 |
commit | 61ddafbcfac4975ee245cd3453be86b0632a5605 (patch) | |
tree | 9a2eed1c93db1af0df3888849b86a96615127302 /audio/audio.c | |
parent | a7b7802bfe971b1b33cf85b328a521333e68ce97 (diff) |
audio: improve out.voices test
Improve readability of audio out.voices test:
If 1 is logged and set after positive test, 1 should be tested.
Signed-off-by: Helge Konetzka <hk@zapateado.de>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20221012114925.5084-3-hk@zapateado.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'audio/audio.c')
-rw-r--r-- | audio/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio.c b/audio/audio.c index 1ecdbc4191..cc664271eb 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -1772,7 +1772,7 @@ static AudioState *audio_init(Audiodev *dev, const char *name) s->nb_hw_voices_out = audio_get_pdo_out(dev)->voices; s->nb_hw_voices_in = audio_get_pdo_in(dev)->voices; - if (s->nb_hw_voices_out <= 0) { + if (s->nb_hw_voices_out < 1) { dolog ("Bogus number of playback voices %d, setting to 1\n", s->nb_hw_voices_out); s->nb_hw_voices_out = 1; |