/Linux-v6.1/sound/soc/ |
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()
|
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-v6.1/sound/soc/sof/ |
D | ipc3-pcm.c | 261 channels->min = private->dai_config[dai->current_config].ssp.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 262 channels->max = private->dai_config[dai->current_config].ssp.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 300 channels->min = private->dai_config->esai.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 301 channels->max = private->dai_config->esai.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 320 channels->min = private->dai_config->sai.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 321 channels->max = private->dai_config->sai.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 330 channels->min = private->dai_config->acpbt.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 331 channels->max = private->dai_config->acpbt.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 341 channels->min = private->dai_config->acpsp.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() 342 channels->max = private->dai_config->acpsp.tdm_slots; in sof_ipc3_pcm_dai_link_fixup() [all …]
|
D | ipc3-topology.c | 1053 config->sai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_sai_load() 1062 config->sai.tdm_slots, config->sai.mclk_id); in sof_link_sai_load() 1064 if (config->sai.tdm_slots < 1 || config->sai.tdm_slots > 8) { in sof_link_sai_load() 1103 config->esai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_esai_load() 1112 config->esai.tdm_slots, config->esai.mclk_id); in sof_link_esai_load() 1114 if (config->esai.tdm_slots < 1 || config->esai.tdm_slots > 8) { in sof_link_esai_load() 1175 config->acpbt.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_acp_bt_load() 1178 config->dai_index, config->acpbt.tdm_slots, in sof_link_acp_bt_load() 1205 config->acpsp.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_acp_sp_load() 1208 config->dai_index, config->acpsp.tdm_slots, in sof_link_acp_sp_load() [all …]
|
/Linux-v6.1/include/sound/sof/ |
D | dai-imx.h | 27 uint32_t tdm_slots; member 48 uint32_t tdm_slots; member
|
D | dai-amd.h | 19 uint32_t tdm_slots; member
|
D | dai-intel.h | 72 uint32_t tdm_slots; member
|
/Linux-v6.1/sound/soc/codecs/ |
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()
|
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()
|
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()
|
D | wm8904.c | 80 int tdm_slots; member 1301 if (wm8904->tdm_slots) { in wm8904_hw_params() 1303 wm8904->tdm_slots, wm8904->tdm_width); in wm8904_hw_params() 1306 wm8904->tdm_slots); in wm8904_hw_params() 1543 wm8904->tdm_slots = slots / 2; in wm8904_set_tdm_slot()
|
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()
|
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()
|
D | madera.h | 143 int tdm_slots[MADERA_MAX_AIF]; member
|
D | max98090.h | 1535 int tdm_slots; member
|
/Linux-v6.1/sound/soc/ti/ |
D | davinci-mcasp.c | 92 int tdm_slots; member 644 mcasp->slot_width = div / mcasp->tdm_slots; in __davinci_mcasp_set_clkdiv() 645 if (div % mcasp->tdm_slots) in __davinci_mcasp_set_clkdiv() 648 __func__, div, mcasp->tdm_slots); in __davinci_mcasp_set_clkdiv() 716 int slots = mcasp->tdm_slots; in davinci_mcasp_ch_constraint() 783 mcasp->tdm_slots = slots; in davinci_mcasp_set_tdm_slot() 863 u8 slots = mcasp->tdm_slots; in mcasp_common_hw_param() 995 total_slots = mcasp->tdm_slots; in mcasp_i2s_hw_param() 1259 int slots = mcasp->tdm_slots; in davinci_mcasp_hw_params() 1384 int slots = rd->mcasp->tdm_slots; in davinci_mcasp_hw_rule_rate() [all …]
|
/Linux-v6.1/sound/soc/bcm/ |
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-v6.1/sound/soc/apple/ |
D | mca.c | 146 int tdm_slots; member 464 cl->tdm_slots = slots; in mca_fe_set_tdm_slot() 568 unsigned int tdm_slots, tdm_slot_width, tdm_mask; in mca_fe_hw_params() local 578 tdm_slots = params_channels(params); in mca_fe_hw_params() 582 tdm_slots = cl->tdm_slots; in mca_fe_hw_params() 589 bclk_ratio = tdm_slot_width * tdm_slots; in mca_fe_hw_params() 616 tdm_mask = (1 << tdm_slots) - 1; in mca_fe_hw_params() 624 tdm_mask, tdm_slots, params_channels(params), in mca_fe_hw_params()
|
/Linux-v6.1/sound/soc/atmel/ |
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-v6.1/include/linux/platform_data/ |
D | davinci_asp.h | 72 int tdm_slots; member
|
/Linux-v6.1/include/linux/mfd/arizona/ |
D | core.h | 153 int tdm_slots[ARIZONA_MAX_AIF]; member
|
/Linux-v6.1/include/uapi/sound/ |
D | asoc.h | 348 __le32 tdm_slots; /* number of TDM slots in use */ member
|
/Linux-v6.1/arch/arm/mach-davinci/ |
D | board-da830-evm.c | 173 .tdm_slots = 2,
|
D | board-da850-evm.c | 753 .tdm_slots = 2,
|
/Linux-v6.1/include/sound/ |
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);
|