Home
last modified time | relevance | path

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

1234

/Linux-v4.19/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-v4.19/sound/soc/bcm/
Dbcm2835-i2s.c127 unsigned int slot_width; member
251 dev->slot_width = ratio / 2; in bcm2835_i2s_set_dai_bclk_ratio()
287 dev->slot_width = width; in bcm2835_i2s_set_dai_tdm_slot()
343 unsigned int slots, slot_width, odd_slot_offset; in bcm2835_i2s_hw_params() local
370 slot_width = dev->slot_width; in bcm2835_i2s_hw_params()
377 slot_width = params_width(params); in bcm2835_i2s_hw_params()
391 if (data_length > slot_width) in bcm2835_i2s_hw_params()
486 data_delay = slot_width - data_length; in bcm2835_i2s_hw_params()
505 rx_mask, slot_width, data_delay, odd_slot_offset); in bcm2835_i2s_hw_params()
507 tx_mask, slot_width, data_delay, odd_slot_offset); in bcm2835_i2s_hw_params()
[all …]
/Linux-v4.19/sound/soc/codecs/
Dadau1977.c128 unsigned int slot_width; member
300 unsigned int slot_width; in adau1977_hw_params() local
339 slot_width = 16; in adau1977_hw_params()
344 slot_width = 32; in adau1977_hw_params()
351 if (adau1977->slot_width) in adau1977_hw_params()
352 slot_width = adau1977->slot_width; in adau1977_hw_params()
354 if (slot_width == 16) in adau1977_hw_params()
508 adau1977->slot_width = 0; in adau1977_set_tdm_slot()
596 adau1977->slot_width = width; in adau1977_set_tdm_slot()
710 if (adau1977->slot_width == 16) in adau1977_startup()
[all …]
Dak5558.c32 int slot_width; member
131 int pcm_width = max(params_physical_width(params), ak5558->slot_width); in ak5558_hw_params()
195 int slot_width) in ak5558_set_tdm_slot() argument
202 ak5558->slot_width = slot_width; in ak5558_set_tdm_slot()
204 switch (slots * slot_width) { in ak5558_set_tdm_slot()
Dak4458.c34 int slot_width; member
284 int pcm_width = max(params_physical_width(params), ak4458->slot_width); in ak4458_hw_params()
399 unsigned int rx_mask, int slots, int slot_width) in ak4458_set_tdm_slot() argument
406 ak4458->slot_width = slot_width; in ak4458_set_tdm_slot()
408 switch (slots * slot_width) { in ak4458_set_tdm_slot()
Dmax98373.c305 int slots, int slot_width) in max98373_dai_tdm_slot() argument
314 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98373_dai_tdm_slot()
320 bsel = max98373_get_bclk_sel(slots * slot_width); in max98373_dai_tdm_slot()
323 slots * slot_width); in max98373_dai_tdm_slot()
333 switch (slot_width) { in max98373_dai_tdm_slot()
345 slot_width); in max98373_dai_tdm_slot()
Dmc13783.c309 int slot_width) in mc13783_set_tdm_slot_dac() argument
354 int slot_width) in mc13783_set_tdm_slot_codec() argument
376 int slot_width) in mc13783_set_tdm_slot_sync() argument
381 slot_width); in mc13783_set_tdm_slot_sync()
386 slot_width); in mc13783_set_tdm_slot_sync()
Dmax98927.c408 int slots, int slot_width) in max98927_dai_tdm_slot() argument
418 bsel = max98927_get_bclk_sel(slots * slot_width); in max98927_dai_tdm_slot()
421 slots * slot_width); in max98927_dai_tdm_slot()
431 switch (slot_width) { in max98927_dai_tdm_slot()
443 slot_width); in max98927_dai_tdm_slot()
Dtlv320aic3x.c83 unsigned int slot_width; member
1044 int width = aic3x->slot_width; in aic3x_hw_params()
1193 int width = aic3x->slot_width; in aic3x_prepare()
1300 int slots, int slot_width) in aic3x_set_dai_tdm_slot() argument
1323 switch (slot_width) { in aic3x_set_dai_tdm_slot()
1330 dev_err(component->dev, "Unsupported slot width %d\n", slot_width); in aic3x_set_dai_tdm_slot()
1336 aic3x->slot_width = slot_width; in aic3x_set_dai_tdm_slot()
/Linux-v4.19/sound/soc/meson/
Daxg-tdm-interface.c37 unsigned int slot_width) in axg_tdm_set_tdm_slots() argument
71 switch (slot_width) { in axg_tdm_set_tdm_slots()
74 iface->slot_width = 32; in axg_tdm_set_tdm_slots()
80 iface->slot_width = slot_width; in axg_tdm_set_tdm_slots()
83 dev_err(dai->dev, "unsupported slot width: %d\n", slot_width); in axg_tdm_set_tdm_slots()
176 if (iface->slot_width < width) { in axg_tdm_iface_set_stream()
251 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.c26 unsigned int slot_width; member
204 be->slots, be->slot_width); in axg_card_tdm_dai_init()
213 be->slots, be->slot_width); in axg_card_tdm_dai_init()
231 be->slots, be->slot_width); in axg_card_tdm_dai_lb_init()
368 of_property_read_u32(node, "dai-tdm-slot-width", &be->slot_width); in axg_card_parse_cpu_tdm_slots()
/Linux-v4.19/sound/soc/davinci/
Ddavinci-mcasp.c85 int slot_width; member
567 mcasp->slot_width = div / mcasp->tdm_slots; in __davinci_mcasp_set_clkdiv()
660 int slots, int slot_width) in davinci_mcasp_set_tdm_slot() argument
666 __func__, tx_mask, rx_mask, slots, slot_width); in davinci_mcasp_set_tdm_slot()
675 if (slot_width && in davinci_mcasp_set_tdm_slot()
676 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) { in davinci_mcasp_set_tdm_slot()
678 __func__, slot_width); in davinci_mcasp_set_tdm_slot()
685 mcasp->slot_width = slot_width; in davinci_mcasp_set_tdm_slot()
696 u32 slot_width = sample_width; in davinci_config_channel_size() local
715 if (mcasp->slot_width) { in davinci_config_channel_size()
[all …]
/Linux-v4.19/sound/soc/fsl/
Dfsl_sai.c127 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot() argument
132 sai->slot_width = slot_width; in fsl_sai_set_dai_tdm_slot()
407 u32 slot_width = word_width; in fsl_sai_hw_params() local
413 if (sai->slot_width) in fsl_sai_hw_params()
414 slot_width = sai->slot_width; in fsl_sai_hw_params()
418 slots * slot_width * params_rate(params)); in fsl_sai_hw_params()
433 val_cr4 |= FSL_SAI_CR4_SYWD(slot_width); in fsl_sai_hw_params()
435 val_cr5 |= FSL_SAI_CR5_WNW(slot_width); in fsl_sai_hw_params()
436 val_cr5 |= FSL_SAI_CR5_W0W(slot_width); in fsl_sai_hw_params()
Dfsl_esai.c55 u32 slot_width; member
357 u32 rx_mask, int slots, int slot_width) in fsl_esai_set_dai_tdm_slot() argument
377 esai_priv->slot_width = slot_width; in fsl_esai_set_dai_tdm_slot()
535 u32 slot_width = width; in fsl_esai_hw_params() local
540 if (esai_priv->slot_width) in fsl_esai_hw_params()
541 slot_width = esai_priv->slot_width; in fsl_esai_hw_params()
543 bclk = params_rate(params) * slot_width * esai_priv->slots; in fsl_esai_hw_params()
565 val = ESAI_xCR_xSWS(slot_width, width) | (tx ? ESAI_xCR_PADC : 0); in fsl_esai_hw_params()
Dfsl_ssi.c271 unsigned int slot_width; member
682 unsigned int slot_width = 32; in fsl_ssi_set_bclk() local
692 if (ssi->slot_width && slots != 2) in fsl_ssi_set_bclk()
693 slot_width = ssi->slot_width; in fsl_ssi_set_bclk()
696 freq = slots * slot_width * params_rate(hw_params); in fsl_ssi_set_bclk()
1012 u32 rx_mask, int slots, int slot_width) in fsl_ssi_set_dai_tdm_slot() argument
1019 if (slot_width & 1 || slot_width < 8 || slot_width > 24) { in fsl_ssi_set_dai_tdm_slot()
1020 dev_err(dai->dev, "invalid slot width: %d\n", slot_width); in fsl_ssi_set_dai_tdm_slot()
1046 ssi->slot_width = slot_width; in fsl_ssi_set_dai_tdm_slot()
Dfsl-asoc-card.c64 u32 slot_width; member
170 if (cpu_priv->slot_width) { in fsl_asoc_card_hw_params()
172 cpu_priv->slot_width); in fsl_asoc_card_hw_params()
534 priv->cpu_priv.slot_width = 32; in fsl_asoc_card_probe()
/Linux-v4.19/sound/soc/qcom/
Dsdm845.c32 int channels, slot_width; in sdm845_tdm_snd_hw_params() local
36 slot_width = 32; in sdm845_tdm_snd_hw_params()
47 8, slot_width); in sdm845_tdm_snd_hw_params()
63 8, slot_width); in sdm845_tdm_snd_hw_params()
/Linux-v4.19/sound/soc/ux500/
Dux500_msp_dai.c586 int slots, int slot_width) in ux500_msp_dai_set_tdm_slot() argument
611 if (!(slot_width == 16)) { in ux500_msp_dai_set_tdm_slot()
613 __func__, slot_width); in ux500_msp_dai_set_tdm_slot()
616 drvdata->slot_width = slot_width; in ux500_msp_dai_set_tdm_slot()
701 drvdata->msp->playback_dma_data.data_size = drvdata->slot_width; in ux500_msp_dai_probe()
702 drvdata->msp->capture_dma_data.data_size = drvdata->slot_width; in ux500_msp_dai_probe()
765 drvdata->slot_width = 16; in ux500_msp_drv_probe()
Dux500_msp_dai.h58 int slot_width; member
/Linux-v4.19/sound/soc/stm/
Dstm32_sai_sub.c125 int slot_width; member
330 u32 rx_mask, int slots, int slot_width) in stm32_sai_set_dai_tdm_slot() argument
341 tx_mask, rx_mask, slots, slot_width); in stm32_sai_set_dai_tdm_slot()
343 switch (slot_width) { in stm32_sai_set_dai_tdm_slot()
374 sai->slot_width = slot_width; in stm32_sai_set_dai_tdm_slot()
596 sai->slot_width = sai->data_size; in stm32_sai_set_slots()
598 if (sai->slot_width < sai->data_size) { in stm32_sai_set_slots()
623 sai->slots, sai->slot_width); in stm32_sai_set_slots()
635 sai->fs_length = sai->slot_width * sai->slots; in stm32_sai_set_frame()
652 offset = sai->slot_width - sai->data_size; in stm32_sai_set_frame()
/Linux-v4.19/include/sound/
Dsimple_card_utils.h23 int slot_width; member
97 &(dai)->slot_width);
Dsoc-dai.h129 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width);
169 int slots, int slot_width);

1234