Home
last modified time | relevance | path

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

/linux/sound/soc/
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()
/linux/sound/soc/codecs/
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()
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()
A Darizona.c1788 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 Dmax98090.c1600 if (max98090->tdm_slots == 4) { in max98090_dai_set_fmt()
1604 } else if (max98090->tdm_slots == 3) { in max98090_dai_set_fmt()
1663 if (max98090->tdm_slots > 1) in max98090_dai_set_fmt()
1684 max98090->tdm_slots = slots; in max98090_set_tdm_slot()
1687 if (max98090->tdm_slots > 1) { in max98090_set_tdm_slot()
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()
A Dmadera.c3107 int tdm_slots = priv->tdm_slots[dai->id - 1]; in madera_hw_params() local
3122 if (tdm_slots) { in madera_hw_params()
3124 tdm_slots, tdm_width); in madera_hw_params()
3125 bclk_target = tdm_slots * tdm_width * rate; in madera_hw_params()
3126 channels = tdm_slots; in madera_hw_params()
3350 priv->tdm_slots[dai->id - 1] = slots; in madera_set_tdm_slot()
A Dmadera.h143 int tdm_slots[MADERA_MAX_AIF]; member
A Dmax98090.h1535 int tdm_slots; member
/linux/sound/soc/ti/
A Ddavinci-mcasp.c92 int tdm_slots; member
783 mcasp->tdm_slots = slots; in davinci_mcasp_set_tdm_slot()
1492 int tdm_slots = mcasp->tdm_slots; in davinci_mcasp_startup() local
1521 max_channels *= tdm_slots; in davinci_mcasp_startup()
1918 pdata->tdm_slots = val; in davinci_mcasp_get_config()
1981 pdata->tdm_slots); in davinci_mcasp_get_config()
1982 mcasp->tdm_slots = 2; in davinci_mcasp_get_config()
1985 pdata->tdm_slots); in davinci_mcasp_get_config()
1986 mcasp->tdm_slots = 32; in davinci_mcasp_get_config()
1988 mcasp->tdm_slots = pdata->tdm_slots; in davinci_mcasp_get_config()
[all …]
/linux/include/sound/sof/
A Ddai-imx.h27 uint32_t tdm_slots; member
48 uint32_t tdm_slots; member
A Ddai-intel.h70 uint32_t tdm_slots; member
/linux/sound/soc/bcm/
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()
/linux/sound/soc/atmel/
A Dmchp-i2s-mcc.c249 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/sound/soc/sof/
A Dpcm.c766 channels->min = dai->dai_config[dai->current_config].ssp.tdm_slots; in sof_pcm_dai_link_fixup()
767 channels->max = dai->dai_config[dai->current_config].ssp.tdm_slots; in sof_pcm_dai_link_fixup()
808 channels->min = dai->dai_config->esai.tdm_slots; in sof_pcm_dai_link_fixup()
809 channels->max = dai->dai_config->esai.tdm_slots; in sof_pcm_dai_link_fixup()
820 channels->min = dai->dai_config->sai.tdm_slots; in sof_pcm_dai_link_fixup()
821 channels->max = dai->dai_config->sai.tdm_slots; in sof_pcm_dai_link_fixup()
A Dtopology.c2844 config[i].ssp.tdm_slots = le32_to_cpu(hw_config[i].tdm_slots); in sof_link_ssp_load()
2854 config[i].ssp.tdm_slot_width, config[i].ssp.tdm_slots, in sof_link_ssp_load()
2864 if (config[i].ssp.tdm_slots < 1 || config[i].ssp.tdm_slots > 8) { in sof_link_ssp_load()
2912 config->sai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_sai_load()
2921 config->sai.tdm_slots, config->sai.mclk_id); in sof_link_sai_load()
2923 if (config->sai.tdm_slots < 1 || config->sai.tdm_slots > 8) { in sof_link_sai_load()
2969 config->esai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); in sof_link_esai_load()
2978 config->esai.tdm_slots, config->esai.mclk_id); in sof_link_esai_load()
2980 if (config->esai.tdm_slots < 1 || config->esai.tdm_slots > 8) { in sof_link_esai_load()
/linux/include/linux/platform_data/
A Ddavinci_asp.h80 int tdm_slots; member
/linux/include/linux/mfd/arizona/
A Dcore.h153 int tdm_slots[ARIZONA_MAX_AIF]; member
/linux/arch/arm/mach-davinci/
A Dboard-dm646x-evm.c385 .tdm_slots = 2,
394 .tdm_slots = 32,
A Dboard-da830-evm.c176 .tdm_slots = 2,
A Dboard-da850-evm.c760 .tdm_slots = 2,
/linux/include/uapi/sound/
A Dasoc.h352 __le32 tdm_slots; /* number of TDM slots in use */ member
/linux/include/sound/
A Dsoc.h484 int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots);
486 int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots);

Completed in 95 milliseconds