Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/sound/soc/
H A Dsoc-utils.c17 int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots) in snd_soc_calc_frame_size() argument
19 return sample_size * channels * tdm_slots; in snd_soc_calc_frame_size()
36 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()
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Dpcm3168a.c55 int tdm_slots; member
343 if (pcm3168a->io_params[dai->id].tdm_slots != 2) in pcm3168a_update_fixup_pcm_stream()
445 io_params->tdm_slots = slots; in pcm3168a_set_tdm_slot()
468 unsigned int tdm_slots; in pcm3168a_hw_params() local
526 if (io_params->tdm_slots) in pcm3168a_hw_params()
527 tdm_slots = io_params->tdm_slots; in pcm3168a_hw_params()
529 tdm_slots = params_channels(params); in pcm3168a_hw_params()
539 if (tdm_slots > 2) { in pcm3168a_hw_params()
H A Dwm8993.c212 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()
H A Darizona.c1787 int tdm_slots = arizona->tdm_slots[dai->id - 1]; in arizona_hw_params() local
1799 if (tdm_slots) { in arizona_hw_params()
1801 tdm_slots, tdm_width); in arizona_hw_params()
1802 bclk_target = tdm_slots * tdm_width * params_rate(params); in arizona_hw_params()
1803 channels = tdm_slots; in arizona_hw_params()
2019 arizona->tdm_slots[dai->id - 1] = slots; in arizona_set_tdm_slot()
H A Dwm8904.c80 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()
H A Dmax98090.c1605 if (max98090->tdm_slots == 4) { in max98090_dai_set_fmt()
1609 } 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()
H A Dmadera.c3113 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()
H A Dmadera.h143 int tdm_slots[MADERA_MAX_AIF]; member
H A Dmax98090.h1535 int tdm_slots; member
/OK3568_Linux_fs/kernel/sound/soc/ti/
H A Ddavinci-mcasp.c86 int tdm_slots; member
639 mcasp->slot_width = div / mcasp->tdm_slots; in __davinci_mcasp_set_clkdiv()
640 if (div % mcasp->tdm_slots) in __davinci_mcasp_set_clkdiv()
643 __func__, div, mcasp->tdm_slots); in __davinci_mcasp_set_clkdiv()
711 int slots = mcasp->tdm_slots; in davinci_mcasp_ch_constraint()
775 mcasp->tdm_slots = slots; in davinci_mcasp_set_tdm_slot()
841 u8 slots = mcasp->tdm_slots; in mcasp_common_hw_param()
967 total_slots = mcasp->tdm_slots; in mcasp_i2s_hw_param()
1234 int slots = mcasp->tdm_slots; in davinci_mcasp_hw_params()
1353 int slots = rd->mcasp->tdm_slots; in davinci_mcasp_hw_rule_rate()
[all …]
/OK3568_Linux_fs/kernel/include/sound/sof/
H A Ddai-imx.h27 uint32_t tdm_slots; member
48 uint32_t tdm_slots; member
H A Ddai-intel.h66 uint32_t tdm_slots; member
/OK3568_Linux_fs/kernel/sound/soc/bcm/
H A Dbcm2835-i2s.c116 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()
/OK3568_Linux_fs/kernel/sound/soc/atmel/
H A Dmchp-i2s-mcc.c240 int tdm_slots; member
365 dev->tdm_slots = slots; in mchp_i2s_mcc_set_dai_tdm_slot()
506 if (dev->tdm_slots) { in mchp_i2s_mcc_hw_params()
513 if (dev->tdm_slots) { in mchp_i2s_mcc_hw_params()
569 if (dev->tdm_slots) { in mchp_i2s_mcc_hw_params()
570 if (channels % 2 && channels * 2 <= dev->tdm_slots) { in mchp_i2s_mcc_hw_params()
580 channels = dev->tdm_slots; in mchp_i2s_mcc_hw_params()
/OK3568_Linux_fs/kernel/sound/soc/sof/
H A Dpcm.c686 channels->min = dai->dai_config->ssp.tdm_slots; in sof_pcm_dai_link_fixup()
687 channels->max = dai->dai_config->ssp.tdm_slots; in sof_pcm_dai_link_fixup()
723 channels->min = dai->dai_config->esai.tdm_slots; in sof_pcm_dai_link_fixup()
724 channels->max = dai->dai_config->esai.tdm_slots; in sof_pcm_dai_link_fixup()
735 channels->min = dai->dai_config->sai.tdm_slots; in sof_pcm_dai_link_fixup()
736 channels->max = dai->dai_config->sai.tdm_slots; in sof_pcm_dai_link_fixup()
H A Dtopology.c2909 config->ssp.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_ssp_load()
2919 config->ssp.tdm_slot_width, config->ssp.tdm_slots, in sof_link_ssp_load()
2929 if (config->ssp.tdm_slots < 1 || config->ssp.tdm_slots > 8) { in sof_link_ssp_load()
2976 config->sai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_sai_load()
2985 config->sai.tdm_slots, config->sai.mclk_id); in sof_link_sai_load()
2987 if (config->sai.tdm_slots < 1 || config->sai.tdm_slots > 8) { in sof_link_sai_load()
3033 config->esai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_esai_load()
3042 config->esai.tdm_slots, config->esai.mclk_id); in sof_link_esai_load()
3044 if (config->esai.tdm_slots < 1 || config->esai.tdm_slots > 8) { in sof_link_esai_load()
/OK3568_Linux_fs/kernel/include/linux/platform_data/
H A Ddavinci_asp.h80 int tdm_slots; member
/OK3568_Linux_fs/kernel/include/linux/mfd/arizona/
H A Dcore.h153 int tdm_slots[ARIZONA_MAX_AIF]; member
/OK3568_Linux_fs/kernel/arch/arm/mach-davinci/
H A Dboard-dm646x-evm.c381 .tdm_slots = 2,
390 .tdm_slots = 32,
H A Dboard-da830-evm.c176 .tdm_slots = 2,
H A Dboard-da850-evm.c760 .tdm_slots = 2,
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/sound/
H A Dasoc.h346 __le32 tdm_slots; /* number of TDM slots in use */ member
/OK3568_Linux_fs/kernel/include/uapi/sound/
H A Dasoc.h346 __le32 tdm_slots; /* number of TDM slots in use */ member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/sound/
H A Dasoc.h346 __le32 tdm_slots; /* number of TDM slots in use */ member
/OK3568_Linux_fs/kernel/include/sound/
H A Dsoc.h493 int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots);
495 int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots);