From 1f92a249e4168748147aed63bcc8f54c7727a3a1 Mon Sep 17 00:00:00 2001 From: Lionel Gauthier <lionel.gauthier@eurecom.fr> Date: Thu, 9 Apr 2015 09:22:32 +0000 Subject: [PATCH] patches13/0025-UHD-use-default-clock-this-is-either-the-internal-or.patch git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7071 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp b/targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp index a250c3d58b..2346bbcd66 100644 --- a/targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp +++ b/targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp @@ -130,7 +130,6 @@ static void trx_usrp_end(openair0_device *device) static void trx_usrp_write(openair0_device *device, openair0_timestamp timestamp, void **buff, int nsamps, int cc, int flags) { usrp_state_t *s = (usrp_state_t*)device->priv; - s->tx_md.time_spec = uhd::time_spec_t::from_ticks(timestamp, s->sample_rate); if(flags) s->tx_md.has_time_spec = true; @@ -292,8 +291,9 @@ int openair0_device_init(openair0_device* device, openair0_config_t *openair0_cf // s->usrp->set_rx_subdev_spec(rx_subdev); // s->usrp->set_tx_subdev_spec(tx_subdev); - // lock mboard clocks - s->usrp->set_clock_source("internal"); +// do not explicitly set the clock to "internal", because this will disable the gpsdo +// // lock mboard clocks +// s->usrp->set_clock_source("internal"); // set master clock rate and sample rate for tx & rx for streaming s->usrp->set_master_clock_rate(30.72e6); } -- GitLab