Home
last modified time | relevance | path

Searched refs:srate (Results 1 – 25 of 82) sorted by relevance

1234

/linux/drivers/media/dvb-frontends/
A Dstv0900_sw.c102 if (srate > 0) in stv0900_get_sw_loop_params()
319 return srate; in stv0900_get_symbol_rate()
352 srate = 105 * (srate / 100); in stv0900_set_max_symbol_rate()
380 srate = 95 * (srate / 100); in stv0900_set_min_symbol_rate()
453 return srate + (srate * rolloff) / 100; in stv0900_carrier_width()
509 s32 srate, in stv0900_get_demod_cold_lock() local
792 } else if ((srate >= 7000000) && (15000000 > srate)) { in stv0900_set_dvbs1_track_car_loop()
813 s32 srate, in stv0900_track_optimization() local
829 srate += stv0900_get_timing_offst(intp, srate, demod); in stv0900_track_optimization()
1271 s32 srate, in stv0900_dvbs1_acq_workaround() local
[all …]
A Dz0194a.h13 u32 srate, u32 ratio) in sharp_z0194a_set_symbol_rate() argument
18 if (srate < 1500000) { in sharp_z0194a_set_symbol_rate()
20 else if (srate < 3000000) { in sharp_z0194a_set_symbol_rate()
22 else if (srate < 7000000) { in sharp_z0194a_set_symbol_rate()
24 else if (srate < 14000000) { in sharp_z0194a_set_symbol_rate()
26 else if (srate < 30000000) { in sharp_z0194a_set_symbol_rate()
28 else if (srate < 45000000) { in sharp_z0194a_set_symbol_rate()
A Dstb0899_algo.c98 return srate; in stb0899_set_srate()
109 if (srate > 0) in stb0899_calc_derot_time()
110 return (100000 / (srate / 1000)); in stb0899_calc_derot_time()
124 return (internal->srate + (internal->srate * internal->rolloff) / 100); in stb0899_carr_width()
341 if (params->srate <= 2000000) in stb0899_check_data()
515 if (params->srate <= 5000000) { in stb0899_dvbs_algo()
793 u32 master_clk, srate; in stb0899_dvbs2_calc_srate() local
800 srate = internal->srate / 1000; in stb0899_dvbs2_calc_srate()
809 btr_nom_freq = (intval * srate) + ((remain * srate) / master_clk); in stb0899_dvbs2_calc_srate()
827 srate = internal->srate / 1000; /* for integer Calculation*/ in stb0899_dvbs2_calc_dev()
[all …]
A Dmb86a16.c29 int srate; member
1146 wait_t = (8000 + state->srate / 2) / state->srate; in mb86a16_set_fe()
1415 wait_t = 7 + (10000 + state->srate / 2) / state->srate; in mb86a16_set_fe()
1426 wait_t = 7 + (917504 + state->srate / 2) / state->srate; in mb86a16_set_fe()
1429 wait_t = 7 + (1048576 + state->srate / 2) / state->srate; in mb86a16_set_fe()
1432 wait_t = 7 + (1310720 + state->srate / 2) / state->srate; in mb86a16_set_fe()
1435 wait_t = 7 + (1572864 + state->srate / 2) / state->srate; in mb86a16_set_fe()
1452 wait_t = (786432 + state->srate / 2) / state->srate; in mb86a16_set_fe()
1454 wait_t = (1572864 + state->srate / 2) / state->srate; in mb86a16_set_fe()
1465 wait_t = (786432 + state->srate / 2) / state->srate; in mb86a16_set_fe()
[all …]
A Dbsbe1.h34 static int alps_bsbe1_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio) in alps_bsbe1_set_symbol_rate() argument
39 if (srate < 1500000) { aclk = 0xb7; bclk = 0x47; } in alps_bsbe1_set_symbol_rate()
40 else if (srate < 3000000) { aclk = 0xb7; bclk = 0x4b; } in alps_bsbe1_set_symbol_rate()
41 else if (srate < 7000000) { aclk = 0xb7; bclk = 0x4f; } in alps_bsbe1_set_symbol_rate()
42 else if (srate < 14000000) { aclk = 0xb7; bclk = 0x53; } in alps_bsbe1_set_symbol_rate()
43 else if (srate < 30000000) { aclk = 0xb6; bclk = 0x53; } in alps_bsbe1_set_symbol_rate()
44 else if (srate < 45000000) { aclk = 0xb4; bclk = 0x51; } in alps_bsbe1_set_symbol_rate()
A Dbsru6.h53 static int alps_bsru6_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in alps_bsru6_set_symbol_rate() argument
58 if (srate < 1500000) { in alps_bsru6_set_symbol_rate()
61 } else if (srate < 3000000) { in alps_bsru6_set_symbol_rate()
64 } else if (srate < 7000000) { in alps_bsru6_set_symbol_rate()
67 } else if (srate < 14000000) { in alps_bsru6_set_symbol_rate()
70 } else if (srate < 30000000) { in alps_bsru6_set_symbol_rate()
73 } else if (srate < 45000000) { in alps_bsru6_set_symbol_rate()
A Dstv090x.c857 sym = (srate << 6); in stv090x_set_srate()
879 srate = 105 * (srate / 100); in stv090x_set_max_srate()
913 srate = 95 * (srate / 100); in stv090x_set_min_srate()
952 return srate + (srate * ro) / 100; in stv090x_car_width()
1240 } else if ((state->srate >= 7000000) && (15000000 > state->srate)) { in stv090x_dvbs_track_crl()
1666 int_2 = srate >> 16; in stv090x_get_srate()
1675 return srate; in stv090x_get_srate()
2245 srate = state->srate; in stv090x_get_loop_params()
2254 inc = srate; in stv090x_get_loop_params()
2283 if (srate > 0) in stv090x_get_loop_params()
[all …]
A Dtda8083.c128 if (srate > 32000000) in tda8083_set_symbolrate()
129 srate = 32000000; in tda8083_set_symbolrate()
130 if (srate < 500000) in tda8083_set_symbolrate()
131 srate = 500000; in tda8083_set_symbolrate()
134 if (srate < 24000000) in tda8083_set_symbolrate()
136 if (srate < 16000000) in tda8083_set_symbolrate()
140 ratio = tmp / srate; in tda8083_set_symbolrate()
142 tmp = (tmp % srate) << 8; in tda8083_set_symbolrate()
143 ratio = (ratio << 8) + tmp / srate; in tda8083_set_symbolrate()
145 tmp = (tmp % srate) << 8; in tda8083_set_symbolrate()
[all …]
A Dstv0299.c216 u64 big = srate; in stv0299_set_symbolrate()
220 if ((srate < 1000000) || (srate > 45000000)) return -EINVAL; in stv0299_set_symbolrate()
234 u32 srate; in stv0299_get_symbolrate() local
244 srate = (sfr[0] << 8) | sfr[1]; in stv0299_get_symbolrate()
245 srate *= Mclk; in stv0299_get_symbolrate()
246 srate /= 16; in stv0299_get_symbolrate()
254 srate += offset; in stv0299_get_symbolrate()
256 srate += 1000; in stv0299_get_symbolrate()
257 srate /= 2000; in stv0299_get_symbolrate()
258 srate *= 2000; in stv0299_get_symbolrate()
[all …]
A Dcx24110.c236 dprintk("cx24110 debug: entering %s(%d)\n",__func__,srate); in cx24110_set_symbolrate()
237 if (srate>90999000UL/2) in cx24110_set_symbolrate()
238 srate=90999000UL/2; in cx24110_set_symbolrate()
239 if (srate<500000) in cx24110_set_symbolrate()
240 srate=500000; in cx24110_set_symbolrate()
242 for(i = 0; (i < ARRAY_SIZE(bands)) && (srate>bands[i]); i++) in cx24110_set_symbolrate()
248 if(srate<90999000UL/4) { /* sample rate 45MHz*/ in cx24110_set_symbolrate()
252 } else if(srate<60666000UL/2) { /* sample rate 60MHz */ in cx24110_set_symbolrate()
256 } else if(srate<80888000UL/2) { /* sample rate 80MHz */ in cx24110_set_symbolrate()
274 tmp=srate<<6; in cx24110_set_symbolrate()
[all …]
A Dstv0900_core.c1122 if (srate <= 3000000) in stv0900_get_optim_carr_loop()
1133 if (srate <= 3000000) in stv0900_get_optim_carr_loop()
1147 if (srate <= 3000000) in stv0900_get_optim_carr_loop()
1158 if (srate <= 3000000) in stv0900_get_optim_carr_loop()
1171 if (srate <= 3000000) in stv0900_get_optim_carr_loop()
1173 else if (srate <= 7000000) in stv0900_get_optim_carr_loop()
1217 if (srate <= 3000000) in stv0900_get_optim_short_carr_loop()
1219 else if (srate <= 7000000) in stv0900_get_optim_short_carr_loop()
1229 if (srate <= 3000000) in stv0900_get_optim_short_carr_loop()
1231 else if (srate <= 7000000) in stv0900_get_optim_short_carr_loop()
[all …]
A Dves1x93.c162 static int ves1x93_set_symbolrate (struct ves1x93_state* state, u32 srate) in ves1x93_set_symbolrate() argument
171 dprintk("%s: srate == %d\n", __func__, (unsigned int) srate); in ves1x93_set_symbolrate()
173 if (srate > state->config->xin/2) in ves1x93_set_symbolrate()
174 srate = state->config->xin/2; in ves1x93_set_symbolrate()
176 if (srate < 500000) in ves1x93_set_symbolrate()
177 srate = 500000; in ves1x93_set_symbolrate()
183 tmp = srate << 6; in ves1x93_set_symbolrate()
216 BDRI = ( ((FIN << 8) / ((srate << (FNR >> 1)) >> 2)) + 1) >> 1; in ves1x93_set_symbolrate()
238 if (srate < 6000000) in ves1x93_set_symbolrate()
A Dcx24123.c449 (srate < state->frontend.ops.info.symbol_rate_min)) in cx24123_set_symbolrate()
454 if (srate < (XTAL*2)/2) in cx24123_set_symbolrate()
456 else if (srate < (XTAL*3)/2) in cx24123_set_symbolrate()
458 else if (srate < (XTAL*4)/2) in cx24123_set_symbolrate()
460 else if (srate < (XTAL*5)/2) in cx24123_set_symbolrate()
462 else if (srate < (XTAL*6)/2) in cx24123_set_symbolrate()
464 else if (srate < (XTAL*7)/2) in cx24123_set_symbolrate()
466 else if (srate < (XTAL*8)/2) in cx24123_set_symbolrate()
476 tmp = ((u64)srate) << 23; in cx24123_set_symbolrate()
487 sample_gain = cx24123_int_log2(sample_rate, srate); in cx24123_set_symbolrate()
[all …]
/linux/drivers/media/pci/mantis/
A Dmantis_vp1033.c107 u32 srate, u32 ratio) in lgtdqcs001f_set_symbol_rate() argument
112 if (srate < 1500000) { in lgtdqcs001f_set_symbol_rate()
115 } else if (srate < 3000000) { in lgtdqcs001f_set_symbol_rate()
118 } else if (srate < 7000000) { in lgtdqcs001f_set_symbol_rate()
121 } else if (srate < 14000000) { in lgtdqcs001f_set_symbol_rate()
124 } else if (srate < 30000000) { in lgtdqcs001f_set_symbol_rate()
127 } else if (srate < 45000000) { in lgtdqcs001f_set_symbol_rate()
/linux/sound/soc/codecs/
A Dml26124.c295 int srate; in get_srate() local
299 srate = 3; in get_srate()
302 srate = 6; in get_srate()
305 srate = 8; in get_srate()
310 return srate; in get_srate()
331 int srate; in ml26124_hw_params() local
361 srate = get_srate(params_rate(hw_params)); in ml26124_hw_params()
362 if (srate < 0) in ml26124_hw_params()
363 return srate; in ml26124_hw_params()
365 snd_soc_component_update_bits(component, ML26124_SMPLING_RATE, 0xf, srate); in ml26124_hw_params()
A Dcs42l73.c34 u32 srate; member
784 u32 srate; member
863 static int cs42l73_get_mclk_coeff(int mclk, int srate) in cs42l73_get_mclk_coeff() argument
869 cs42l73_mclk_coeffs[i].srate == srate) in cs42l73_get_mclk_coeff()
1027 if (srate > 0) in cs42l73_update_asrc()
1028 spfs = cs42l73_get_xspfs_coeff(srate); in cs42l73_update_asrc()
1053 int srate = params_rate(params); in cs42l73_pcm_hw_params() local
1059 cs42l73_get_mclk_coeff(priv->mclk, srate); in cs42l73_pcm_hw_params()
1066 id, priv->mclk, srate, in cs42l73_pcm_hw_params()
1083 priv->config[id].srate = srate; in cs42l73_pcm_hw_params()
[all …]
A Dssm2602.c223 u8 srate; member
285 return ssm2602_coeff_table[i].srate; in ssm2602_get_coeff()
296 int srate = ssm2602_get_coeff(ssm2602->sysclk, params_rate(params)); in ssm2602_hw_params() local
299 if (srate < 0) in ssm2602_hw_params()
300 return srate; in ssm2602_hw_params()
302 regmap_write(ssm2602->regmap, SSM2602_SRATE, srate); in ssm2602_hw_params()
/linux/sound/soc/intel/boards/
A Dsof_realtek_common.c70 int srate, i, ret = 0; in rt1011_hw_params() local
72 srate = params_rate(params); in rt1011_hw_params()
77 100 * srate, 256 * srate); in rt1011_hw_params()
85 256 * srate, SND_SOC_CLOCK_IN); in rt1011_hw_params()
/linux/sound/soc/xilinx/
A Dxlnx_formatter_pcm.c132 u32 padded, srate, bit_depth, status[2]; in xlnx_parse_aes_params() local
140 srate = 44100; in xlnx_parse_aes_params()
143 srate = 48000; in xlnx_parse_aes_params()
146 srate = 32000; in xlnx_parse_aes_params()
150 srate = XLNX_PARAM_UNKNOWN; in xlnx_parse_aes_params()
192 srate = 44100; in xlnx_parse_aes_params()
195 srate = 48000; in xlnx_parse_aes_params()
198 srate = 32000; in xlnx_parse_aes_params()
201 srate = XLNX_PARAM_UNKNOWN; in xlnx_parse_aes_params()
234 if (srate != XLNX_PARAM_UNKNOWN) in xlnx_parse_aes_params()
[all …]
/linux/sound/soc/tegra/
A Dtegra_asoc_machine.c198 static unsigned int tegra_machine_mclk_rate_128(unsigned int srate) in tegra_machine_mclk_rate_128() argument
200 return 128 * srate; in tegra_machine_mclk_rate_128()
203 static unsigned int tegra_machine_mclk_rate_256(unsigned int srate) in tegra_machine_mclk_rate_256() argument
205 return 256 * srate; in tegra_machine_mclk_rate_256()
208 static unsigned int tegra_machine_mclk_rate_512(unsigned int srate) in tegra_machine_mclk_rate_512() argument
210 return 512 * srate; in tegra_machine_mclk_rate_512()
217 switch (srate) { in tegra_machine_mclk_rate_12mhz()
248 unsigned int srate = params_rate(params); in tegra_machine_hw_params() local
249 unsigned int mclk = machine->asoc->mclk_rate(srate); in tegra_machine_hw_params()
254 switch (srate) { in tegra_machine_hw_params()
[all …]
A Dtegra_wm8903.c34 static unsigned int tegra_wm8903_mclk_rate(unsigned int srate) in tegra_wm8903_mclk_rate() argument
38 switch (srate) { in tegra_wm8903_mclk_rate()
42 mclk = 128 * srate; in tegra_wm8903_mclk_rate()
45 mclk = 256 * srate; in tegra_wm8903_mclk_rate()
A Dtegra_audio_graph_card.c57 unsigned int srate = params_rate(params); in tegra_audio_graph_update_pll() local
60 switch (srate) { in tegra_audio_graph_update_pll()
80 srate); in tegra_audio_graph_update_pll()
107 bclk = srate * params_channels(params) * params_width(params); in tegra_audio_graph_update_pll()
A Dtegra20_i2s.c147 int ret, sample_size, srate, i2sclock, bitcnt; in tegra20_i2s_hw_params() local
172 srate = params_rate(params); in tegra20_i2s_hw_params()
175 i2sclock = srate * params_channels(params) * sample_size * 2; in tegra20_i2s_hw_params()
183 bitcnt = (i2sclock / (2 * srate)) - 1; in tegra20_i2s_hw_params()
188 if (i2sclock % (2 * srate)) in tegra20_i2s_hw_params()
/linux/sound/ppc/
A Dbeep.c93 int srate; in snd_pmac_beep_event() local
123 srate = chip->freq_table[beep_speed]; in snd_pmac_beep_event()
125 if (hz <= srate / BEEP_BUFLEN || hz > srate / 2) in snd_pmac_beep_event()
139 period = srate * 256 / hz; /* fixed point */ in snd_pmac_beep_event()
/linux/drivers/media/common/b2c2/
A Dflexcop-fe-tuner.c199 u32 srate, u32 ratio) in samsung_tbmu24112_set_symbol_rate() argument
204 if (srate < 1500000) { in samsung_tbmu24112_set_symbol_rate()
206 } else if (srate < 3000000) { in samsung_tbmu24112_set_symbol_rate()
208 } else if (srate < 7000000) { in samsung_tbmu24112_set_symbol_rate()
210 } else if (srate < 14000000) { in samsung_tbmu24112_set_symbol_rate()
212 } else if (srate < 30000000) { in samsung_tbmu24112_set_symbol_rate()
214 } else if (srate < 45000000) { in samsung_tbmu24112_set_symbol_rate()

Completed in 91 milliseconds

1234