Home
last modified time | relevance | path

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

12345

/linux-6.1.9/sound/soc/codecs/
Dpcm3168a.c55 int slot_width; member
403 int slot_width) in pcm3168a_set_tdm_slot() argument
416 if (slot_width && in pcm3168a_set_tdm_slot()
417 (slot_width != 16 && slot_width != 24 && slot_width != 32 )) { in pcm3168a_set_tdm_slot()
419 slot_width); in pcm3168a_set_tdm_slot()
424 io_params->slot_width = slot_width; in pcm3168a_set_tdm_slot()
446 int i, num_scki_ratios, slot_width; in pcm3168a_hw_params() local
484 if (io_params->slot_width) in pcm3168a_hw_params()
485 slot_width = io_params->slot_width; in pcm3168a_hw_params()
487 slot_width = params_width(params); in pcm3168a_hw_params()
[all …]
Dadau1977.c128 unsigned int slot_width; member
298 unsigned int slot_width; in adau1977_hw_params() local
337 slot_width = 16; in adau1977_hw_params()
342 slot_width = 32; in adau1977_hw_params()
349 if (adau1977->slot_width) in adau1977_hw_params()
350 slot_width = adau1977->slot_width; in adau1977_hw_params()
352 if (slot_width == 16) in adau1977_hw_params()
506 adau1977->slot_width = 0; in adau1977_set_tdm_slot()
594 adau1977->slot_width = width; in adau1977_set_tdm_slot()
708 if (adau1977->slot_width == 16) in adau1977_startup()
[all …]
Dadau7118.c40 u32 slot_width; member
228 int slot_width) in adau7118_set_tdm_slot() argument
235 dev_dbg(st->dev, "Set tdm, slots:%d width:%d\n", slots, slot_width); in adau7118_set_tdm_slot()
237 switch (slot_width) { in adau7118_set_tdm_slot()
248 dev_err(st->dev, "Invalid slot width:%d\n", slot_width); in adau7118_set_tdm_slot()
258 st->slot_width = slot_width; in adau7118_set_tdm_slot()
285 slots_width = st->slot_width; in adau7118_hw_params()
Dak5558.c46 int slot_width; member
178 int pcm_width = max(params_physical_width(params), ak5558->slot_width); in ak5558_hw_params()
235 int slot_width) in ak5558_set_tdm_slot() argument
242 ak5558->slot_width = slot_width; in ak5558_set_tdm_slot()
244 switch (slots * slot_width) { in ak5558_set_tdm_slot()
Dcs35l45.c342 if (cs35l45->slot_width) in cs35l45_asp_hw_params()
343 asp_width = cs35l45->slot_width; in cs35l45_asp_hw_params()
384 int slots, int slot_width) in cs35l45_asp_set_tdm_slot() argument
388 if (slot_width && ((slot_width < 16) || (slot_width > 128))) in cs35l45_asp_set_tdm_slot()
391 cs35l45->slot_width = slot_width; in cs35l45_asp_set_tdm_slot()
Dmax98373-i2c.c321 int slots, int slot_width) in max98373_dai_tdm_slot() argument
330 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98373_dai_tdm_slot()
336 bsel = max98373_get_bclk_sel(slots * slot_width); in max98373_dai_tdm_slot()
339 slots * slot_width); in max98373_dai_tdm_slot()
349 switch (slot_width) { in max98373_dai_tdm_slot()
361 slot_width); in max98373_dai_tdm_slot()
Dadau1372.c36 unsigned int slot_width; member
644 unsigned int slot_width; in adau1372_hw_params() local
658 slot_width = adau1372->slot_width; in adau1372_hw_params()
659 if (slot_width == 0) in adau1372_hw_params()
660 slot_width = params_width(params); in adau1372_hw_params()
662 switch (slot_width) { in adau1372_hw_params()
691 adau1372->slot_width = 0; in adau1372_set_tdm_slot()
730 adau1372->slot_width = width; in adau1372_set_tdm_slot()
Dmax98520.c266 int slots, int slot_width) in max98520_dai_tdm_slot() argument
274 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98520_dai_tdm_slot()
280 bsel = max98520_get_bclk_sel(slots * slot_width); in max98520_dai_tdm_slot()
283 slots * slot_width); in max98520_dai_tdm_slot()
293 switch (slot_width) { in max98520_dai_tdm_slot()
305 slot_width); in max98520_dai_tdm_slot()
Dak4458.c54 int slot_width; member
311 switch (ak4458->slots * ak4458->slot_width) { in ak4458_get_tdm_mode()
349 int pcm_width = max(params_physical_width(params), ak4458->slot_width); in ak4458_hw_params()
548 unsigned int rx_mask, int slots, int slot_width) in ak4458_set_tdm_slot() argument
555 ak4458->slot_width = slot_width; in ak4458_set_tdm_slot()
/linux-6.1.9/sound/soc/fsl/
Dimx-hdmi.c20 u32 slot_width; member
41 u32 slot_width = data->cpu_priv.slot_width; in imx_hdmi_hw_params() local
46 8 * slot_width * params_rate(params), in imx_hdmi_hw_params()
53 ret = snd_soc_dai_set_tdm_slot(cpu_dai, 0, 0, 2, slot_width); in imx_hdmi_hw_params()
159 data->cpu_priv.slot_width = 24; in imx_hdmi_probe()
162 data->cpu_priv.slot_width = 32; in imx_hdmi_probe()
Dimx-card.c98 unsigned int slot_width; member
254 int slots, int slot_width) in akcodec_get_mclk_rate() argument
260 unsigned int width = slots * slot_width; in akcodec_get_mclk_rate()
303 unsigned int slots, slot_width; in imx_aif_hw_params() local
307 slot_width = link_data->slot_width; in imx_aif_hw_params()
312 slot_width = params_width(params); in imx_aif_hw_params()
317 slot_width = params_physical_width(params); in imx_aif_hw_params()
331 slots, slot_width); in imx_aif_hw_params()
347 slots, slot_width); in imx_aif_hw_params()
356 mclk_freq = akcodec_get_mclk_rate(substream, params, slots, slot_width); in imx_aif_hw_params()
[all …]
Dfsl_ssi.c264 unsigned int slot_width; member
689 unsigned int slot_width = params_width(hw_params); in fsl_ssi_set_bclk() local
699 if (ssi->slot_width) in fsl_ssi_set_bclk()
700 slot_width = ssi->slot_width; in fsl_ssi_set_bclk()
705 slot_width = 32; in fsl_ssi_set_bclk()
708 freq = slots * slot_width * params_rate(hw_params); in fsl_ssi_set_bclk()
1058 u32 rx_mask, int slots, int slot_width) in fsl_ssi_set_dai_tdm_slot() argument
1065 if (slot_width & 1 || slot_width < 8 || slot_width > 24) { in fsl_ssi_set_dai_tdm_slot()
1066 dev_err(dai->dev, "invalid slot width: %d\n", slot_width); in fsl_ssi_set_dai_tdm_slot()
1092 ssi->slot_width = slot_width; in fsl_ssi_set_dai_tdm_slot()
/linux-6.1.9/sound/soc/sti/
Dsti_uniperif.c126 int slot_width) in sti_uniperiph_set_tdm_slot() argument
139 uni->tdm_slot.slot_width = slot_width; in sti_uniperiph_set_tdm_slot()
151 frame_size = uni->tdm_slot.avail_slots * uni->tdm_slot.slot_width / 8; in sti_uniperiph_set_tdm_slot()
186 switch (uni->tdm_slot.slot_width) { in sti_uniperiph_fix_tdm_format()
195 uni->tdm_slot.slot_width); in sti_uniperiph_fix_tdm_format()
213 int slot_width = uni->tdm_slot.slot_width / 8; in sti_uniperiph_get_tdm_word_pos() local
229 word16_pos[j] = i * slot_width; in sti_uniperiph_get_tdm_word_pos()
231 if (slot_width == 4) { in sti_uniperiph_get_tdm_word_pos()
Duniperif_reader.c84 int slot_width; in uni_reader_prepare_pcm() local
89 slot_width = 32; in uni_reader_prepare_pcm()
93 slot_width = 16; in uni_reader_prepare_pcm()
96 slot_width = 32; in uni_reader_prepare_pcm()
102 switch (slot_width) { in uni_reader_prepare_pcm()
/linux-6.1.9/sound/soc/bcm/
Dbcm2835-i2s.c119 unsigned int slot_width; member
243 dev->slot_width = ratio / 2; in bcm2835_i2s_set_dai_bclk_ratio()
279 dev->slot_width = width; in bcm2835_i2s_set_dai_tdm_slot()
335 unsigned int slots, slot_width, odd_slot_offset; in bcm2835_i2s_hw_params() local
362 slot_width = dev->slot_width; in bcm2835_i2s_hw_params()
369 slot_width = params_width(params); in bcm2835_i2s_hw_params()
383 if (data_length > slot_width) in bcm2835_i2s_hw_params()
478 data_delay = slot_width - data_length; in bcm2835_i2s_hw_params()
497 rx_mask, slot_width, data_delay, odd_slot_offset); in bcm2835_i2s_hw_params()
499 tx_mask, slot_width, data_delay, odd_slot_offset); in bcm2835_i2s_hw_params()
[all …]
/linux-6.1.9/sound/soc/sunxi/
Dsun4i-i2s.c205 unsigned int slot_width);
218 unsigned int slot_width; member
339 unsigned int slot_width) in sun4i_i2s_set_clk_rate() argument
386 rate, slots, slot_width); in sun4i_i2s_set_clk_rate()
461 unsigned int slot_width) in sun4i_i2s_set_chan_cfg() argument
480 unsigned int slot_width) in sun8i_i2s_set_chan_cfg() argument
506 lrck_period = slot_width * slots; in sun8i_i2s_set_chan_cfg()
512 lrck_period = slot_width; in sun8i_i2s_set_chan_cfg()
532 unsigned int slot_width) in sun50i_h6_i2s_set_chan_cfg() argument
567 lrck_period = slot_width * slots; in sun50i_h6_i2s_set_chan_cfg()
[all …]
Dsun8i-codec.c174 unsigned int slot_width; member
396 int slots, int slot_width) in sun8i_codec_set_tdm_slot() argument
401 if (slot_width && !is_power_of_2(slot_width)) in sun8i_codec_set_tdm_slot()
405 aif->slot_width = slot_width; in sun8i_codec_set_tdm_slot()
495 unsigned int slot_width) in sun8i_codec_get_lrck_div_order() argument
497 unsigned int div = slots * slot_width; in sun8i_codec_get_lrck_div_order()
518 unsigned int slot_width = aif->slot_width ?: params_width(params); in sun8i_codec_hw_params() local
546 lrck_div_order = sun8i_codec_get_lrck_div_order(slots, slot_width); in sun8i_codec_hw_params()
/linux-6.1.9/sound/soc/meson/
Daxg-tdm-interface.c37 unsigned int slot_width) in axg_tdm_set_tdm_slots() argument
58 switch (slot_width) { in axg_tdm_set_tdm_slots()
60 slot_width = 32; in axg_tdm_set_tdm_slots()
76 dev_err(dai->dev, "unsupported slot width: %d\n", slot_width); in axg_tdm_set_tdm_slots()
80 iface->slot_width = slot_width; in axg_tdm_set_tdm_slots()
191 if (iface->slot_width < width) { in axg_tdm_iface_set_stream()
266 srate = iface->slots * iface->slot_width * params_rate(params); in axg_tdm_iface_set_sclk()
Daxg-tdm.h35 unsigned int slot_width; member
76 unsigned int slot_width);
Daxg-card.c22 unsigned int slot_width; member
67 be->slots, be->slot_width); in axg_card_tdm_dai_init()
76 be->slots, be->slot_width); in axg_card_tdm_dai_init()
94 be->slots, be->slot_width); in axg_card_tdm_dai_lb_init()
215 of_property_read_u32(node, "dai-tdm-slot-width", &be->slot_width); in axg_card_parse_cpu_tdm_slots()
/linux-6.1.9/sound/soc/ti/
Ddavinci-mcasp.c94 int slot_width; member
644 mcasp->slot_width = div / mcasp->tdm_slots; in __davinci_mcasp_set_clkdiv()
758 int slots, int slot_width) in davinci_mcasp_set_tdm_slot() argument
767 __func__, tx_mask, rx_mask, slots, slot_width); in davinci_mcasp_set_tdm_slot()
776 if (slot_width && in davinci_mcasp_set_tdm_slot()
777 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) { in davinci_mcasp_set_tdm_slot()
779 __func__, slot_width); in davinci_mcasp_set_tdm_slot()
786 mcasp->slot_width = slot_width; in davinci_mcasp_set_tdm_slot()
795 u32 tx_rotate, rx_rotate, slot_width; in davinci_config_channel_size() local
798 if (mcasp->slot_width) in davinci_config_channel_size()
[all …]
/linux-6.1.9/include/sound/
Dsimple_card_utils.h22 u16 slot_width; member
30 int slot_width; member
167 &(dai)->slot_width);
216 if (dai->slot_width) in asoc_simple_debug_dai()
217 dev_dbg(dev, "%s slot width = %d\n", name, dai->slot_width); in asoc_simple_debug_dai()
/linux-6.1.9/sound/soc/ux500/
Dux500_msp_dai.c581 int slots, int slot_width) in ux500_msp_dai_set_tdm_slot() argument
606 if (!(slot_width == 16)) { in ux500_msp_dai_set_tdm_slot()
608 __func__, slot_width); in ux500_msp_dai_set_tdm_slot()
611 drvdata->slot_width = slot_width; in ux500_msp_dai_set_tdm_slot()
696 drvdata->msp->playback_dma_data.data_size = drvdata->slot_width; in ux500_msp_dai_probe()
697 drvdata->msp->capture_dma_data.data_size = drvdata->slot_width; in ux500_msp_dai_probe()
759 drvdata->slot_width = 16; in ux500_msp_drv_probe()
/linux-6.1.9/sound/soc/generic/
Dsimple-card-utils.c171 dai->tdm_width_map[i].slot_width = *p++; in asoc_simple_parse_tdm_width_map()
415 int slot_width, slot_count; in asoc_simple_set_tdm() local
421 slot_width = simple_dai->slot_width; in asoc_simple_set_tdm()
424 if (slot_width == 0) in asoc_simple_set_tdm()
425 slot_width = sample_bits; in asoc_simple_set_tdm()
429 slot_width = simple_dai->tdm_width_map[i].slot_width; in asoc_simple_set_tdm()
439 slot_width); in asoc_simple_set_tdm()
554 simple_dai->slot_width); in asoc_simple_init_dai()
/linux-6.1.9/sound/soc/qcom/
Dsdm845.c94 int channels, slot_width; in sdm845_tdm_snd_hw_params() local
98 slot_width = 16; in sdm845_tdm_snd_hw_params()
109 8, slot_width); in sdm845_tdm_snd_hw_params()
125 8, slot_width); in sdm845_tdm_snd_hw_params()
147 slot_width); in sdm845_tdm_snd_hw_params()
159 slot_width); in sdm845_tdm_snd_hw_params()

12345