mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-trx.git
synced 2025-11-02 13:13:17 +00:00
Transceiver52M: Remove unnecessary UHD clock setting call
There is no need to create this method. Just call the UHD interface directly. Signed-off-by: Thomas Tsou <tom@tsou.cc>
This commit is contained in:
@@ -293,7 +293,6 @@ private:
|
||||
smpl_buf *rx_smpl_buf;
|
||||
|
||||
void init_gains();
|
||||
void set_ref_clk(bool ext_clk);
|
||||
int set_master_clk(double rate);
|
||||
int set_rates(double tx_rate, double rx_rate);
|
||||
bool parse_dev_type();
|
||||
@@ -376,14 +375,6 @@ void uhd_device::init_gains()
|
||||
return;
|
||||
}
|
||||
|
||||
void uhd_device::set_ref_clk(bool ext_clk)
|
||||
{
|
||||
if (ext_clk)
|
||||
usrp_dev->set_clock_source("external");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
int uhd_device::set_master_clk(double clk_rate)
|
||||
{
|
||||
double actual, offset, limit = 1.0;
|
||||
@@ -543,7 +534,7 @@ int uhd_device::open(const std::string &args, bool extref)
|
||||
return -1;
|
||||
|
||||
if (extref)
|
||||
set_ref_clk(true);
|
||||
usrp_dev->set_clock_source("external");
|
||||
|
||||
// Create TX and RX streamers
|
||||
uhd::stream_args_t stream_args("sc16");
|
||||
|
||||
Reference in New Issue
Block a user