1. 07 Jun, 2012 1 commit
  2. 24 May, 2012 1 commit
    • Jan Kiszka's avatar
      audio: Always call fini on exit · aeb29b64
      Jan Kiszka authored
      Not only clean up enabled voices but any registered one. Backends like
      pulsaudio rely on unconditional fini handler invocations.
      This fixes "Memory pool destroyed but not all memory blocks freed!"
      warnings on VM shutdowns when pa is used and lockups of QEMU on shutdown
      as it got stuck on some pa-internal synchronization point.
      Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: default avatarmalc <av1474@comtv.ru>
  3. 18 May, 2012 1 commit
  4. 03 May, 2012 1 commit
  5. 25 Apr, 2012 1 commit
  6. 17 Apr, 2012 5 commits
  7. 25 Feb, 2012 1 commit
  8. 14 Dec, 2011 1 commit
  9. 18 Nov, 2011 1 commit
  10. 20 Sep, 2011 2 commits
  11. 15 Sep, 2011 1 commit
    • Luiz Capitulino's avatar
      Replace the VMSTOP macros with a proper state type · 1dfb4dd9
      Luiz Capitulino authored
      Today, when notifying a VM state change with vm_state_notify(),
      we pass a VMSTOP macro as the 'reason' argument. This is not ideal
      because the VMSTOP macros tell why qemu stopped and not exactly
      what the current VM state is.
      One example to demonstrate this problem is that vm_start() calls
      vm_state_notify() with reason=0, which turns out to be VMSTOP_USER.
      This commit fixes that by replacing the VMSTOP macros with a proper
      state type called RunState.
      Signed-off-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
  12. 20 Aug, 2011 1 commit
  13. 23 Jun, 2011 2 commits
  14. 13 Jun, 2011 1 commit
  15. 08 Jun, 2011 1 commit
  16. 31 May, 2011 1 commit
  17. 03 Apr, 2011 1 commit
  18. 21 Mar, 2011 1 commit
    • Paolo Bonzini's avatar
      change all other clock references to use nanosecond resolution accessors · 74475455
      Paolo Bonzini authored
      This was done with:
          sed -i 's/qemu_get_clock\>/qemu_get_clock_ns/' \
              $(git grep -l 'qemu_get_clock\>' )
          sed -i 's/qemu_new_timer\>/qemu_new_timer_ns/' \
              $(git grep -l 'qemu_new_timer\>' )
      after checking that get_clock and new_timer never occur twice
      on the same line.  There were no missed occurrences; however, even
      if there had been, they would have been caught by the compiler.
      There was exactly one false positive in qemu_run_timers:
           -    current_time = qemu_get_clock (clock);
           +    current_time = qemu_get_clock_ns (clock);
      which is of course not in this patch.
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
  19. 25 Jan, 2011 3 commits
    • Gerd Hoffmann's avatar
      pulseaudio: tweak config · bf1064b5
      Gerd Hoffmann authored
      Zap unused divisor field.
      Raise the buffer size default.
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: default avatarmalc <av1474@comtv.ru>
    • Gerd Hoffmann's avatar
      pulseaudio: setup buffer attrs · e6d16fa4
      Gerd Hoffmann authored
      Request reasonable buffer sizes from pulseaudio.  Without this
      pa_simple_write() can block quite long and lead to dropouts,
      especially with guests which use small audio ring buffers.
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: default avatarmalc <av1474@comtv.ru>
    • Gerd Hoffmann's avatar
      pulseaudio: process 1/4 buffer max at once · 6315633b
      Gerd Hoffmann authored
      Limit the size of data pieces processed by the pulseaudio worker
      threads.  Never ever process more than 1/4 of the buffer at once.
      Background: The buffer area currently processed by the pulseaudio thread
      is blocked, i.e. the main thread (or iothread) can't fill in more data
      there.  The buffer processing time is roughly real-time due to the
      pa_simple_write() call blocking when the output queue to the pulse
      server is full.  Thus processing big chunks at once means blocking
      a large part of the buffer for a long time.  This brings high latency
      and can lead to dropouts.
      When processing the buffer in smaller chunks the rpos handling becomes a
      problem though.  The thread reads hw->rpos without knowing whenever
      qpa_run_out has already seen the last (small) chunk processed and
      updated rpos accordingly.  There is no point in reading hw->rpos though,
      pa->rpos can be used instead.  We just need to take care to initialize
      pa->rpos before kicking the thread.
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: default avatarmalc <av1474@comtv.ru>
  20. 12 Jan, 2011 1 commit
  21. 08 Jan, 2011 2 commits
  22. 03 Jan, 2011 1 commit
  23. 09 Dec, 2010 1 commit
  24. 04 Dec, 2010 1 commit
  25. 18 Nov, 2010 1 commit
  26. 11 Nov, 2010 1 commit
  27. 09 Nov, 2010 1 commit
    • Gerd Hoffmann's avatar
      spice: add audio · 3e313753
      Gerd Hoffmann authored
      Add support for the spice audio interface.  With this patch applied
      audio can be forwarded over the network from/to the spice client.  Both
      recording and playback is supported.
      The driver is first in the driver list, but the can_be_default flag is
      set only in case spice is active.  So if you have the spice protocol
      enabled the spice audio driver is the default one, otherwise whatever
      comes first after spice in the list.  Overriding the default using
      QEMU_AUDIO_DRV works in any case.
      [ v2: audio codestyle: add spaces before open parenthesis ]
      [ v2: add const to silence array ]
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Cc: malc <av1474@comtv.ru>
      Signed-off-by: default avatarmalc <av1474@comtv.ru>
  28. 17 Oct, 2010 2 commits
  29. 03 Oct, 2010 2 commits