/linux-6.3-rc2/drivers/media/dvb-frontends/ |
A D | z0194a.h | 13 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 D | stv0900_sw.c | 102 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 D | bsbe1.h | 34 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 D | bsru6.h | 53 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 D | stb0899_algo.c | 98 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 D | mb86a16.c | 29 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 D | tda8083.c | 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() 145 tmp = (tmp % srate) << 8; in tda8083_set_symbolrate() [all …]
|
A D | stv090x.c | 857 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 D | stv0299.c | 217 u64 big = srate; in stv0299_set_symbolrate() 221 if ((srate < 1000000) || (srate > 45000000)) return -EINVAL; in stv0299_set_symbolrate() 235 u32 srate; in stv0299_get_symbolrate() local 245 srate = (sfr[0] << 8) | sfr[1]; in stv0299_get_symbolrate() 246 srate *= Mclk; in stv0299_get_symbolrate() 247 srate /= 16; in stv0299_get_symbolrate() 255 srate += offset; in stv0299_get_symbolrate() 257 srate += 1000; in stv0299_get_symbolrate() 258 srate /= 2000; in stv0299_get_symbolrate() 259 srate *= 2000; in stv0299_get_symbolrate() [all …]
|
A D | cx24110.c | 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() 274 tmp=srate<<6; in cx24110_set_symbolrate() [all …]
|
A D | stv0900_core.c | 1122 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 D | ves1x93.c | 162 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 D | cx24123.c | 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() 476 tmp = ((u64)srate) << 23; in cx24123_set_symbolrate() 487 sample_gain = cx24123_int_log2(sample_rate, srate); in cx24123_set_symbolrate() [all …]
|
/linux-6.3-rc2/drivers/media/pci/mantis/ |
A D | mantis_vp1033.c | 107 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-6.3-rc2/sound/soc/codecs/ |
A D | ml26124.c | 295 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 D | cs42l73.c | 34 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 …]
|
/linux-6.3-rc2/sound/soc/tegra/ |
A D | tegra_wm8903.c | 34 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 D | tegra_asoc_machine.c | 198 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 D | tegra_audio_graph_card.c | 57 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()
|
/linux-6.3-rc2/drivers/usb/gadget/function/ |
A D | u_audio.c | 67 int srate; /* selected samplerate */ member 307 prm->srate, prm->pitch, in u_audio_iso_fback_complete() 417 runtime->hw.rate_min = prm->srate; in uac_pcm_open() 522 prm->srate = srate; in u_audio_set_capture_srate() 542 *val = prm->srate; in u_audio_get_capture_srate() 561 prm->srate = srate; in u_audio_set_playback_srate() 581 *val = prm->srate; in u_audio_get_playback_srate() 659 prm->srate, prm->pitch, in u_audio_start_capture() 717 (prm->srate / uac->p_interval), in u_audio_start_playback() 1185 prm->srate = params->c_srates[0]; in g_audio_setup() [all …]
|
/linux-6.3-rc2/sound/soc/amd/acp/ |
A D | acp-mach-common.c | 74 clk_set_rate(drvdata->wclk, srate); in acp_clk_enable() 185 unsigned int fmt, srate, ch, format; in acp_card_rt5682_hw_params() local 187 srate = params_rate(params); in acp_card_rt5682_hw_params() 329 unsigned int fmt, srate, ch, format; in acp_card_rt5682s_hw_params() local 331 srate = params_rate(params); in acp_card_rt5682s_hw_params() 395 clk_set_rate(drvdata->wclk, srate); in acp_card_rt5682s_hw_params() 474 unsigned int fmt, srate, ch, format; in acp_card_rt1019_hw_params() local 476 srate = params_rate(params); in acp_card_rt1019_hw_params() 516 TDM_CHANNELS * format * srate, 256 * srate); in acp_card_rt1019_hw_params() 519 ch * format * srate, 256 * srate); in acp_card_rt1019_hw_params() [all …]
|
/linux-6.3-rc2/sound/soc/xilinx/ |
A D | xlnx_formatter_pcm.c | 134 u32 padded, srate, bit_depth, status[2]; in xlnx_parse_aes_params() local 142 srate = 44100; in xlnx_parse_aes_params() 145 srate = 48000; in xlnx_parse_aes_params() 148 srate = 32000; in xlnx_parse_aes_params() 152 srate = XLNX_PARAM_UNKNOWN; in xlnx_parse_aes_params() 194 srate = 44100; in xlnx_parse_aes_params() 197 srate = 48000; in xlnx_parse_aes_params() 200 srate = 32000; in xlnx_parse_aes_params() 203 srate = XLNX_PARAM_UNKNOWN; in xlnx_parse_aes_params() 236 if (srate != XLNX_PARAM_UNKNOWN) in xlnx_parse_aes_params() [all …]
|
/linux-6.3-rc2/sound/ppc/ |
A D | beep.c | 93 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-6.3-rc2/sound/soc/meson/ |
A D | axg-tdm-interface.c | 261 unsigned long srate; in axg_tdm_iface_set_sclk() local 264 srate = iface->slots * iface->slot_width * params_rate(params); in axg_tdm_iface_set_sclk() 268 clk_set_rate(iface->mclk, 4 * srate); in axg_tdm_iface_set_sclk() 271 if (iface->mclk_rate % srate) { in axg_tdm_iface_set_sclk() 274 srate, iface->mclk_rate); in axg_tdm_iface_set_sclk() 279 ret = clk_set_rate(iface->sclk, srate); in axg_tdm_iface_set_sclk()
|
/linux-6.3-rc2/drivers/media/common/b2c2/ |
A D | flexcop-fe-tuner.c | 199 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()
|