History log of /haiku/src/add-ons/kernel/drivers/audio/usb/Stream.cpp
Revision Date Author Comments
# b785b0cf 31-Jan-2024 Augustin Cavalier <waddlesplash@gmail.com>

usb_audio: Report callback errors to syslog.

That way they don't just get lost.


# 02f5db91 29-Jan-2024 Augustin Cavalier <waddlesplash@gmail.com>

usb_audio: Always USB_ISO_ASAP rather than scheduling transfers by frame.

Seems to make things work much better.


# b99d228d 03-Sep-2021 Augustin Cavalier <waddlesplash@gmail.com>

usb_audio: Set real_time from the time during device buffers exchange.

As opposed to driver/userland buffers exchange. This is what the other
multi_audio drivers do.


# ccb3e712 03-Sep-2021 Augustin Cavalier <waddlesplash@gmail.com>

usb_audio: Clean up buffer management.

* Get rid of fPacketSize and use fSamplesCount in GetBuffers instead.

* Clarify logic in _TransferCallback.

* Properly multiply in kSamplesBufferCount to fAreaSize
(this should be the only functional change in here.)

The larger buffers (now similarly sized to HDA at least in the
default cases of 44100 or 48000) seem to help with jittering
and discontinuities, which are significantly reduced now,
at least under emulation.


# 34352671 03-Sep-2021 Augustin Cavalier <waddlesplash@gmail.com>

usb_audio: Yet more code cleanup.

Slight logic tweaks but no real behavioral changes intended.


# 7b2bc835 03-Sep-2021 Augustin Cavalier <waddlesplash@gmail.com>

usb_audio: Properly separate kernel and userland data.

* Allocate the descriptors array separately from the data area.
* Clone the data area for kernel use separately from userland use.

Fixes the remaining SMAP problems with this driver.


# 956664fa 15-Jul-2019 Augustin Cavalier <waddlesplash@gmail.com>

usb_audio: Cancel transfers when stopping the stream and do not queue more.

Seems to fix some KDLs caused at lower layers in the stack.


# d5aa7f00 14-Jul-2019 Augustin Cavalier <waddlesplash@gmail.com>

usb_audio: Stop before reallocating buffers and add more error checks.

Also print strerror() for SetGlobalFormat.


# b281541f 13-Jul-2019 Augustin Cavalier <waddlesplash@gmail.com>

usb_audio: Map the buffer area as B_READ_AREA/B_WRITE_AREA.

The calling userland process needs to be able to access it.


# 3f853fd3 05-May-2018 Jérôme Duval <jerome.duval@gmail.com>

usb_audio: use user_memcpy to read/write the user buffers.

* also check buffer addresses passed through structures.
* fixes gcc5 and 64-bit warnings.
* only setup tested (lack of isochronous transfers).


# 222b10cb 19-Aug-2013 Siarzhuk Zharski <zharik@gmx.li>

USB audio: Fix building on x86_64

* fix x86_64 build errors and warnings pointed out by Diver;
* fix warning building with gcc2.


# a69892ca 17-Aug-2013 Siarzhuk Zharski <zharik@gmx.li>

Rename driver folder 'usb_audio' to 'usb'

... just because the source path ./kernel/drivers/audio/usb obviously
references audio hardware so "_audio" suffix is excessive.

No functional changes.


# 222b10cbc0981904272b180609c74df8510b5c21 19-Aug-2013 Siarzhuk Zharski <zharik@gmx.li>

USB audio: Fix building on x86_64

* fix x86_64 build errors and warnings pointed out by Diver;
* fix warning building with gcc2.


# a69892cadca9288b901ac66273d342bfb4329373 17-Aug-2013 Siarzhuk Zharski <zharik@gmx.li>

Rename driver folder 'usb_audio' to 'usb'

... just because the source path ./kernel/drivers/audio/usb obviously
references audio hardware so "_audio" suffix is excessive.

No functional changes.