]> git.proxmox.com Git - mirror_qemu.git/commit
audio: fix audio timer rate conversion bug
authorVolker Rümelin <vr_qemu@t-online.de>
Mon, 1 Apr 2019 18:59:20 +0000 (20:59 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 2 Apr 2019 05:50:49 +0000 (07:50 +0200)
commitbe1092afa07794e5247eb504095fb5f2ae421ec6
treea4fb40da0802ff9dc2f14cad533c0298ade7f3a5
parentb396733df3554688c58678f454c34d5c07dd5ca2
audio: fix audio timer rate conversion bug

Currently the default audio timer frequency is 10000Hz instead of
a period of 10000us. Also the audiodev timer-period property gets
converted like a frequency. Only handling of the legacy
QEMU_AUDIO_TIMER_PERIOD environment variable is correct because
it's actually a frequency.

With this patch the property timer-period is really a timer period
and QEMU_AUDIO_TIMER_PERIOD remains a frequency.

Fixes: 71830221fb "-audiodev command line option basic implementation."
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Reviewed-by: Zoltán Kővágó <DirtY.iCE.hu@gmail.com>
Message-id: 90b95e4f-39ef-2b01-da6a-857ebaee1ec5@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio.c
audio/audio_legacy.c