AD9361 Sampling rate

I am calling     ret= ad9361_set_tx_sampling_freq(ad9361_phy, SampFreqHz);

with sampfreqhz=1000000, and it returns -22 which is a fail.
I tried setting it to 2000000 which is on p19 of the reference manual as a valid sample rate but it still returns -22. 

This is the initial setting:
    {983040000, 245760000, 122880000, 61440000, 30720000, 30720000},//uint32_t    rx_path_clock_frequencies[6] *** adi,rx-path-clock-frequencies
    //BBPLL, DAC, T2Clk, T1Clk, ClkTf, Tsampl
    {983040000, 122880000, 122880000, 61440000, 30720000, 30720000},//uint32_t    tx_path_clock_frequencies[6] *** adi,tx-path-clock-frequencies

I thought calling ad9361_set_tx_sampling_freq calculates all the clocks and sets them.  Why wouldn't it work or what am I doing wrong?  If I need to calculate all the different clocks how do I do it?

I tried setting the initial conditions to:
    //{1024000000, 8000000, 8000000, 4000000, 2000000, 2000000},//uint32_t    tx_path_clock_frequencies[6] *** adi,tx-path-clock-frequencies
but this failed badly, not surprisingly since I guessed them based on page 19 of the reference manual and following the pattern of the previous setting.

Any help would be appreciated.  Thanks.