Searched refs:unit_khz_dds_val (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/media/dvb-frontends/
H A Ddib7000p.c804 s32 unit_khz_dds_val = 67108864 / (internal); /* 2**26 / Fsampling is the unit 1KHz offset */ dib7000p_set_dds() local
812 unit_khz_dds_val *= -1; dib7000p_set_dds()
816 dds -= (abs_offset_khz * unit_khz_dds_val); /* /100 because of /100 on the unit_khz_dds_val line calc for better accuracy */ dib7000p_set_dds()
818 dds += (abs_offset_khz * unit_khz_dds_val); dib7000p_set_dds()
H A Ddib8000.c2672 s16 unit_khz_dds_val; dib8000_set_dds() local
2680 unit_khz_dds_val = (1<<26) / (dib8000_read32(state, 23) / 1000); dib8000_set_dds()
2682 dds = (1 << 26) - (abs_offset_khz * unit_khz_dds_val); dib8000_set_dds()
2684 dds = (abs_offset_khz * unit_khz_dds_val); dib8000_set_dds()
2690 unit_khz_dds_val = (u16) (67108864 / state->cfg.pll->internal); dib8000_set_dds()
2693 unit_khz_dds_val *= -1; dib8000_set_dds()
2697 dds -= abs_offset_khz * unit_khz_dds_val; dib8000_set_dds()
2699 dds += abs_offset_khz * unit_khz_dds_val; dib8000_set_dds()
2702 dprintk("setting a DDS frequency offset of %c%dkHz", invert ? '-' : ' ', dds / unit_khz_dds_val); dib8000_set_dds()

Completed in 111 milliseconds