1. 23 9月, 2019 2 次提交
    • K
      audio: remove remains of the old backend api · 3f5bbfc2
      Kővágó, Zoltán 提交于
      Signed-off-by: NKővágó, Zoltán <DirtY.iCE.hu@gmail.com>
      Message-id: 497decab6d0f0fb9529bea63ec7ce0bd7b553038.1568927990.git.DirtY.iCE.hu@gmail.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      3f5bbfc2
    • K
      audio: api for mixeng code free backends · ff095e52
      Kővágó, Zoltán 提交于
      This will make it possible to skip mixeng with audio playback and
      recording, allowing us to free ourselves from the limitations of the
      current mixeng (stereo, int64 samples only).  In this case, HW and SW
      voices will be essentially the same, for every SW voice we will create
      a HW voice, since we can no longer mix multiple voices together.
      
      Some backends expect us to call a function when we have data ready
      write()/read() style, while others provide a buffer and expects us to
      directly write/read it, so for optimal performance audio_pcm_ops provide
      methods for both cases.  Previously backends asked mixeng for more data
      in run_out/run_it, now instead mixeng or the frontends will call the
      backends, so that's why two sets of functions required.  audio.c
      contains glue code between the two styles, so backends only ever have to
      implement one style and frontends are free to call whichever is more
      convenient for them.
      Signed-off-by: NKővágó, Zoltán <DirtY.iCE.hu@gmail.com>
      Message-id: 15a33c03a62228922d851f7324c52f73cb8d2414.1568927990.git.DirtY.iCE.hu@gmail.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      ff095e52
  2. 28 8月, 2019 2 次提交
  3. 21 8月, 2019 9 次提交
  4. 16 8月, 2019 3 次提交
  5. 12 6月, 2019 1 次提交
  6. 02 4月, 2019 1 次提交
  7. 11 3月, 2019 3 次提交
  8. 28 2月, 2019 2 次提交
  9. 24 1月, 2019 1 次提交
  10. 03 7月, 2018 1 次提交
  11. 25 6月, 2018 1 次提交
  12. 12 3月, 2018 2 次提交
  13. 07 2月, 2018 1 次提交
  14. 04 5月, 2017 1 次提交
  15. 01 3月, 2017 2 次提交
    • P
      audio: make audio poll timer deterministic · 1ffc2665
      Pavel Dovgalyuk 提交于
      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: NPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
      Message-id: 20170214071510.6112.76764.stgit@PASHA-ISP
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      1ffc2665
    • P
      replay: add record/replay for audio passthrough · 3d4d16f4
      Pavel Dovgalyuk 提交于
      This patch adds recording and replaying audio data. Is saves synchronization
      information for audio out and inputs from the microphone.
      
      v2: removed unneeded whitespace change
      Signed-off-by: NPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
      Message-id: 20170202055054.4848.94901.stgit@PASHA-ISP.lan02.inno
      
      [ kraxel: add qemu/error-report.h include to fix osx build failure ]
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      3d4d16f4
  16. 08 8月, 2016 1 次提交
  17. 20 6月, 2016 1 次提交
    • E
      coccinelle: Remove unnecessary variables for function return value · 9be38598
      Eduardo Habkost 提交于
      Use Coccinelle script to replace 'ret = E; return ret' with
      'return E'. The script will do the substitution only when the
      function return type and variable type are the same.
      
      Manual fixups:
      
      * audio/audio.c: coding style of "read (...)" and "write (...)"
      * block/qcow2-cluster.c: wrap line to make it shorter
      * block/qcow2-refcount.c: change indentation of wrapped line
      * target-tricore/op_helper.c: fix coding style of
        "remainder|quotient"
      * target-mips/dsp_helper.c: reverted changes because I don't
        want to argue about checkpatch.pl
      * ui/qemu-pixman.c: fix line indentation
      * block/rbd.c: restore blank line between declarations and
        statements
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <1465855078-19435-4-git-send-email-ehabkost@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      [Unused Coccinelle rule name dropped along with a redundant comment;
      whitespace touched up in block/qcow2-cluster.c; stale commit message
      paragraph deleted]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      9be38598
  18. 23 3月, 2016 2 次提交
  19. 02 2月, 2016 1 次提交
  20. 13 1月, 2016 1 次提交
  21. 15 6月, 2015 2 次提交