| /Linux-v5.4/sound/soc/codecs/ |
| D | pcm3168a.c | 55 int slot_width; member 384 int slot_width) in pcm3168a_set_tdm_slot() argument 397 if (slot_width && in pcm3168a_set_tdm_slot() 398 (slot_width != 16 && slot_width != 24 && slot_width != 32 )) { in pcm3168a_set_tdm_slot() 400 slot_width); in pcm3168a_set_tdm_slot() 405 io_params->slot_width = slot_width; in pcm3168a_set_tdm_slot() 426 int i, slot_width; in pcm3168a_hw_params() local 457 if (io_params->slot_width) in pcm3168a_hw_params() 458 slot_width = io_params->slot_width; in pcm3168a_hw_params() 460 slot_width = params_width(params); in pcm3168a_hw_params() [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() 188 int slot_width) in ak5558_set_tdm_slot() argument 195 ak5558->slot_width = slot_width; in ak5558_set_tdm_slot() 197 switch (slots * slot_width) { in ak5558_set_tdm_slot()
|
| D | adau1977.c | 127 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 …]
|
| D | ak4458.c | 39 int slot_width; member 319 int pcm_width = max(params_physical_width(params), ak4458->slot_width); in ak4458_hw_params() 434 unsigned int rx_mask, int slots, int slot_width) in ak4458_set_tdm_slot() argument 441 ak4458->slot_width = slot_width; in ak4458_set_tdm_slot() 443 switch (slots * slot_width) { in ak4458_set_tdm_slot()
|
| D | mc13783.c | 296 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()
|
| D | max98373.c | 313 int slots, int slot_width) in max98373_dai_tdm_slot() argument 322 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98373_dai_tdm_slot() 328 bsel = max98373_get_bclk_sel(slots * slot_width); in max98373_dai_tdm_slot() 331 slots * slot_width); in max98373_dai_tdm_slot() 341 switch (slot_width) { in max98373_dai_tdm_slot() 353 slot_width); in max98373_dai_tdm_slot()
|
| D | max98927.c | 404 int slots, int slot_width) in max98927_dai_tdm_slot() argument 414 bsel = max98927_get_bclk_sel(slots * slot_width); in max98927_dai_tdm_slot() 417 slots * slot_width); in max98927_dai_tdm_slot() 427 switch (slot_width) { in max98927_dai_tdm_slot() 439 slot_width); in max98927_dai_tdm_slot()
|
| D | tlv320aic3x.c | 80 unsigned int slot_width; member 1053 int width = aic3x->slot_width; in aic3x_hw_params() 1202 int width = aic3x->slot_width; in aic3x_prepare() 1319 int slots, int slot_width) in aic3x_set_dai_tdm_slot() argument 1342 switch (slot_width) { in aic3x_set_dai_tdm_slot() 1349 dev_err(component->dev, "Unsupported slot width %d\n", slot_width); in aic3x_set_dai_tdm_slot() 1355 aic3x->slot_width = slot_width; in aic3x_set_dai_tdm_slot()
|
| /Linux-v5.4/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-v5.4/sound/soc/bcm/ |
| D | bcm2835-i2s.c | 119 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.4/sound/soc/meson/ |
| D | axg-tdm-interface.c | 37 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() 184 if (iface->slot_width < width) { in axg_tdm_iface_set_stream() 259 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 217 be->slots, be->slot_width); in axg_card_tdm_dai_init() 226 be->slots, be->slot_width); in axg_card_tdm_dai_init() 244 be->slots, be->slot_width); in axg_card_tdm_dai_lb_init() 391 of_property_read_u32(node, "dai-tdm-slot-width", &be->slot_width); in axg_card_parse_cpu_tdm_slots()
|
| /Linux-v5.4/sound/soc/ti/ |
| D | davinci-mcasp.c | 87 int slot_width; member 638 mcasp->slot_width = div / mcasp->tdm_slots; in __davinci_mcasp_set_clkdiv() 731 int slots, int slot_width) in davinci_mcasp_set_tdm_slot() argument 737 __func__, tx_mask, rx_mask, slots, slot_width); in davinci_mcasp_set_tdm_slot() 746 if (slot_width && in davinci_mcasp_set_tdm_slot() 747 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) { in davinci_mcasp_set_tdm_slot() 749 __func__, slot_width); in davinci_mcasp_set_tdm_slot() 756 mcasp->slot_width = slot_width; in davinci_mcasp_set_tdm_slot() 765 u32 tx_rotate, rx_rotate, slot_width; in davinci_config_channel_size() local 768 if (mcasp->slot_width) in davinci_config_channel_size() [all …]
|
| /Linux-v5.4/sound/soc/qcom/ |
| D | sdm845.c | 45 int channels, slot_width; in sdm845_tdm_snd_hw_params() local 49 slot_width = 16; in sdm845_tdm_snd_hw_params() 60 8, slot_width); in sdm845_tdm_snd_hw_params() 76 8, slot_width); in sdm845_tdm_snd_hw_params() 99 slot_width); in sdm845_tdm_snd_hw_params() 111 slot_width); in sdm845_tdm_snd_hw_params()
|
| /Linux-v5.4/include/sound/ |
| D | simple_card_utils.h | 23 int slot_width; member 110 &(dai)->slot_width); 160 if (dai->slot_width) in asoc_simple_debug_dai() 161 dev_dbg(dev, "%s slot width = %d\n", name, dai->slot_width); in asoc_simple_debug_dai()
|
| /Linux-v5.4/sound/soc/sunxi/ |
| D | sun4i-i2s.c | 171 unsigned int slot_width; member 292 unsigned int slot_width) in sun4i_i2s_set_clk_rate() argument 339 rate, slots, slot_width); in sun4i_i2s_set_clk_rate() 475 unsigned int slot_width = params_physical_width(params); in sun4i_i2s_hw_params() local 484 if (i2s->slot_width) in sun4i_i2s_hw_params() 485 slot_width = i2s->slot_width; in sun4i_i2s_hw_params() 508 wss = i2s->variant->get_wss(i2s, slot_width); in sun4i_i2s_hw_params() 516 slots, slot_width); in sun4i_i2s_hw_params() 831 int slots, int slot_width) in sun4i_i2s_set_tdm_slot() argument 839 i2s->slot_width = slot_width; in sun4i_i2s_set_tdm_slot()
|
| /Linux-v5.4/sound/soc/fsl/ |
| D | fsl_sai.c | 130 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot() argument 135 sai->slot_width = slot_width; in fsl_sai_set_dai_tdm_slot() 426 u32 slot_width = word_width; in fsl_sai_hw_params() local 432 if (sai->slot_width) in fsl_sai_hw_params() 433 slot_width = sai->slot_width; in fsl_sai_hw_params() 442 slots * slot_width * in fsl_sai_hw_params() 458 val_cr4 |= FSL_SAI_CR4_SYWD(slot_width); in fsl_sai_hw_params() 460 val_cr5 |= FSL_SAI_CR5_WNW(slot_width); in fsl_sai_hw_params() 461 val_cr5 |= FSL_SAI_CR5_W0W(slot_width); in fsl_sai_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_esai.c | 60 u32 slot_width; member 374 u32 rx_mask, int slots, int slot_width) in fsl_esai_set_dai_tdm_slot() argument 384 esai_priv->slot_width = slot_width; in fsl_esai_set_dai_tdm_slot() 511 u32 slot_width = width; in fsl_esai_hw_params() local 516 if (esai_priv->slot_width) in fsl_esai_hw_params() 517 slot_width = esai_priv->slot_width; in fsl_esai_hw_params() 519 bclk = params_rate(params) * slot_width * esai_priv->slots; in fsl_esai_hw_params() 526 val = ESAI_xCR_xSWS(slot_width, width); in fsl_esai_hw_params()
|
| /Linux-v5.4/sound/soc/ux500/ |
| D | ux500_msp_dai.c | 583 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() 762 drvdata->slot_width = 16; in ux500_msp_drv_probe()
|
| D | ux500_msp_dai.h | 55 int slot_width; member
|
| /Linux-v5.4/sound/soc/stm/ |
| D | stm32_sai_sub.c | 122 int slot_width; member 544 u32 rx_mask, int slots, int slot_width) in stm32_sai_set_dai_tdm_slot() argument 555 tx_mask, rx_mask, slots, slot_width); in stm32_sai_set_dai_tdm_slot() 557 switch (slot_width) { in stm32_sai_set_dai_tdm_slot() 588 sai->slot_width = slot_width; in stm32_sai_set_dai_tdm_slot() 820 sai->slot_width = sai->data_size; in stm32_sai_set_slots() 822 if (sai->slot_width < sai->data_size) { in stm32_sai_set_slots() 847 sai->slots, sai->slot_width); in stm32_sai_set_slots() 859 sai->fs_length = sai->slot_width * sai->slots; in stm32_sai_set_frame() 876 offset = sai->slot_width - sai->data_size; in stm32_sai_set_frame()
|