Home
last modified time | relevance | path

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

123456

/linux-6.12.1/sound/soc/codecs/
Dpcm3168a.c54 int slot_width; member
402 int slot_width) in pcm3168a_set_tdm_slot() argument
415 if (slot_width && in pcm3168a_set_tdm_slot()
416 (slot_width != 16 && slot_width != 24 && slot_width != 32 )) { in pcm3168a_set_tdm_slot()
418 slot_width); in pcm3168a_set_tdm_slot()
423 io_params->slot_width = slot_width; in pcm3168a_set_tdm_slot()
445 int i, num_scki_ratios, slot_width; in pcm3168a_hw_params() local
483 if (io_params->slot_width) in pcm3168a_hw_params()
484 slot_width = io_params->slot_width; in pcm3168a_hw_params()
486 slot_width = params_width(params); in pcm3168a_hw_params()
[all …]
Drtq9128.c462 unsigned int rx_mask, int slots, int slot_width) in rtq9128_dai_set_tdm_slot() argument
471 slot_width, tx_mask, rx_mask); in rtq9128_dai_set_tdm_slot()
473 if (slots <= 0 || slot_width <= 0 || slot_width % 8) { in rtq9128_dai_set_tdm_slot()
474 dev_err(dev, "Invalid slot numbers (%d) or width (%d)\n", slots, slot_width); in rtq9128_dai_set_tdm_slot()
479 frame_length = slots * slot_width; in rtq9128_dai_set_tdm_slot()
492 start_loc = (ffs(mask) - 1) * slot_width / 8; in rtq9128_dai_set_tdm_slot()
503 start_loc = (ffs(mask) - 1) * slot_width / 8; in rtq9128_dai_set_tdm_slot()
522 data->tdm_slot_width = slot_width; in rtq9128_dai_set_tdm_slot()
531 unsigned int width, slot_width, bitrate, audbit, dolen; in rtq9128_dai_hw_params() local
585 slot_width = params_physical_width(param); in rtq9128_dai_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
230 int slot_width) in adau7118_set_tdm_slot() argument
237 dev_dbg(st->dev, "Set tdm, slots:%d width:%d\n", slots, slot_width); in adau7118_set_tdm_slot()
239 switch (slot_width) { in adau7118_set_tdm_slot()
250 dev_err(st->dev, "Invalid slot width:%d\n", slot_width); in adau7118_set_tdm_slot()
260 st->slot_width = slot_width; in adau7118_set_tdm_slot()
287 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()
Dmax98373-i2c.c319 int slots, int slot_width) in max98373_dai_tdm_slot() argument
328 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98373_dai_tdm_slot()
334 bsel = max98373_get_bclk_sel(slots * slot_width); in max98373_dai_tdm_slot()
337 slots * slot_width); in max98373_dai_tdm_slot()
347 switch (slot_width) { in max98373_dai_tdm_slot()
359 slot_width); in max98373_dai_tdm_slot()
Dadau1372.c34 unsigned int slot_width; member
642 unsigned int slot_width; in adau1372_hw_params() local
656 slot_width = adau1372->slot_width; in adau1372_hw_params()
657 if (slot_width == 0) in adau1372_hw_params()
658 slot_width = params_width(params); in adau1372_hw_params()
660 switch (slot_width) { in adau1372_hw_params()
690 adau1372->slot_width = 0; in adau1372_set_tdm_slot()
730 adau1372->slot_width = width; in adau1372_set_tdm_slot()
Dmax98520.c264 int slots, int slot_width) in max98520_dai_tdm_slot() argument
272 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98520_dai_tdm_slot()
278 bsel = max98520_get_bclk_sel(slots * slot_width); in max98520_dai_tdm_slot()
281 slots * slot_width); in max98520_dai_tdm_slot()
291 switch (slot_width) { in max98520_dai_tdm_slot()
303 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.12.1/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.c97 unsigned int slot_width; member
253 int slots, int slot_width) in akcodec_get_mclk_rate() argument
259 unsigned int width = slots * slot_width; in akcodec_get_mclk_rate()
302 unsigned int slots, slot_width; in imx_aif_hw_params() local
306 slot_width = link_data->slot_width; in imx_aif_hw_params()
311 slot_width = params_width(params); in imx_aif_hw_params()
316 slot_width = params_physical_width(params); in imx_aif_hw_params()
330 slots, slot_width); in imx_aif_hw_params()
346 slots, slot_width); in imx_aif_hw_params()
355 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()
Dfsl_esai.c72 u32 slot_width; member
405 u32 rx_mask, int slots, int slot_width) in fsl_esai_set_dai_tdm_slot() argument
415 esai_priv->slot_width = slot_width; in fsl_esai_set_dai_tdm_slot()
544 u32 slot_width = width; in fsl_esai_hw_params() local
549 if (esai_priv->slot_width) in fsl_esai_hw_params()
550 slot_width = esai_priv->slot_width; in fsl_esai_hw_params()
552 bclk = params_rate(params) * slot_width * esai_priv->slots; in fsl_esai_hw_params()
559 val = ESAI_xCR_xSWS(slot_width, width); in fsl_esai_hw_params()
/linux-6.12.1/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.12.1/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.12.1/sound/soc/meson/
Daxg-tdm-interface.c40 unsigned int slot_width) in axg_tdm_set_tdm_slots() argument
59 switch (slot_width) { in axg_tdm_set_tdm_slots()
61 slot_width = 32; in axg_tdm_set_tdm_slots()
77 dev_err(dai->dev, "unsupported slot width: %d\n", slot_width); in axg_tdm_set_tdm_slots()
81 iface->slot_width = slot_width; in axg_tdm_set_tdm_slots()
168 MAX_SCLK / (iface->slots * iface->slot_width); in axg_tdm_iface_startup()
200 if (iface->slot_width < width) { in axg_tdm_iface_set_stream()
275 srate = iface->slots * iface->slot_width * params_rate(params); in axg_tdm_iface_set_sclk()
Daxg-tdm.h35 unsigned int slot_width; member
81 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()
214 of_property_read_u32(node, "dai-tdm-slot-width", &be->slot_width); in axg_card_parse_cpu_tdm_slots()
/linux-6.12.1/sound/soc/ti/
Ddavinci-i2s.c163 int slot_width; member
243 int slots, int slot_width) in davinci_i2s_set_tdm_slot() argument
247 dev_dbg(dev->dev, "slots %d, slot_width %d\n", slots, slot_width); in davinci_i2s_set_tdm_slot()
266 if (davinci_i2s_tdm_word_length(slot_width) < 0) { in davinci_i2s_set_tdm_slot()
267 dev_err(dev->dev, "%s: Unsupported slot_width %d\n", __func__, slot_width); in davinci_i2s_set_tdm_slot()
272 dev->slot_width = slot_width; in davinci_i2s_set_tdm_slot()
320 if (dev->tdm_slots || dev->slot_width) { in davinci_i2s_set_dai_fmt()
339 if (dev->tdm_slots || dev->slot_width) { in davinci_i2s_set_dai_fmt()
498 if (dev->slot_width) in davinci_i2s_hw_params()
499 mcbsp_word_length = davinci_i2s_tdm_word_length(dev->slot_width); in davinci_i2s_hw_params()
[all …]
Ddavinci-mcasp.c92 int slot_width; member
642 mcasp->slot_width = div / mcasp->tdm_slots; in __davinci_mcasp_set_clkdiv()
756 int slots, int slot_width) in davinci_mcasp_set_tdm_slot() argument
765 __func__, tx_mask, rx_mask, slots, slot_width); in davinci_mcasp_set_tdm_slot()
774 if (slot_width && in davinci_mcasp_set_tdm_slot()
775 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) { in davinci_mcasp_set_tdm_slot()
777 __func__, slot_width); in davinci_mcasp_set_tdm_slot()
784 mcasp->slot_width = slot_width; in davinci_mcasp_set_tdm_slot()
793 u32 tx_rotate, rx_rotate, slot_width; in davinci_config_channel_size() local
796 if (mcasp->slot_width) in davinci_config_channel_size()
[all …]
/linux-6.12.1/sound/soc/sunxi/
Dsun4i-i2s.c207 unsigned int slot_width);
220 unsigned int slot_width; member
341 unsigned int slot_width) in sun4i_i2s_set_clk_rate() argument
388 rate, slots, slot_width); in sun4i_i2s_set_clk_rate()
463 unsigned int slot_width) in sun4i_i2s_set_chan_cfg() argument
482 unsigned int slot_width) in sun8i_i2s_set_chan_cfg() argument
508 lrck_period = slot_width * slots; in sun8i_i2s_set_chan_cfg()
514 lrck_period = slot_width; in sun8i_i2s_set_chan_cfg()
534 unsigned int slot_width) in sun50i_h6_i2s_set_chan_cfg() argument
569 lrck_period = slot_width * slots; in sun50i_h6_i2s_set_chan_cfg()
[all …]
Dsun8i-codec.c206 unsigned int slot_width; member
458 int slots, int slot_width) in sun8i_codec_set_tdm_slot() argument
463 if (slot_width && !is_power_of_2(slot_width)) in sun8i_codec_set_tdm_slot()
467 aif->slot_width = slot_width; in sun8i_codec_set_tdm_slot()
557 unsigned int slot_width) in sun8i_codec_get_lrck_div_order() argument
559 unsigned int div = slots * slot_width; in sun8i_codec_get_lrck_div_order()
580 unsigned int slot_width = aif->slot_width ?: params_width(params); in sun8i_codec_hw_params() local
608 lrck_div_order = sun8i_codec_get_lrck_div_order(slots, slot_width); in sun8i_codec_hw_params()
/linux-6.12.1/include/sound/
Dsimple_card_utils.h22 u16 slot_width; member
30 int slot_width; member
164 &(dai)->slot_width);
224 if (dai->slot_width) in simple_util_debug_dai()
225 dev_dbg(dev, "%s slot width = %d\n", name, dai->slot_width); in simple_util_debug_dai()
/linux-6.12.1/sound/soc/qcom/
Dsdm845.c106 int channels, slot_width; in sdm845_tdm_snd_hw_params() local
110 slot_width = 16; in sdm845_tdm_snd_hw_params()
121 8, slot_width); in sdm845_tdm_snd_hw_params()
137 8, slot_width); in sdm845_tdm_snd_hw_params()
159 slot_width); in sdm845_tdm_snd_hw_params()
171 slot_width); in sdm845_tdm_snd_hw_params()

123456