rtl-sdr/src
Steve Markgraf f68bb2fa77 lib: Add workaround for Linux usbfs mmap() bug
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>
2018-10-07 01:25:07 +02:00
..
convenience cosmetic: Fix "implicit fall-through" gcc 7.3.0 warnings 2018-04-18 23:59:17 +02:00
getopt add local copy of getopt() for win32 build 2012-05-29 02:13:18 +02:00
CMakeLists.txt cmake: include resource file for MSVC builds 2014-08-26 21:26:26 +02:00
Makefile.am unbreak 'make distcheck' with automake 2014-01-26 13:49:39 +01:00
librtlsdr.c lib: Add workaround for Linux usbfs mmap() bug 2018-10-07 01:25:07 +02:00
rtl_adsb.c Fix inline functions to use 'static inline' 2018-07-03 23:59:01 +02:00
rtl_eeprom.c cosmetic: Fix "implicit fall-through" gcc 7.3.0 warnings 2018-04-18 23:59:17 +02:00
rtl_fm.c fix "-Wshift-negative-value" compiler warning on ggc-7.3.0 2018-04-18 23:59:17 +02:00
rtl_power.c Fix inline functions to use 'static inline' 2018-07-03 23:59:01 +02:00
rtl_sdr.c lib: change default number of transfers to 15 2014-02-10 23:57:19 +01:00
rtl_tcp.c Add option '-T' for activating bias-T in rtl_(adsb|fm|power|tcp) 2017-06-13 01:20:32 +02:00
rtl_test.c rtl_test: fix build on Mac OS 2018-04-26 23:51:15 +02:00
rtlsdr.rc.in cmake: include resource file for MSVC builds 2014-08-26 21:26:26 +02:00
tuner_e4k.c Correct return code of e4k_reg_write(). 2015-05-08 11:10:30 +02:00
tuner_fc0012.c tuner_fc001x: fix tuning for frequencies < 45 MHz 2012-10-03 17:19:29 +02:00
tuner_fc0013.c tuner_fc0013: disable loopthrough output 2012-10-28 22:24:37 +01:00
tuner_fc2580.c fix a -Wuninitialized warning 2012-04-25 22:47:30 +02:00
tuner_r82xx.c tuner_r82xx: turn off loop-through, remove dead code 2018-05-25 00:16:38 +02:00