/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()
|
D | uniperif.h | 1289 int slot_width; member 1398 return (uni->tdm_slot.slots * uni->tdm_slot.slot_width / 8); in sti_uniperiph_get_unip_tdm_frame_size() 1405 int slot_width);
|
/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 | 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 | 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(codec->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()
|
D | cs53l30.c | 771 int slots, int slot_width) in cs53l30_set_dai_tdm_slot() argument 785 if (slots <= 0 || slot_width <= 0 || slot_width > 64) { in cs53l30_set_dai_tdm_slot() 790 if (slot_width & 0x7) { in cs53l30_set_dai_tdm_slot() 796 slot_step = slot_width >> 3; in cs53l30_set_dai_tdm_slot()
|
D | adau17x1.c | 604 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in adau17x1_set_dai_tdm_slot() argument 615 slot_width = 32; in adau17x1_set_dai_tdm_slot() 635 switch (slot_width * slots) { in adau17x1_set_dai_tdm_slot()
|
D | tas2552.c | 449 int slots, int slot_width) in tas2552_set_dai_tdm_slot() argument 467 tas2552->tdm_delay = lsb * slot_width; in tas2552_set_dai_tdm_slot()
|
D | nau8540.c | 454 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in nau8540_set_tdm_slot() argument 465 ctrl2_val = 4 * slot_width; in nau8540_set_tdm_slot()
|
D | max98504.c | 204 int slots, int slot_width) in max98504_set_tdm_slot() argument
|
D | ab8500-codec.c | 2225 int slots, int slot_width) in ab8500_codec_set_dai_tdm_slot() argument 2234 switch (slot_width) { in ab8500_codec_set_dai_tdm_slot() 2249 __func__, slot_width); in ab8500_codec_set_dai_tdm_slot() 2254 __func__, slot_width); in ab8500_codec_set_dai_tdm_slot()
|
/sound/soc/davinci/ |
D | davinci-mcasp.c | 87 int slot_width; member 577 mcasp->slot_width = div / mcasp->tdm_slots; in __davinci_mcasp_set_clkdiv() 670 int slots, int slot_width) in davinci_mcasp_set_tdm_slot() argument 676 __func__, tx_mask, rx_mask, slots, slot_width); in davinci_mcasp_set_tdm_slot() 685 if (slot_width && in davinci_mcasp_set_tdm_slot() 686 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) { in davinci_mcasp_set_tdm_slot() 688 __func__, slot_width); in davinci_mcasp_set_tdm_slot() 695 mcasp->slot_width = slot_width; in davinci_mcasp_set_tdm_slot() 706 u32 slot_width = sample_width; in davinci_config_channel_size() local 725 if (mcasp->slot_width) { in davinci_config_channel_size() [all …]
|
/sound/soc/stm/ |
D | stm32_sai_sub.c | 101 int slot_width; member 259 u32 rx_mask, int slots, int slot_width) in stm32_sai_set_dai_tdm_slot() argument 265 tx_mask, rx_mask, slots, slot_width); in stm32_sai_set_dai_tdm_slot() 267 switch (slot_width) { in stm32_sai_set_dai_tdm_slot() 298 sai->slot_width = slot_width; in stm32_sai_set_dai_tdm_slot() 504 sai->slot_width = sai->data_size; in stm32_sai_set_slots() 506 if (sai->slot_width < sai->data_size) { in stm32_sai_set_slots() 531 sai->slots, sai->slot_width); in stm32_sai_set_slots() 543 sai->fs_length = sai->slot_width * sai->slots; in stm32_sai_set_frame() 560 offset = sai->slot_width - sai->data_size; in stm32_sai_set_frame()
|
/sound/soc/fsl/ |
D | fsl_sai.c | 133 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot() argument 138 sai->slot_width = slot_width; in fsl_sai_set_dai_tdm_slot() 415 u32 slot_width = word_width; in fsl_sai_hw_params() local 421 if (sai->slot_width) in fsl_sai_hw_params() 422 slot_width = sai->slot_width; in fsl_sai_hw_params() 426 slots * slot_width * params_rate(params)); in fsl_sai_hw_params() 441 val_cr4 |= FSL_SAI_CR4_SYWD(slot_width); in fsl_sai_hw_params() 443 val_cr5 |= FSL_SAI_CR5_WNW(slot_width); in fsl_sai_hw_params() 444 val_cr5 |= FSL_SAI_CR5_W0W(slot_width); in fsl_sai_hw_params()
|
D | fsl_esai.c | 59 u32 slot_width; member 356 u32 rx_mask, int slots, int slot_width) in fsl_esai_set_dai_tdm_slot() argument 366 esai_priv->slot_width = slot_width; in fsl_esai_set_dai_tdm_slot() 527 u32 slot_width = width; in fsl_esai_hw_params() local 532 if (esai_priv->slot_width) in fsl_esai_hw_params() 533 slot_width = esai_priv->slot_width; in fsl_esai_hw_params() 535 bclk = params_rate(params) * slot_width * esai_priv->slots; in fsl_esai_hw_params() 557 val = ESAI_xCR_xSWS(slot_width, width) | (tx ? ESAI_xCR_PADC : 0); in fsl_esai_hw_params()
|
D | fsl-asoc-card.c | 68 u32 slot_width; member 174 if (cpu_priv->slot_width) { in fsl_asoc_card_hw_params() 176 cpu_priv->slot_width); in fsl_asoc_card_hw_params() 538 priv->cpu_priv.slot_width = 32; in fsl_asoc_card_probe()
|
D | fsl_sai.h | 147 unsigned int slot_width; member
|
/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
|
/sound/soc/pxa/ |
D | pxa-ssp.c | 385 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in pxa_ssp_set_dai_tdm_slot() argument 395 if (slot_width > 16) in pxa_ssp_set_dai_tdm_slot() 396 sscr0 |= SSCR0_EDSS | SSCR0_DataSize(slot_width - 16); in pxa_ssp_set_dai_tdm_slot() 398 sscr0 |= SSCR0_DataSize(slot_width); in pxa_ssp_set_dai_tdm_slot()
|
/sound/soc/bcm/ |
D | cygnus-ssp.c | 983 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in cygnus_set_dai_tdm_slot() argument 1013 switch (slot_width) { in cygnus_set_dai_tdm_slot() 1026 frame_bits = slots * slot_width; in cygnus_set_dai_tdm_slot()
|
/sound/soc/intel/atom/ |
D | sst-mfld-platform-pcm.c | 458 int slots, int slot_width) { in sst_platform_set_ssp_slot() argument 464 ret = sst_fill_ssp_slot(dai, tx_mask, rx_mask, slots, slot_width); in sst_platform_set_ssp_slot()
|
/sound/soc/generic/ |
D | simple-card-utils.c | 328 simple_dai->slot_width); in asoc_simple_card_init_dai()
|