openbsd-ports/comms/rtl-sdr/patches/patch-src_rtl_test_c
sthen c09b9d7534 import ports/comms/rtl-sdr, help+ok mpi@
DVB-T dongles based on the Realtek RTL2832U can be used as a cheap SDR
(software defined radio), since the chip allows transferring the raw I/Q
samples to the host, which is officially used for DAB/DAB+/FM demodulation.

RTL-SDR provides some tools to work with these devices:

rtl_eeprom:	EEPROM programming tool
rtl_sdr:	tunes the device and captures raw data to a file
rtl_test:	check the possible tuning range

Asynchronous mode is NOT currently supported on OpenBSD. rtl_sdr and rtl_test
have been modified to force synchronous mode, and the following are not yet
available:

rtl_adsb:	simple ADS-B decoder (aircraft tracking)
rtl_fm:		general purpose analogue demodulator
		(narrow band FM, wide band FM, AM and SSB)
rtl_tcp:	provides a network server for remote access to an SDR
2013-04-21 11:45:08 +00:00

17 lines
478 B
Plaintext

$OpenBSD: patch-src_rtl_test_c,v 1.1.1.1 2013/04/21 11:45:08 sthen Exp $
--- src/rtl_test.c.orig Sun Apr 21 11:58:32 2013
+++ src/rtl_test.c Sun Apr 21 11:59:31 2013
@@ -210,7 +210,12 @@ int main(int argc, char **argv)
int n_read;
int r, opt;
int i, tuner_benchmark = 0;
+#ifdef __OpenBSD__
+ /* XXX async doesn't work yet */
+ int sync_mode = 1;
+#else
int sync_mode = 0;
+#endif
uint8_t *buffer;
uint32_t dev_index = 0;
uint32_t samp_rate = DEFAULT_SAMPLE_RATE;