Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
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()
Dstv0900_sw.c59 s32 timeout, freq_inc, max_steps, srate, max_carrier; in stv0900_get_sw_loop_params() local
63 srate = intp->symbol_rate[demod]; in stv0900_get_sw_loop_params()
74 freq_inc = srate; in stv0900_get_sw_loop_params()
102 if (srate > 0) in stv0900_get_sw_loop_params()
103 timeout /= srate / 1000; in stv0900_get_sw_loop_params()
298 s32 rem1, rem2, intval1, intval2, srate; in stv0900_get_symbol_rate() local
300 srate = (stv0900_get_bits(intp, SYMB_FREQ3) << 24) + in stv0900_get_symbol_rate()
305 srate, stv0900_get_bits(intp, SYMB_FREQ0), in stv0900_get_symbol_rate()
311 intval2 = (srate) >> 16; in stv0900_get_symbol_rate()
314 rem2 = (srate) % 0x10000; in stv0900_get_symbol_rate()
[all …]
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()
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()
Dstb0899_algo.c66 static u32 stb0899_set_srate(struct stb0899_state *state, u32 master_clk, u32 srate) in stb0899_set_srate() argument
89 tmp = stb0899_do_div((((u64)srate) << 21) + master_clk, 2 * master_clk); in stb0899_set_srate()
98 return srate; in stb0899_set_srate()
107 static long stb0899_calc_derot_time(long srate) in stb0899_calc_derot_time() argument
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()
208 derot_step = (params->srate / 2L) / internal->mclk; in stb0899_search_tmg()
341 if (params->srate <= 2000000) in stb0899_check_data()
343 else if (params->srate <= 5000000) in stb0899_check_data()
[all …]
Dmb86a16.c29 int srate; member
1041 dprintk(verbose, MB86A16_INFO, 1, "freq=%d Mhz, symbrt=%d Ksps", state->frequency, state->srate); in mb86a16_set_fe()
1044 swp_ofs = state->srate / 4; in mb86a16_set_fe()
1079 if (AFCEXEN_set(state, AFCEXEN, state->srate) < 0) { in mb86a16_set_fe()
1091 smrt_info_get(state, state->srate); in mb86a16_set_fe()
1092 if (smrt_set(state, state->srate) < 0) { in mb86a16_set_fe()
1097 R = vco_dev_get(state, state->srate); in mb86a16_set_fe()
1123 (ftemp - state->frequency * 1000 >= fcp + state->srate / 4)) in mb86a16_set_fe()
1141 (state->frequency * 1000 - ftemp >= fcp + state->srate / 4)) in mb86a16_set_fe()
1146 wait_t = (8000 + state->srate / 2) / state->srate; in mb86a16_set_fe()
[all …]
Dtda8083.c122 static int tda8083_set_symbolrate (struct tda8083_state* state, u32 srate) in tda8083_set_symbolrate() argument
128 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()
[all …]
Dstv090x.c807 if (state->srate <= 1500000) { /*10Msps< SR <=15Msps*/ in stv090x_get_lock_tmg()
810 } else if (state->srate <= 5000000) { /*10Msps< SR <=15Msps*/ in stv090x_get_lock_tmg()
823 if (state->srate <= 1000000) { /*SR <=1Msps*/ in stv090x_get_lock_tmg()
826 } else if (state->srate <= 2000000) { /*1Msps < SR <= 2Msps */ in stv090x_get_lock_tmg()
829 } else if (state->srate <= 5000000) { /*2Msps < SR <= 5Msps */ in stv090x_get_lock_tmg()
832 } else if (state->srate <= 10000000) { /*5Msps < SR <= 10Msps */ in stv090x_get_lock_tmg()
835 } else if (state->srate <= 20000000) { /*10Msps < SR <= 20Msps */ in stv090x_get_lock_tmg()
849 static int stv090x_set_srate(struct stv090x_state *state, u32 srate) in stv090x_set_srate() argument
853 if (srate > 60000000) { in stv090x_set_srate()
854 sym = (srate << 4); /* SR * 2^16 / master_clk */ in stv090x_set_srate()
[all …]
Dstv0299.c213 static int stv0299_set_symbolrate (struct dvb_frontend* fe, u32 srate) in stv0299_set_symbolrate() argument
216 u64 big = srate; in stv0299_set_symbolrate()
220 if ((srate < 1000000) || (srate > 45000000)) return -EINVAL; in stv0299_set_symbolrate()
228 return state->config->set_symbol_rate(fe, srate, ratio); 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()
247 srate += (sfr[2] >> 4) * Mclk / 256; in stv0299_get_symbolrate()
248 offset = (s32) rtf * (srate / 4096L); in stv0299_get_symbolrate()
[all …]
Dcx24110.c227 static int cx24110_set_symbolrate (struct cx24110_state* state, u32 srate) in cx24110_set_symbolrate() argument
236 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()
[all …]
Dstv0900_core.c1072 u8 stv0900_get_optim_carr_loop(s32 srate, enum fe_stv0900_modcode modcode, in stv0900_get_optim_carr_loop() argument
1122 if (srate <= 3000000) in stv0900_get_optim_carr_loop()
1124 else if (srate <= 7000000) in stv0900_get_optim_carr_loop()
1126 else if (srate <= 15000000) in stv0900_get_optim_carr_loop()
1128 else if (srate <= 25000000) in stv0900_get_optim_carr_loop()
1133 if (srate <= 3000000) in stv0900_get_optim_carr_loop()
1135 else if (srate <= 7000000) in stv0900_get_optim_carr_loop()
1137 else if (srate <= 15000000) in stv0900_get_optim_carr_loop()
1139 else if (srate <= 25000000) in stv0900_get_optim_carr_loop()
1147 if (srate <= 3000000) in stv0900_get_optim_carr_loop()
[all …]
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()
Dcx24123.c441 static int cx24123_set_symbolrate(struct cx24123_state *state, u32 srate) in cx24123_set_symbolrate() argument
448 if ((srate > state->frontend.ops.info.symbol_rate_max) || in cx24123_set_symbolrate()
449 (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()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/mantis/
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()
/kernel/linux/linux-5.10/sound/soc/codecs/
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()
Dcs42l73.c33 u32 srate; member
783 u32 srate; member
862 static int cs42l73_get_mclk_coeff(int mclk, int srate) in cs42l73_get_mclk_coeff() argument
868 cs42l73_mclk_coeffs[i].srate == srate) in cs42l73_get_mclk_coeff()
1022 static void cs42l73_update_asrc(struct snd_soc_component *component, int id, int srate) in cs42l73_update_asrc() argument
1026 if (srate > 0) in cs42l73_update_asrc()
1027 spfs = cs42l73_get_xspfs_coeff(srate); in cs42l73_update_asrc()
1052 int srate = params_rate(params); in cs42l73_pcm_hw_params() local
1058 cs42l73_get_mclk_coeff(priv->mclk, srate); in cs42l73_pcm_hw_params()
1065 id, priv->mclk, srate, in cs42l73_pcm_hw_params()
[all …]
/kernel/linux/linux-5.10/sound/soc/xilinx/
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 …]
/kernel/linux/linux-5.10/sound/soc/tegra/
Dtrimslice.c41 int srate, mclk; in trimslice_asoc_hw_params() local
44 srate = params_rate(params); in trimslice_asoc_hw_params()
45 mclk = 128 * srate; in trimslice_asoc_hw_params()
47 err = tegra_asoc_utils_set_rate(&trimslice->util_data, srate, mclk); in trimslice_asoc_hw_params()
Dtegra_wm8753.c46 int srate, mclk; in tegra_wm8753_hw_params() local
49 srate = params_rate(params); in tegra_wm8753_hw_params()
50 switch (srate) { in tegra_wm8753_hw_params()
62 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_wm8753_hw_params()
Dtegra_sgtl5000.c42 int srate, mclk; in tegra_sgtl5000_hw_params() local
45 srate = params_rate(params); in tegra_sgtl5000_hw_params()
46 switch (srate) { in tegra_sgtl5000_hw_params()
58 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_sgtl5000_hw_params()
Dtegra_wm8903.c51 int srate, mclk; in tegra_wm8903_hw_params() local
54 srate = params_rate(params); in tegra_wm8903_hw_params()
55 switch (srate) { in tegra_wm8903_hw_params()
59 mclk = 128 * srate; in tegra_wm8903_hw_params()
62 mclk = 256 * srate; in tegra_wm8903_hw_params()
69 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_wm8903_hw_params()
Dtegra_rt5640.c46 int srate, mclk; in tegra_rt5640_asoc_hw_params() local
49 srate = params_rate(params); in tegra_rt5640_asoc_hw_params()
50 mclk = 256 * srate; in tegra_rt5640_asoc_hw_params()
52 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_rt5640_asoc_hw_params()
Dtegra_max98090.c44 int srate, mclk; in tegra_max98090_asoc_hw_params() local
47 srate = params_rate(params); in tegra_max98090_asoc_hw_params()
48 switch (srate) { in tegra_max98090_asoc_hw_params()
69 err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); in tegra_max98090_asoc_hw_params()
Dtegra_alc5632.c43 int srate, mclk; in tegra_alc5632_asoc_hw_params() local
46 srate = params_rate(params); in tegra_alc5632_asoc_hw_params()
47 mclk = 512 * srate; in tegra_alc5632_asoc_hw_params()
49 err = tegra_asoc_utils_set_rate(&alc5632->util_data, srate, mclk); in tegra_alc5632_asoc_hw_params()
/kernel/linux/linux-5.10/sound/ppc/
Dbeep.c93 int srate; in snd_pmac_beep_event() local
120 srate = chip->freq_table[beep_speed]; in snd_pmac_beep_event()
122 if (hz <= srate / BEEP_BUFLEN || hz > srate / 2) in snd_pmac_beep_event()
136 period = srate * 256 / hz; /* fixed point */ in snd_pmac_beep_event()

1234