This project is mirrored from Pull mirroring updated .
  1. 23 Nov, 2020 22 commits
  2. 05 Nov, 2020 1 commit
  3. 04 Nov, 2020 1 commit
  4. 27 Oct, 2020 1 commit
  5. 26 Aug, 2020 2 commits
  6. 10 Aug, 2020 1 commit
  7. 22 Jul, 2020 1 commit
  8. 09 Jul, 2020 1 commit
  9. 07 Jul, 2020 1 commit
  10. 30 Jun, 2020 1 commit
  11. 17 Jun, 2020 1 commit
    • Takashi Iwai's avatar
      ALSA: usb-audio: Fix potential use-after-free of streams · ff58bbc7
      Takashi Iwai authored
      With the recent full-duplex support of implicit feedback streams, an
      endpoint can be still running after closing the capture stream as long
      as the playback stream with the sync-endpoint is running.  In such a
      state, the URBs are still be handled and they may call retire_data_urb
      callback, which tries to transfer the data from the PCM buffer.  Since
      the PCM stream gets closed, this may lead to use-after-free.
      This patch adds the proper clearance of the callback at stopping the
      capture stream for addressing the possible UAF above.
      Fixes: 10ce77e4 ("ALSA: usb-audio: Add duplex sound support for USB devices using implicit feedback")
      Signed-off-by: default avatarTakashi Iwai <>
  12. 12 Jun, 2020 1 commit
  13. 01 Jun, 2020 1 commit
  14. 15 May, 2020 1 commit
  15. 24 Apr, 2020 1 commit
    • Alexander Tsoy's avatar
      ALSA: usb-audio: Improve frames size computation · f0bd62b6
      Alexander Tsoy authored
      For computation of the the next frame size current value of fs/fps and
      accumulated fractional parts of fs/fps are used, where values are stored
      in Q16.16 format. This is quite natural for computing frame size for
      asynchronous endpoints driven by explicit feedback, since in this case
      fs/fps is a value provided by the feedback endpoint and it's already in
      the Q format. If an error is accumulated over time, the device can
      adjust fs/fps value to prevent buffer overruns/underruns.
      But for synchronous endpoints the accuracy provided by these computations
      is not enough. Due to accumulated error the driver periodically produces
      frames with incorrect size (+/- 1 audio sample).
      This patch fixes this issue by implementing a different algorithm for
      frame size computation. It is based on accumulating of the remainders
      from division fs/fps and it doesn't accumulate errors over time. This
      new method is enabled for synchronous and adaptive playback endpoints.
      Signed-off-by: default avatarAlexander Tsoy <>
      Signed-off-by: default avatarTakashi Iwai <>
  16. 06 Mar, 2020 1 commit
  17. 16 Jan, 2020 1 commit
  18. 14 Jan, 2020 1 commit