/Linux-v4.19/sound/soc/sti/ |
D | sti_uniperif.c | 125 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()
|
D | uniperif_reader.c | 84 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()
|
D | uniperif_player.c | 419 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/ |
D | bcm2835-i2s.c | 127 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/ |
D | adau1977.c | 128 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 …]
|
D | ak5558.c | 32 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()
|
D | ak4458.c | 34 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()
|
D | max98373.c | 305 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()
|
D | mc13783.c | 309 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()
|
D | max98927.c | 408 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()
|
D | tlv320aic3x.c | 83 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/ |
D | axg-tdm-interface.c | 37 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()
|
D | axg-tdm.h | 35 unsigned int slot_width; member 76 unsigned int slot_width);
|
D | axg-card.c | 26 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/ |
D | davinci-mcasp.c | 85 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/ |
D | fsl_sai.c | 127 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()
|
D | fsl_esai.c | 55 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()
|
D | fsl_ssi.c | 271 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()
|
D | fsl-asoc-card.c | 64 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/ |
D | sdm845.c | 32 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/ |
D | ux500_msp_dai.c | 586 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()
|
D | ux500_msp_dai.h | 58 int slot_width; member
|
/Linux-v4.19/sound/soc/stm/ |
D | stm32_sai_sub.c | 125 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/ |
D | simple_card_utils.h | 23 int slot_width; member 97 &(dai)->slot_width);
|
D | soc-dai.h | 129 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width); 169 int slots, int slot_width);
|