/linux-6.3-rc2/sound/soc/ |
A D | soc-utils.c | 18 int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots) in snd_soc_calc_frame_size() argument 20 return sample_size * channels * tdm_slots; in snd_soc_calc_frame_size() 37 int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots) in snd_soc_calc_bclk() argument 39 return fs * snd_soc_calc_frame_size(sample_size, channels, tdm_slots); in snd_soc_calc_bclk() 83 int tdm_width, int tdm_slots, int slot_multiple) in snd_soc_tdm_params_to_bclk() argument 85 if (!tdm_slots) in snd_soc_tdm_params_to_bclk() 86 tdm_slots = params_channels(params); in snd_soc_tdm_params_to_bclk() 89 tdm_slots = roundup(tdm_slots, slot_multiple); in snd_soc_tdm_params_to_bclk() 97 return snd_soc_calc_bclk(params_rate(params), tdm_width, 1, tdm_slots); in snd_soc_tdm_params_to_bclk()
|
A D | soc-utils-test.c | 17 u8 tdm_slots; member 121 unsigned int tdm_width, unsigned int tdm_slots, in test_tdm_params_to_bclk_one() argument 136 got_bclk = snd_soc_tdm_params_to_bclk(¶ms, tdm_width, tdm_slots, slot_multiple); in test_tdm_params_to_bclk_one() 139 rate, params_width(¶ms), channels, tdm_width, tdm_slots, slot_multiple, in test_tdm_params_to_bclk_one() 154 tdm_params_to_bclk_cases[i].tdm_slots, in test_tdm_params_to_bclk() 167 tdm_params_to_bclk_cases[i].tdm_slots, in test_tdm_params_to_bclk() 206 tdm_params_to_bclk_cases[i].tdm_slots | in test_snd_soc_params_to_bclk()
|
/linux-6.3-rc2/sound/soc/sof/ |
A D | ipc3-pcm.c | 262 channels->min = private->dai_config[dai->current_config].ssp.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 301 channels->min = private->dai_config->esai.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 302 channels->max = private->dai_config->esai.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 321 channels->min = private->dai_config->sai.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 322 channels->max = private->dai_config->sai.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 331 channels->min = private->dai_config->acpbt.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 332 channels->max = private->dai_config->acpbt.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 343 channels->min = private->dai_config->acpsp.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 344 channels->max = private->dai_config->acpsp.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 355 channels->min = private->dai_config->acphs.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() [all …]
|
A D | ipc3-topology.c | 1064 config->sai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_sai_load() 1073 config->sai.tdm_slots, config->sai.mclk_id); in sof_link_sai_load() 1075 if (config->sai.tdm_slots < 1 || config->sai.tdm_slots > 8) { in sof_link_sai_load() 1114 config->esai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_esai_load() 1125 if (config->esai.tdm_slots < 1 || config->esai.tdm_slots > 8) { in sof_link_esai_load() 1186 config->acpbt.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_acp_bt_load() 1189 config->dai_index, config->acpbt.tdm_slots, in sof_link_acp_bt_load() 1223 config->dai_index, config->acpsp.tdm_slots, in sof_link_acp_sp_load() 1256 config->dai_index, config->acphs.tdm_slots, in sof_link_acp_hs_load() 1335 config[i].ssp.tdm_slots = le32_to_cpu(hw_config[i].tdm_slots); in sof_link_ssp_load() [all …]
|
A D | ipc4-topology.c | 1040 *channel_count = le32_to_cpu(hw_config->tdm_slots); in snd_sof_get_hw_config_params()
|
/linux-6.3-rc2/include/sound/sof/ |
A D | dai-imx.h | 27 uint32_t tdm_slots; member 48 uint32_t tdm_slots; member
|
A D | dai-amd.h | 19 uint32_t tdm_slots; member
|
A D | dai-intel.h | 72 uint32_t tdm_slots; member
|
/linux-6.3-rc2/sound/soc/codecs/ |
A D | pcm3168a.c | 53 int tdm_slots; member 342 if (io_params->tdm_slots != 2) in pcm3168a_update_fixup_pcm_stream() 423 io_params->tdm_slots = slots; in pcm3168a_set_tdm_slot() 445 unsigned int reg, mask, ms, ms_shift, fmt, fmt_shift, ratio, tdm_slots; in pcm3168a_hw_params() local 510 if (io_params->tdm_slots) in pcm3168a_hw_params() 511 tdm_slots = io_params->tdm_slots; in pcm3168a_hw_params() 513 tdm_slots = params_channels(params); in pcm3168a_hw_params() 523 tdm_mode = (tdm_slots > 2); in pcm3168a_hw_params()
|
A D | wm8993.c | 212 int tdm_slots; member 1208 if (wm8993->tdm_slots) { in wm8993_hw_params() 1210 wm8993->tdm_slots, wm8993->tdm_width); in wm8993_hw_params() 1211 wm8993->bclk *= wm8993->tdm_width * wm8993->tdm_slots; in wm8993_hw_params() 1360 wm8993->tdm_slots = 0; in wm8993_set_tdm_slot() 1394 wm8993->tdm_slots = slots / 2; in wm8993_set_tdm_slot()
|
A D | arizona.c | 1788 int tdm_slots = arizona->tdm_slots[dai->id - 1]; in arizona_hw_params() local 1800 if (tdm_slots) { in arizona_hw_params() 1802 tdm_slots, tdm_width); in arizona_hw_params() 1803 bclk_target = tdm_slots * tdm_width * params_rate(params); in arizona_hw_params() 1804 channels = tdm_slots; in arizona_hw_params() 2020 arizona->tdm_slots[dai->id - 1] = slots; in arizona_set_tdm_slot()
|
A D | max98090.c | 1607 if (max98090->tdm_slots == 4) { in max98090_dai_set_fmt() 1611 } else if (max98090->tdm_slots == 3) { in max98090_dai_set_fmt() 1668 if (max98090->tdm_slots > 1) in max98090_dai_set_fmt() 1689 max98090->tdm_slots = slots; in max98090_set_tdm_slot() 1692 if (max98090->tdm_slots > 1) { in max98090_set_tdm_slot()
|
A D | wm8904.c | 80 int tdm_slots; member 1308 if (wm8904->tdm_slots) { in wm8904_hw_params() 1310 wm8904->tdm_slots, wm8904->tdm_width); in wm8904_hw_params() 1313 wm8904->tdm_slots); in wm8904_hw_params() 1550 wm8904->tdm_slots = slots / 2; in wm8904_set_tdm_slot()
|
A D | madera.c | 3113 int tdm_slots = priv->tdm_slots[dai->id - 1]; in madera_hw_params() local 3128 if (tdm_slots) { in madera_hw_params() 3130 tdm_slots, tdm_width); in madera_hw_params() 3131 bclk_target = tdm_slots * tdm_width * rate; in madera_hw_params() 3132 channels = tdm_slots; in madera_hw_params() 3356 priv->tdm_slots[dai->id - 1] = slots; in madera_set_tdm_slot()
|
A D | madera.h | 143 int tdm_slots[MADERA_MAX_AIF]; member
|
A D | max98090.h | 1535 int tdm_slots; member
|
/linux-6.3-rc2/sound/soc/ti/ |
A D | davinci-mcasp.c | 92 int tdm_slots; member 783 mcasp->tdm_slots = slots; in davinci_mcasp_set_tdm_slot() 1491 int tdm_slots = mcasp->tdm_slots; in davinci_mcasp_startup() local 1520 max_channels *= tdm_slots; in davinci_mcasp_startup() 1917 pdata->tdm_slots = val; in davinci_mcasp_get_config() 1980 pdata->tdm_slots); in davinci_mcasp_get_config() 1981 mcasp->tdm_slots = 2; in davinci_mcasp_get_config() 1984 pdata->tdm_slots); in davinci_mcasp_get_config() 1985 mcasp->tdm_slots = 32; in davinci_mcasp_get_config() 1987 mcasp->tdm_slots = pdata->tdm_slots; in davinci_mcasp_get_config() [all …]
|
/linux-6.3-rc2/sound/soc/bcm/ |
A D | bcm2835-i2s.c | 116 unsigned int tdm_slots; member 233 dev->tdm_slots = 0; in bcm2835_i2s_set_dai_bclk_ratio() 240 dev->tdm_slots = 2; in bcm2835_i2s_set_dai_bclk_ratio() 275 dev->tdm_slots = slots; in bcm2835_i2s_set_dai_tdm_slot() 360 if (dev->tdm_slots) { in bcm2835_i2s_hw_params() 361 slots = dev->tdm_slots; in bcm2835_i2s_hw_params()
|
/linux-6.3-rc2/sound/soc/apple/ |
A D | mca.c | 145 int tdm_slots; member 472 cl->tdm_slots = slots; in mca_fe_set_tdm_slot() 576 unsigned int tdm_slots, tdm_slot_width, tdm_mask; in mca_fe_hw_params() local 586 tdm_slots = params_channels(params); in mca_fe_hw_params() 590 tdm_slots = cl->tdm_slots; in mca_fe_hw_params() 597 bclk_ratio = tdm_slot_width * tdm_slots; in mca_fe_hw_params() 624 tdm_mask = (1 << tdm_slots) - 1; in mca_fe_hw_params() 632 tdm_mask, tdm_slots, params_channels(params), in mca_fe_hw_params()
|
/linux-6.3-rc2/sound/soc/atmel/ |
A D | mchp-i2s-mcc.c | 249 int tdm_slots; member 387 dev->tdm_slots = slots; in mchp_i2s_mcc_set_dai_tdm_slot() 528 if (dev->tdm_slots) { in mchp_i2s_mcc_hw_params() 535 if (dev->tdm_slots) { in mchp_i2s_mcc_hw_params() 610 if (dev->tdm_slots) { in mchp_i2s_mcc_hw_params() 611 if (channels % 2 && channels * 2 <= dev->tdm_slots) { in mchp_i2s_mcc_hw_params() 621 channels = dev->tdm_slots; in mchp_i2s_mcc_hw_params()
|
/linux-6.3-rc2/include/linux/platform_data/ |
A D | davinci_asp.h | 72 int tdm_slots; member
|
/linux-6.3-rc2/include/linux/mfd/arizona/ |
A D | core.h | 153 int tdm_slots[ARIZONA_MAX_AIF]; member
|
/linux-6.3-rc2/include/uapi/sound/ |
A D | asoc.h | 348 __le32 tdm_slots; /* number of TDM slots in use */ member
|
/linux-6.3-rc2/include/sound/ |
A D | soc.h | 513 int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots); 515 int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots); 518 int tdm_width, int tdm_slots, int slot_multiple);
|