Skip to content
Snippets Groups Projects
  1. Jan 15, 2021
  2. Dec 18, 2020
  3. Dec 15, 2020
  4. Nov 13, 2020
  5. Oct 21, 2020
  6. Oct 15, 2020
  7. Oct 09, 2020
  8. Sep 23, 2020
    • Stefan Hajnoczi's avatar
      qemu/atomic.h: rename atomic_ to qatomic_ · d73415a3
      Stefan Hajnoczi authored
      
      clang's C11 atomic_fetch_*() functions only take a C11 atomic type
      pointer argument. QEMU uses direct types (int, etc) and this causes a
      compiler error when a QEMU code calls these functions in a source file
      that also included <stdatomic.h> via a system header file:
      
        $ CC=clang CXX=clang++ ./configure ... && make
        ../util/async.c:79:17: error: address argument to atomic operation must be a pointer to _Atomic type ('unsigned int *' invalid)
      
      Avoid using atomic_*() names in QEMU's atomic.h since that namespace is
      used by <stdatomic.h>. Prefix QEMU's APIs with 'q' so that atomic.h
      and <stdatomic.h> can co-exist. I checked /usr/include on my machine and
      searched GitHub for existing "qatomic_" users but there seem to be none.
      
      This patch was generated using:
      
        $ git grep -h -o '\<atomic\(64\)\?_[a-z0-9_]\+' include/qemu/atomic.h | \
          sort -u >/tmp/changed_identifiers
        $ for identifier in $(</tmp/changed_identifiers); do
              sed -i "s%\<$identifier\>%q$identifier%g" \
                  $(git grep -I -l "\<$identifier\>")
          done
      
      I manually fixed line-wrap issues and misaligned rST tables.
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Message-Id: <20200923105646.47864-1-stefanha@redhat.com>
      d73415a3
    • Gerd Hoffmann's avatar
      audio: build spiceaudio as module · 5e626fa7
      Gerd Hoffmann authored
      
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20200916084117.21828-3-kraxel@redhat.com
      5e626fa7
    • Gerd Hoffmann's avatar
      audio: remove qemu_spice_audio_init() · f0c4555e
      Gerd Hoffmann authored
      
      Handle the spice special case in audio_init instead.
      
      With the qemu_spice_audio_init() symbol dependency being
      gone we can build spiceaudio as module.
      
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20200916084117.21828-2-kraxel@redhat.com
      f0c4555e
    • Volker Rümelin's avatar
      audio: run downstream playback queue unconditionally · a8a98cfd
      Volker Rümelin authored
      
      Run the downstream playback queue even if there are no samples
      in the mixing engine buffer. The downstream queue may still have
      queued samples.
      
      Signed-off-by: default avatarVolker Rümelin <vr_qemu@t-online.de>
      Message-id: 20200920171729.15861-7-vr_qemu@t-online.de
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      a8a98cfd
    • Volker Rümelin's avatar
      audio: align audio_generic_write with audio_pcm_hw_run_out · 2d882307
      Volker Rümelin authored
      
      The function audio_generic_write should work exactly like
      audio_pcm_hw_run_out. It's a very similar function working on a
      different buffer.
      
      This patch significantly reduces the number of drop-outs with
      the DirectSound backend. To hear the difference start qemu with
      -audiodev dsound,id=audio0,out.mixing-engine=off and play a
      song in the guest with and without this patch.
      
      Signed-off-by: default avatarVolker Rümelin <vr_qemu@t-online.de>
      Message-id: 20200920171729.15861-6-vr_qemu@t-online.de
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      2d882307
Loading