You are right: you can replace the original configurations with yours. However, in your situation, when you need to also change the sampling rate, you should use the ad9361_trx_load_enable_fir() API - it will enable the filters simultaneously and it will load the coefficients and the frequencies information too.

In our example we didn't change the frequencies, so calling ad9361_set_tx/rx_fir_config() and ad9361_set_tx/rx_fir_en_dis() was enough.

Interested in the latest news and articles about ADI products, design tools, training and
events? Choose from one of our 12 newsletters that match your product area of interest,
delivered monthly or quarterly to your inbox.