Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 25 of 56) sorted by relevance

123

/sound/core/
Dpcm_iec958.c15 unsigned int fs, ws; in create_iec958_consumer() local
22 fs = IEC958_AES3_CON_FS_32000; in create_iec958_consumer()
25 fs = IEC958_AES3_CON_FS_44100; in create_iec958_consumer()
28 fs = IEC958_AES3_CON_FS_48000; in create_iec958_consumer()
31 fs = IEC958_AES3_CON_FS_88200; in create_iec958_consumer()
34 fs = IEC958_AES3_CON_FS_96000; in create_iec958_consumer()
37 fs = IEC958_AES3_CON_FS_176400; in create_iec958_consumer()
40 fs = IEC958_AES3_CON_FS_192000; in create_iec958_consumer()
74 cs[3] = IEC958_AES3_CON_CLOCK_1000PPM | fs; in create_iec958_consumer()
/sound/soc/codecs/
Dtfa9879.c29 int fs; in tfa9879_hw_params() local
34 fs = TFA9879_I2S_FS_8000; in tfa9879_hw_params()
37 fs = TFA9879_I2S_FS_11025; in tfa9879_hw_params()
40 fs = TFA9879_I2S_FS_12000; in tfa9879_hw_params()
43 fs = TFA9879_I2S_FS_16000; in tfa9879_hw_params()
46 fs = TFA9879_I2S_FS_22050; in tfa9879_hw_params()
49 fs = TFA9879_I2S_FS_24000; in tfa9879_hw_params()
52 fs = TFA9879_I2S_FS_32000; in tfa9879_hw_params()
55 fs = TFA9879_I2S_FS_44100; in tfa9879_hw_params()
58 fs = TFA9879_I2S_FS_48000; in tfa9879_hw_params()
[all …]
Dak4671.c426 u8 fs; in ak4671_hw_params() local
428 fs = snd_soc_component_read32(component, AK4671_PLL_MODE_SELECT0); in ak4671_hw_params()
429 fs &= ~AK4671_FS; in ak4671_hw_params()
433 fs |= AK4671_FS_8KHZ; in ak4671_hw_params()
436 fs |= AK4671_FS_12KHZ; in ak4671_hw_params()
439 fs |= AK4671_FS_16KHZ; in ak4671_hw_params()
442 fs |= AK4671_FS_24KHZ; in ak4671_hw_params()
445 fs |= AK4671_FS_11_025KHZ; in ak4671_hw_params()
448 fs |= AK4671_FS_22_05KHZ; in ak4671_hw_params()
451 fs |= AK4671_FS_32KHZ; in ak4671_hw_params()
[all …]
Dwm8955.c44 int fs; member
197 int fs; member
252 if (wm8955->fs == 0) in wm8955_configure_clocking()
253 wm8955->fs = 8000; in wm8955_configure_clocking()
257 if (wm8955->fs != clock_cfgs[i].fs) in wm8955_configure_clocking()
268 wm8955->fs); in wm8955_configure_clocking()
287 wm8955->fs, wm8955->mclk_rate); in wm8955_configure_clocking()
371 if (abs(deemph_settings[i] - wm8955->fs) < in wm8955_set_deemph()
372 abs(deemph_settings[best] - wm8955->fs)) in wm8955_set_deemph()
616 wm8955->fs = params_rate(params); in wm8955_hw_params()
Dwm9081.c150 int fs; member
669 target = wm9081->fs * clk_sys_rates[i].ratio; in configure_clock()
679 } else if (wm9081->fs) { in configure_clock()
682 * wm9081->fs; in configure_clock()
1014 wm9081->fs = params_rate(params); in wm9081_hw_params()
1021 wm9081->bclk = wm9081->fs * wm9081->tdm_width * slots; in wm9081_hw_params()
1024 wm9081->bclk = 2 * wm9081->fs; in wm9081_hw_params()
1056 - wm9081->fs); in wm9081_hw_params()
1059 clk_sys_rates[i].ratio) - wm9081->fs); in wm9081_hw_params()
1072 best_val = abs(wm9081->fs - sample_rates[0].rate); in wm9081_hw_params()
[all …]
Dda7210.c761 u32 fs, sysclk; in da7210_hw_params() local
793 fs = DA7210_PLL_FS_8000; in da7210_hw_params()
797 fs = DA7210_PLL_FS_11025; in da7210_hw_params()
801 fs = DA7210_PLL_FS_12000; in da7210_hw_params()
805 fs = DA7210_PLL_FS_16000; in da7210_hw_params()
809 fs = DA7210_PLL_FS_22050; in da7210_hw_params()
813 fs = DA7210_PLL_FS_32000; in da7210_hw_params()
817 fs = DA7210_PLL_FS_44100; in da7210_hw_params()
821 fs = DA7210_PLL_FS_48000; in da7210_hw_params()
825 fs = DA7210_PLL_FS_88200; in da7210_hw_params()
[all …]
Dda9055.c1053 u8 aif_ctrl, fs; in da9055_hw_params() local
1079 fs = DA9055_SR_8000; in da9055_hw_params()
1083 fs = DA9055_SR_11025; in da9055_hw_params()
1087 fs = DA9055_SR_12000; in da9055_hw_params()
1091 fs = DA9055_SR_16000; in da9055_hw_params()
1095 fs = DA9055_SR_22050; in da9055_hw_params()
1099 fs = DA9055_SR_32000; in da9055_hw_params()
1103 fs = DA9055_SR_44100; in da9055_hw_params()
1107 fs = DA9055_SR_48000; in da9055_hw_params()
1111 fs = DA9055_SR_88200; in da9055_hw_params()
[all …]
Dwm8961.c507 int i, best, target, fs; in wm8961_hw_params() local
510 fs = params_rate(params); in wm8961_hw_params()
520 if (abs(wm8961_srate[i].rate - fs) < in wm8961_hw_params()
521 abs(wm8961_srate[best].rate - fs)) in wm8961_hw_params()
529 wm8961_srate[best].rate, fs); in wm8961_hw_params()
532 target = wm8961->sysclk / fs; in wm8961_hw_params()
554 wm8961_clk_sys_ratio[i].ratio, wm8961->sysclk, fs, in wm8961_hw_params()
555 wm8961->sysclk / fs); in wm8961_hw_params()
583 if (fs <= 24000) in wm8961_hw_params()
Dak4642.c452 int ps, fs; in ak4642_set_mcko() local
455 for (fs = 0; fs < ARRAY_SIZE(fs_list); fs++) { in ak4642_set_mcko()
456 if (frequency == ps_list[ps] * fs_list[fs]) { in ak4642_set_mcko()
458 PSs(ps) | FSs(fs)); in ak4642_set_mcko()
Dadau1977.c265 unsigned int fs) in adau1977_lookup_mcs() argument
275 rate *= 512 >> fs; in adau1977_lookup_mcs()
302 int mcs, fs; in adau1977_hw_params() local
305 fs = adau1977_lookup_fs(rate); in adau1977_hw_params()
306 if (fs < 0) in adau1977_hw_params()
307 return fs; in adau1977_hw_params()
310 mcs = adau1977_lookup_mcs(adau1977, rate, fs); in adau1977_hw_params()
318 ctrl0 = fs; in adau1977_hw_params()
Dda732x.c952 u32 fs; in da732x_hw_params() local
975 fs = DA732X_SR_8KHZ; in da732x_hw_params()
978 fs = DA732X_SR_11_025KHZ; in da732x_hw_params()
981 fs = DA732X_SR_12KHZ; in da732x_hw_params()
984 fs = DA732X_SR_16KHZ; in da732x_hw_params()
987 fs = DA732X_SR_22_05KHZ; in da732x_hw_params()
990 fs = DA732X_SR_24KHZ; in da732x_hw_params()
993 fs = DA732X_SR_32KHZ; in da732x_hw_params()
996 fs = DA732X_SR_44_1KHZ; in da732x_hw_params()
999 fs = DA732X_SR_48KHZ; in da732x_hw_params()
[all …]
Dwm8904.c82 int fs; member
435 - wm8904->fs) < best_val) { in wm8904_set_retune_mobile()
438 - wm8904->fs); in wm8904_set_retune_mobile()
445 wm8904->fs); in wm8904_set_retune_mobile()
501 if (abs(deemph_settings[i] - wm8904->fs) < in wm8904_set_deemph()
502 abs(deemph_settings[best] - wm8904->fs)) in wm8904_set_deemph()
1300 wm8904->fs = params_rate(params); in wm8904_hw_params()
1304 wm8904->bclk = snd_soc_calc_bclk(wm8904->fs, in wm8904_hw_params()
1337 - wm8904->fs); in wm8904_hw_params()
1340 clk_sys_rates[i].ratio) - wm8904->fs); in wm8904_hw_params()
[all …]
Dda7213.c1151 u8 fs; in da7213_hw_params() local
1174 fs = DA7213_SR_8000; in da7213_hw_params()
1177 fs = DA7213_SR_11025; in da7213_hw_params()
1180 fs = DA7213_SR_12000; in da7213_hw_params()
1183 fs = DA7213_SR_16000; in da7213_hw_params()
1186 fs = DA7213_SR_22050; in da7213_hw_params()
1189 fs = DA7213_SR_32000; in da7213_hw_params()
1192 fs = DA7213_SR_44100; in da7213_hw_params()
1195 fs = DA7213_SR_48000; in da7213_hw_params()
1198 fs = DA7213_SR_88200; in da7213_hw_params()
[all …]
Dwm8903.c134 int fs; member
427 if (abs(wm8903_deemph[i] - wm8903->fs) < in wm8903_set_deemph()
428 abs(wm8903_deemph[best] - wm8903->fs)) in wm8903_set_deemph()
1444 int fs = params_rate(params); in wm8903_hw_params() local
1462 if (fs <= 24000) in wm8903_hw_params()
1469 best_val = abs(sample_rates[dsp_config].rate - fs); in wm8903_hw_params()
1471 cur_val = abs(sample_rates[i].rate - fs); in wm8903_hw_params()
1483 bclk = 2 * fs; in wm8903_hw_params()
1505 wm8903->sysclk, fs); in wm8903_hw_params()
1514 clk_sys_ratios[0].div)) - fs); in wm8903_hw_params()
[all …]
Dwm8993.c216 unsigned int fs; member
1206 wm8993->fs = params_rate(params); in wm8993_hw_params()
1207 wm8993->bclk = 2 * wm8993->fs; in wm8993_hw_params()
1243 - wm8993->fs); in wm8993_hw_params()
1246 clk_sys_rates[i].ratio) - wm8993->fs); in wm8993_hw_params()
1259 best_val = abs(wm8993->fs - sample_rates[0].rate); in wm8993_hw_params()
1262 cur_val = abs(wm8993->fs - sample_rates[i].rate); in wm8993_hw_params()
1292 dev_dbg(component->dev, "LRCLK_RATE is %d\n", wm8993->bclk / wm8993->fs); in wm8993_hw_params()
1293 aif4 |= wm8993->bclk / wm8993->fs; in wm8993_hw_params()
1307 - wm8993->fs); in wm8993_hw_params()
[all …]
Dda7219.c1511 u8 fs; in da7219_set_sr() local
1515 fs = DA7219_SR_8000; in da7219_set_sr()
1518 fs = DA7219_SR_11025; in da7219_set_sr()
1521 fs = DA7219_SR_12000; in da7219_set_sr()
1524 fs = DA7219_SR_16000; in da7219_set_sr()
1527 fs = DA7219_SR_22050; in da7219_set_sr()
1530 fs = DA7219_SR_24000; in da7219_set_sr()
1533 fs = DA7219_SR_32000; in da7219_set_sr()
1536 fs = DA7219_SR_44100; in da7219_set_sr()
1539 fs = DA7219_SR_48000; in da7219_set_sr()
[all …]
Dmax98088.c1425 int best, best_val, save, i, sel, fs; in max98088_setup_eq1() local
1434 fs = cdata->rate; in max98088_setup_eq1()
1441 abs(pdata->eq_cfg[i].rate - fs) < best_val) { in max98088_setup_eq1()
1443 best_val = abs(pdata->eq_cfg[i].rate - fs); in max98088_setup_eq1()
1449 pdata->eq_cfg[best].rate, fs); in max98088_setup_eq1()
1472 int best, best_val, save, i, sel, fs; in max98088_setup_eq2() local
1481 fs = cdata->rate; in max98088_setup_eq2()
1488 abs(pdata->eq_cfg[i].rate - fs) < best_val) { in max98088_setup_eq2()
1490 best_val = abs(pdata->eq_cfg[i].rate - fs); in max98088_setup_eq2()
1496 pdata->eq_cfg[best].rate, fs); in max98088_setup_eq2()
/sound/soc/mediatek/common/
Dmtk-afe-fe-dai.c125 int ret, fs = 0; in mtk_afe_fe_hw_params() local
159 fs = afe->memif_fs(substream, params_rate(params)); in mtk_afe_fe_hw_params()
161 if (fs < 0) in mtk_afe_fe_hw_params()
165 memif->data->fs_maskbit, fs, in mtk_afe_fe_hw_params()
189 int fs; in mtk_afe_fe_trigger() local
206 fs = afe->irq_fs(substream, runtime->rate); in mtk_afe_fe_trigger()
208 if (fs < 0) in mtk_afe_fe_trigger()
212 irq_data->irq_fs_maskbit, fs, in mtk_afe_fe_trigger()
/sound/soc/intel/skylake/
Dskl-debug.c26 struct dentry *fs; member
227 d->fs = debugfs_create_dir("dsp", skl->component->debugfs_root); in skl_debugfs_init()
233 d->modules = debugfs_create_dir("modules", d->fs); in skl_debugfs_init()
235 debugfs_create_file("fw_soft_regs_rd", 0444, d->fs, d, in skl_debugfs_init()
245 debugfs_remove_recursive(d->fs); in skl_debugfs_exit()
Dskl-nhlt.c209 u32 fs; in skl_get_ssp_clks() local
223 fs = wav_fmt->fmt.samples_per_sec; in skl_get_ssp_clks()
239 if ((fs == wav_fmt->fmt.samples_per_sec) && in skl_get_ssp_clks()
245 rate = channels * bps * fs; in skl_get_ssp_clks()
/sound/soc/atmel/
Datmel-pdmic.c381 int fs = params_rate(params); in atmel_pdmic_codec_dai_hw_params() local
393 if ((fs < rate_min) || (fs > rate_max)) { in atmel_pdmic_codec_dai_hw_params()
396 fs, rate_min, rate_max); in atmel_pdmic_codec_dai_hw_params()
414 if ((fs << 7) > (rate_max << 6)) { in atmel_pdmic_codec_dai_hw_params()
415 f_pdmic = fs << 6; in atmel_pdmic_codec_dai_hw_params()
418 f_pdmic = fs << 7; in atmel_pdmic_codec_dai_hw_params()
Datmel-i2s.c108 #define ATMEL_I2SC_MR_IMCKFS(fs) \ argument
109 (((fs) << 24) & ATMEL_I2SC_MR_IMCKFS_MASK)
158 int fs; member
294 static int atmel_i2s_get_gck_param(struct atmel_i2s_dev *dev, int fs) in atmel_i2s_get_gck_param() argument
311 int val = abs(fs - gck_param->fs); in atmel_i2s_get_gck_param()
/sound/soc/mediatek/mt8173/
Dmt8173-afe-pcm.c199 int fs = mt8173_afe_i2s_fs(rate); in mt8173_afe_set_i2s() local
201 if (fs < 0) in mt8173_afe_set_i2s()
210 AFE_I2S_CON2_RATE(fs) | in mt8173_afe_set_i2s()
217 AFE_I2S_CON1_RATE(fs) | in mt8173_afe_set_i2s()
489 int fs; in mt8173_memif_fs() local
495 fs = 0; in mt8173_memif_fs()
498 fs = 1; in mt8173_memif_fs()
501 fs = 2; in mt8173_memif_fs()
507 fs = mt8173_afe_i2s_fs(rate); in mt8173_memif_fs()
509 return fs; in mt8173_memif_fs()
/sound/soc/samsung/
Ds3c24xx_uda134x.c77 int fs = i ? 256 : 384; in s3c24xx_uda134x_startup() local
79 rates[i*33] = clk_get_rate(priv->xtal) / fs; in s3c24xx_uda134x_startup()
82 (j * fs); in s3c24xx_uda134x_startup()
/sound/soc/
Dsoc-utils.c36 int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots) in snd_soc_calc_bclk() argument
38 return fs * snd_soc_calc_frame_size(sample_size, channels, tdm_slots); in snd_soc_calc_bclk()

123