Home
last modified time | relevance | path

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

1234

/Linux-v5.10/sound/soc/codecs/
Dpcm3168a.c57 int slot_width; member
425 int slot_width) in pcm3168a_set_tdm_slot() argument
438 if (slot_width && in pcm3168a_set_tdm_slot()
439 (slot_width != 16 && slot_width != 24 && slot_width != 32 )) { in pcm3168a_set_tdm_slot()
441 slot_width); in pcm3168a_set_tdm_slot()
446 io_params->slot_width = slot_width; in pcm3168a_set_tdm_slot()
469 int i, slot_width; in pcm3168a_hw_params() local
500 if (io_params->slot_width) in pcm3168a_hw_params()
501 slot_width = io_params->slot_width; in pcm3168a_hw_params()
503 slot_width = params_width(params); in pcm3168a_hw_params()
[all …]
Dadau1977.c127 unsigned int slot_width; member
299 unsigned int slot_width; in adau1977_hw_params() local
338 slot_width = 16; in adau1977_hw_params()
343 slot_width = 32; in adau1977_hw_params()
350 if (adau1977->slot_width) in adau1977_hw_params()
351 slot_width = adau1977->slot_width; in adau1977_hw_params()
353 if (slot_width == 16) in adau1977_hw_params()
507 adau1977->slot_width = 0; in adau1977_set_tdm_slot()
595 adau1977->slot_width = width; in adau1977_set_tdm_slot()
709 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.c40 int slot_width; member
139 int pcm_width = max(params_physical_width(params), ak5558->slot_width); in ak5558_hw_params()
196 int slot_width) in ak5558_set_tdm_slot() argument
203 ak5558->slot_width = slot_width; in ak5558_set_tdm_slot()
205 switch (slots * slot_width) { in ak5558_set_tdm_slot()
Dmax98373-i2c.c315 int slots, int slot_width) in max98373_dai_tdm_slot() argument
324 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98373_dai_tdm_slot()
330 bsel = max98373_get_bclk_sel(slots * slot_width); in max98373_dai_tdm_slot()
333 slots * slot_width); in max98373_dai_tdm_slot()
343 switch (slot_width) { in max98373_dai_tdm_slot()
355 slot_width); in max98373_dai_tdm_slot()
Dak4458.c54 int slot_width; member
335 int pcm_width = max(params_physical_width(params), ak4458->slot_width); in ak4458_hw_params()
502 unsigned int rx_mask, int slots, int slot_width) in ak4458_set_tdm_slot() argument
509 ak4458->slot_width = slot_width; in ak4458_set_tdm_slot()
511 switch (slots * slot_width) { in ak4458_set_tdm_slot()
Dmc13783.c296 int slot_width) in mc13783_set_tdm_slot_dac() argument
341 int slot_width) in mc13783_set_tdm_slot_codec() argument
363 int slot_width) in mc13783_set_tdm_slot_sync() argument
368 slot_width); in mc13783_set_tdm_slot_sync()
373 slot_width); in mc13783_set_tdm_slot_sync()
Dmax98390.c387 int slots, int slot_width) in max98390_dai_tdm_slot() argument
396 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98390_dai_tdm_slot()
405 bsel = max98390_get_bclk_sel(slots * slot_width); in max98390_dai_tdm_slot()
408 slots * slot_width); in max98390_dai_tdm_slot()
418 switch (slot_width) { in max98390_dai_tdm_slot()
430 slot_width); in max98390_dai_tdm_slot()
Dtlv320adcx140.c37 unsigned int slot_width; member
791 int slots, int slot_width) in adcx140_set_dai_tdm_slot() argument
804 switch (slot_width) { in adcx140_set_dai_tdm_slot()
811 dev_err(component->dev, "Unsupported slot width %d\n", slot_width); in adcx140_set_dai_tdm_slot()
816 adcx140->slot_width = slot_width; in adcx140_set_dai_tdm_slot()
/Linux-v5.10/sound/soc/sti/
Dsti_uniperif.c125 int slot_width) in sti_uniperiph_set_tdm_slot() argument
138 uni->tdm_slot.slot_width = slot_width; in sti_uniperiph_set_tdm_slot()
150 frame_size = uni->tdm_slot.avail_slots * uni->tdm_slot.slot_width / 8; in sti_uniperiph_set_tdm_slot()
185 switch (uni->tdm_slot.slot_width) { in sti_uniperiph_fix_tdm_format()
194 uni->tdm_slot.slot_width); in sti_uniperiph_fix_tdm_format()
212 int slot_width = uni->tdm_slot.slot_width / 8; in sti_uniperiph_get_tdm_word_pos() local
228 word16_pos[j] = i * slot_width; in sti_uniperiph_get_tdm_word_pos()
230 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()
Duniperif_player.c419 int output_frame_size, slot_width, clk_div; in uni_player_prepare_pcm() local
424 slot_width = 32; in uni_player_prepare_pcm()
426 slot_width = snd_pcm_format_width(runtime->format); in uni_player_prepare_pcm()
428 output_frame_size = slot_width * runtime->channels; in uni_player_prepare_pcm()
435 if ((slot_width == 32) && (clk_div % 128)) { in uni_player_prepare_pcm()
440 if ((slot_width == 16) && (clk_div % 64)) { in uni_player_prepare_pcm()
449 switch (slot_width) { in uni_player_prepare_pcm()
/Linux-v5.10/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-v5.10/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-v5.10/sound/soc/ti/
Ddavinci-mcasp.c88 int slot_width; member
639 mcasp->slot_width = div / mcasp->tdm_slots; in __davinci_mcasp_set_clkdiv()
753 int slots, int slot_width) in davinci_mcasp_set_tdm_slot() argument
759 __func__, tx_mask, rx_mask, slots, slot_width); in davinci_mcasp_set_tdm_slot()
768 if (slot_width && in davinci_mcasp_set_tdm_slot()
769 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) { in davinci_mcasp_set_tdm_slot()
771 __func__, slot_width); in davinci_mcasp_set_tdm_slot()
778 mcasp->slot_width = slot_width; in davinci_mcasp_set_tdm_slot()
787 u32 tx_rotate, rx_rotate, slot_width; in davinci_config_channel_size() local
790 if (mcasp->slot_width) in davinci_config_channel_size()
[all …]
/Linux-v5.10/include/sound/
Dsimple_card_utils.h24 int slot_width; member
111 &(dai)->slot_width);
161 if (dai->slot_width) in asoc_simple_debug_dai()
162 dev_dbg(dev, "%s slot width = %d\n", name, dai->slot_width); in asoc_simple_debug_dai()
/Linux-v5.10/sound/soc/sunxi/
Dsun4i-i2s.c179 unsigned int slot_width; member
300 unsigned int slot_width) in sun4i_i2s_set_clk_rate() argument
347 rate, slots, slot_width); in sun4i_i2s_set_clk_rate()
483 unsigned int slot_width = params_physical_width(params); in sun4i_i2s_hw_params() local
492 if (i2s->slot_width) in sun4i_i2s_hw_params()
493 slot_width = i2s->slot_width; in sun4i_i2s_hw_params()
516 wss = i2s->variant->get_wss(i2s, slot_width); in sun4i_i2s_hw_params()
524 slots, slot_width); in sun4i_i2s_hw_params()
839 int slots, int slot_width) in sun4i_i2s_set_tdm_slot() argument
847 i2s->slot_width = slot_width; in sun4i_i2s_set_tdm_slot()
/Linux-v5.10/sound/soc/fsl/
Dfsl_ssi.c260 unsigned int slot_width; member
684 unsigned int slot_width = params_width(hw_params); in fsl_ssi_set_bclk() local
694 if (ssi->slot_width) in fsl_ssi_set_bclk()
695 slot_width = ssi->slot_width; in fsl_ssi_set_bclk()
700 slot_width = 32; in fsl_ssi_set_bclk()
703 freq = slots * slot_width * params_rate(hw_params); in fsl_ssi_set_bclk()
1029 u32 rx_mask, int slots, int slot_width) in fsl_ssi_set_dai_tdm_slot() argument
1036 if (slot_width & 1 || slot_width < 8 || slot_width > 24) { in fsl_ssi_set_dai_tdm_slot()
1037 dev_err(dai->dev, "invalid slot width: %d\n", slot_width); in fsl_ssi_set_dai_tdm_slot()
1063 ssi->slot_width = slot_width; in fsl_ssi_set_dai_tdm_slot()
Dfsl_sai.c148 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot() argument
153 sai->slot_width = slot_width; in fsl_sai_set_dai_tdm_slot()
444 u32 slot_width = word_width; in fsl_sai_hw_params() local
452 if (sai->slot_width) in fsl_sai_hw_params()
453 slot_width = sai->slot_width; in fsl_sai_hw_params()
464 slots * slot_width * in fsl_sai_hw_params()
480 val_cr4 |= FSL_SAI_CR4_SYWD(slot_width); in fsl_sai_hw_params()
482 val_cr5 |= FSL_SAI_CR5_WNW(slot_width); in fsl_sai_hw_params()
483 val_cr5 |= FSL_SAI_CR5_W0W(slot_width); in fsl_sai_hw_params()
Dfsl_esai.c74 u32 slot_width; member
410 u32 rx_mask, int slots, int slot_width) in fsl_esai_set_dai_tdm_slot() argument
420 esai_priv->slot_width = slot_width; in fsl_esai_set_dai_tdm_slot()
547 u32 slot_width = width; in fsl_esai_hw_params() local
552 if (esai_priv->slot_width) in fsl_esai_hw_params()
553 slot_width = esai_priv->slot_width; in fsl_esai_hw_params()
555 bclk = params_rate(params) * slot_width * esai_priv->slots; in fsl_esai_hw_params()
562 val = ESAI_xCR_xSWS(slot_width, width); in fsl_esai_hw_params()
/Linux-v5.10/sound/soc/qcom/
Dsdm845.c93 int channels, slot_width; in sdm845_tdm_snd_hw_params() local
97 slot_width = 16; in sdm845_tdm_snd_hw_params()
108 8, slot_width); in sdm845_tdm_snd_hw_params()
124 8, slot_width); in sdm845_tdm_snd_hw_params()
146 slot_width); in sdm845_tdm_snd_hw_params()
158 slot_width); in sdm845_tdm_snd_hw_params()
/Linux-v5.10/sound/soc/ux500/
Dux500_msp_dai.c583 int slots, int slot_width) in ux500_msp_dai_set_tdm_slot() argument
608 if (!(slot_width == 16)) { in ux500_msp_dai_set_tdm_slot()
610 __func__, slot_width); in ux500_msp_dai_set_tdm_slot()
613 drvdata->slot_width = slot_width; in ux500_msp_dai_set_tdm_slot()
698 drvdata->msp->playback_dma_data.data_size = drvdata->slot_width; in ux500_msp_dai_probe()
699 drvdata->msp->capture_dma_data.data_size = drvdata->slot_width; in ux500_msp_dai_probe()
760 drvdata->slot_width = 16; in ux500_msp_drv_probe()
/Linux-v5.10/sound/soc/stm/
Dstm32_sai_sub.c123 int slot_width; member
595 u32 rx_mask, int slots, int slot_width) in stm32_sai_set_dai_tdm_slot() argument
606 tx_mask, rx_mask, slots, slot_width); in stm32_sai_set_dai_tdm_slot()
608 switch (slot_width) { in stm32_sai_set_dai_tdm_slot()
639 sai->slot_width = slot_width; in stm32_sai_set_dai_tdm_slot()
871 sai->slot_width = sai->data_size; in stm32_sai_set_slots()
873 if (sai->slot_width < sai->data_size) { in stm32_sai_set_slots()
898 sai->slots, sai->slot_width); in stm32_sai_set_slots()
910 sai->fs_length = sai->slot_width * sai->slots; in stm32_sai_set_frame()
927 offset = sai->slot_width - sai->data_size; in stm32_sai_set_frame()

1234