| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
This fixes a segfault when exiting, as sometimes it occured that
the USB worker thread completed before the sample worker thread,
and the buffers the latter was still accessing had already been
freed.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Linux Kernel has a bug on ARM/ARM64 systems where the USB CMA
memory is incorrectly mapped to userspace, breaking zerocopy.
When the Kernel allocates the memory, it clears it with memset().
If the mapping worked correctly, we should have zeroed out buffers,
if it doesn't, we get random Kernel memory. We now check for this,
and fall back to buffers in userspace if that's the case.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
|
|
|
|
|
|
|
| |
Note that the FL2000 only supports I2C transfers with
a fixed length of 4 bytes.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
|
|
|
|
| |
Signed-off-by: Steve Markgraf <steve@steve-m.de>
|
|
|
|
|
|
|
|
|
|
|
| |
This avoids the following compiler warnings when using more recent
versions of libusb:
src/libosmo-fl2k.c:384:2: warning: ‘libusb_set_debug’ is deprecated: Use libusb_set_option instead [-Wdeprecated-declarations]
libusb_set_debug(dev->ctx, 3);
^~~~~~~~~~~~~~~~
Details can be found at https://github.com/libusb/libusb/commit/539f22e2fd916558d11ab9a66f10f461c5593168
|
|
|
|
| |
Signed-off-by: Steve Markgraf <steve@steve-m.de>
|
|
|
|
| |
Signed-off-by: Steve Markgraf <steve@steve-m.de>
|
|
|
|
| |
Signed-off-by: Steve Markgraf <steve@steve-m.de>
|
|
Signed-off-by: Steve Markgraf <steve@steve-m.de>
|