From cb69f084107367eb1a95cd0e6ef3a379361f3e7c Mon Sep 17 00:00:00 2001 From: Thomas Tsou Date: Mon, 8 Apr 2013 14:18:26 -0400 Subject: Transceiver52M: Set resampling option automatically based on device Remove the built time resampling selection and link both options. Move the normal push/pullBuffer() calls back to the base class and overload them in the inherited resampling class. USRP2/N2xx devices are the only devices that require resampling so return that resampling is necessary on the device open(), which is the point at which the device type will be known. The GSM transceiver only operates at a whole number multiple of the GSM rate and doesn't care about the actual device rate and if resampling is used. Therefore GSM specific portion of the transceiver should only need to submit the samples-per-symbol value to the device interface. Then, the device should be able to determine the appropriate sample rate (400 ksps or 270.833 ksps) and if resampling is appropriate. Signed-off-by: Thomas Tsou --- configure.ac | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1c96f51..3cf2783 100644 --- a/configure.ac +++ b/configure.ac @@ -72,11 +72,6 @@ AC_ARG_WITH(singledb, [ [enable single daughterboard use on USRP1]) ]) -AC_ARG_WITH(resamp, [ - AS_HELP_STRING([--with-resamp], - [enable resampling for non-52MHz devices]) -]) - AC_ARG_WITH(extref, [ AS_HELP_STRING([--with-extref], [enable external reference on UHD devices]) @@ -102,10 +97,6 @@ AS_IF([test "x$with_uhd" = "xyes"],[ AC_DEFINE(USE_UHD, 1, Define to 1 if using UHD) ]) -AS_IF([test "x$with_resamp" = "xyes"], [ - AC_DEFINE(RESAMPLE, 1, Define to 1 for resampling) -]) - AS_IF([test "x$with_extref" = "xyes"], [ AC_DEFINE(EXTREF, 1, Define to 1 for external reference) ]) @@ -114,7 +105,6 @@ AS_IF([test "x$with_singledb" = "xyes"], [ AC_DEFINE(SINGLEDB, 1, Define to 1 for single daughterboard) ]) -AM_CONDITIONAL(RESAMPLE, [test "x$with_resamp" = "xyes"]) AM_CONDITIONAL(UHD, [test "x$with_uhd" = "xyes"]) AM_CONDITIONAL(USRP1, [test "x$with_usrp1" = "xyes"]) -- cgit v1.2.3