qemu-e2k/audio
Pavel Dovgalyuk 1ffc266539 audio: make audio poll timer deterministic
This patch changes resetting strategy of the audio polling timer.
It does not change expiration time if the timer is already set.
This patch is needed to make this timer deterministic and to use execution
record/replay for audio devices.

audio_reset_timer is used in the function audio_vm_change_state_handler.
Therefore every time VM is stopped or restarted the timer will be reset
to new timeout. Virtual clock does not proceed while VM is stopped.
Therefore there is no need in resetting the timeout when VM restarts.

v2: updated commit message
v3: now using timer_mod_anticipate function (as suggested by Yurii Zubrytskyi)

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-id: 20170214071510.6112.76764.stgit@PASHA-ISP
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2017-03-01 15:12:03 +01:00
..
alsaaudio.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
audio_int.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
audio_pt_int.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
audio_pt_int.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
audio_template.h audio: remove plive 2015-06-15 12:42:48 +02:00
audio_win_int.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
audio_win_int.h Windows Waveform Audio driver (no ADC support yet) 2009-10-10 01:18:24 +04:00
audio.c audio: make audio poll timer deterministic 2017-03-01 15:12:03 +01:00
audio.h replay: add record/replay for audio passthrough 2017-03-01 15:11:44 +01:00
coreaudio.c audio: clean up before monitor clean up 2016-08-08 14:17:00 +02:00
dsound_template.h dsoundaudio: remove *_retries kludges 2015-06-15 12:42:48 +02:00
dsoundaudio.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
Makefile.objs audio: remove winwave audio driver 2015-06-15 10:50:31 +02:00
mixeng_template.h audio/mixeng_template.h: fix inline declaration 2013-10-26 13:09:34 +04:00
mixeng.c replay: add record/replay for audio passthrough 2017-03-01 15:11:44 +01:00
mixeng.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
noaudio.c qemu-common: stop including qemu/host-utils.h from qemu-common.h 2016-05-19 16:42:28 +02:00
ossaudio.c os-posix: include sys/mman.h 2016-06-16 18:39:03 +02:00
paaudio.c audio: pa: Set volume of recording stream instead of recording device 2016-06-03 11:13:38 +02:00
rate_template.h Make audio violate POSIX less 2008-12-03 22:48:44 +00:00
sdlaudio.c audio: Clean up includes 2016-02-02 13:57:31 +01:00
spiceaudio.c qemu-common: stop including qemu/host-utils.h from qemu-common.h 2016-05-19 16:42:28 +02:00
trace-events trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00
wavaudio.c qemu-common: stop including qemu/host-utils.h from qemu-common.h 2016-05-19 16:42:28 +02:00
wavcapture.c audio: Clean up includes 2016-02-02 13:57:31 +01:00