/Linux-v6.6/drivers/media/dvb-frontends/ |
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()
|
D | stv0900_sw.c | 59 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 …]
|
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()
|
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()
|
D | stb0899_algo.c | 66 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 …]
|
D | mb86a16.c | 29 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 …]
|
D | tda8083.c | 122 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 …]
|
D | stv090x.c | 807 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 …]
|
D | stv0299.c | 214 static int stv0299_set_symbolrate (struct dvb_frontend* fe, u32 srate) in stv0299_set_symbolrate() argument 217 u64 big = srate; in stv0299_set_symbolrate() 221 if ((srate < 1000000) || (srate > 45000000)) return -EINVAL; in stv0299_set_symbolrate() 229 return state->config->set_symbol_rate(fe, srate, ratio); 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() 248 srate += (sfr[2] >> 4) * Mclk / 256; in stv0299_get_symbolrate() 249 offset = (s32) rtf * (srate / 4096L); in stv0299_get_symbolrate() [all …]
|
D | cx24110.c | 227 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 …]
|
D | stv0900_core.c | 1072 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 …]
|
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()
|
D | cx24123.c | 441 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 …]
|
/Linux-v6.6/drivers/media/pci/mantis/ |
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-v6.6/sound/soc/codecs/ |
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()
|
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() 1023 static void cs42l73_update_asrc(struct snd_soc_component *component, int id, int srate) in cs42l73_update_asrc() argument 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() [all …]
|
D | ssm2602.c | 235 u8 srate; member 297 return ssm2602_coeff_table[i].srate; in ssm2602_get_coeff() 299 return ssm2602_coeff_table[i].srate | SRATE_CORECLK_DIV2; in ssm2602_get_coeff() 311 int srate = ssm2602_get_coeff(ssm2602->sysclk, params_rate(params)); in ssm2602_hw_params() local 314 if (srate < 0) in ssm2602_hw_params() 315 return srate; in ssm2602_hw_params() 317 regmap_write(ssm2602->regmap, SSM2602_SRATE, srate); in ssm2602_hw_params()
|
/Linux-v6.6/sound/soc/tegra/ |
D | tegra_asoc_machine.c | 218 static unsigned int tegra_machine_mclk_rate_128(unsigned int srate) in tegra_machine_mclk_rate_128() argument 220 return 128 * srate; in tegra_machine_mclk_rate_128() 223 static unsigned int tegra_machine_mclk_rate_256(unsigned int srate) in tegra_machine_mclk_rate_256() argument 225 return 256 * srate; in tegra_machine_mclk_rate_256() 228 static unsigned int tegra_machine_mclk_rate_512(unsigned int srate) in tegra_machine_mclk_rate_512() argument 230 return 512 * srate; in tegra_machine_mclk_rate_512() 233 static unsigned int tegra_machine_mclk_rate_12mhz(unsigned int srate) in tegra_machine_mclk_rate_12mhz() argument 237 switch (srate) { in tegra_machine_mclk_rate_12mhz() 261 static unsigned int tegra_machine_mclk_rate_6mhz(unsigned int srate) in tegra_machine_mclk_rate_6mhz() argument 265 switch (srate) { in tegra_machine_mclk_rate_6mhz() [all …]
|
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()
|
D | tegra_audio_graph_card.c | 73 unsigned int srate = params_rate(params); in tegra_audio_graph_update_pll() local 76 switch (srate) { in tegra_audio_graph_update_pll() 96 srate); in tegra_audio_graph_update_pll() 123 bclk = srate * params_channels(params) * params_width(params); in tegra_audio_graph_update_pll()
|
/Linux-v6.6/drivers/usb/gadget/function/ |
D | u_audio.c | 67 int srate; /* selected samplerate */ member 202 pitched_rate_mil = (unsigned long long) prm->srate * prm->pitch; in u_audio_iso_complete() 209 prm->srate, prm->pitch, p_interval_mil, frames); in u_audio_iso_complete() 307 prm->srate, prm->pitch, in u_audio_iso_fback_complete() 417 runtime->hw.rate_min = prm->srate; in uac_pcm_open() 509 int u_audio_set_capture_srate(struct g_audio *audio_dev, int srate) in u_audio_set_capture_srate() argument 517 dev_dbg(&audio_dev->gadget->dev, "%s: srate %d\n", __func__, srate); in u_audio_set_capture_srate() 520 if (params->c_srates[i] == srate) { in u_audio_set_capture_srate() 522 prm->srate = srate; in u_audio_set_capture_srate() 542 *val = prm->srate; in u_audio_get_capture_srate() [all …]
|
/Linux-v6.6/sound/soc/xilinx/ |
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-v6.6/sound/ppc/ |
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-v6.6/sound/soc/amd/acp/ |
D | acp-mach-common.c | 75 unsigned int srate, unsigned int bclk_ratio) in acp_clk_enable() argument 77 clk_set_rate(drvdata->wclk, srate); in acp_clk_enable() 78 clk_set_rate(drvdata->bclk, srate * bclk_ratio); in acp_clk_enable() 226 unsigned int fmt, srate, ch, format; in acp_card_rt5682_hw_params() local 228 srate = params_rate(params); in acp_card_rt5682_hw_params() 293 ret = acp_clk_enable(drvdata, srate, ch * format); in acp_card_rt5682_hw_params() 408 unsigned int fmt, srate, ch, format; in acp_card_rt5682s_hw_params() local 410 srate = params_rate(params); in acp_card_rt5682s_hw_params() 474 clk_set_rate(drvdata->wclk, srate); in acp_card_rt5682s_hw_params() 475 clk_set_rate(drvdata->bclk, srate * ch * format); in acp_card_rt5682s_hw_params() [all …]
|
/Linux-v6.6/sound/soc/meson/ |
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()
|