/sound/pci/ac97/ |
D | ac97_pcm.c | 312 unsigned short slots = 0; in get_pslots() local 326 slots |= (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots() 328 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots() 330 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots() 343 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots() 345 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots() 355 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots() 361 return slots; in get_pslots() 363 unsigned short slots; in get_pslots() local 364 slots = (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots() [all …]
|
/sound/soc/bcm/ |
D | bcm2835-i2s.c | 251 int slots, int width) in bcm2835_i2s_set_dai_tdm_slot() argument 255 if (slots) { in bcm2835_i2s_set_dai_tdm_slot() 256 if (slots < 0 || width < 0) in bcm2835_i2s_set_dai_tdm_slot() 260 rx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot() 261 tx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot() 271 if (slots * width > BCM2835_I2S_MAX_FRAME_LENGTH) in bcm2835_i2s_set_dai_tdm_slot() 275 dev->tdm_slots = slots; in bcm2835_i2s_set_dai_tdm_slot() 280 dev->frame_length = slots * width; in bcm2835_i2s_set_dai_tdm_slot() 335 unsigned int slots, slot_width, odd_slot_offset; in bcm2835_i2s_hw_params() local 361 slots = dev->tdm_slots; in bcm2835_i2s_hw_params() [all …]
|
/sound/soc/fsl/ |
D | imx-card.c | 97 unsigned int slots; member 232 if (link_data->slots > 2) in format_is_tdm() 254 int slots, int slot_width) in akcodec_get_mclk_rate() argument 260 unsigned int width = slots * slot_width; in akcodec_get_mclk_rate() 303 unsigned int slots, slot_width; in imx_aif_hw_params() local 306 slots = link_data->slots; in imx_aif_hw_params() 311 slots = 1; in imx_aif_hw_params() 316 slots = 2; in imx_aif_hw_params() 329 BIT(slots) - 1, in imx_aif_hw_params() 330 BIT(slots) - 1, in imx_aif_hw_params() [all …]
|
D | fsl_ssi.c | 265 unsigned int slots; member 690 unsigned int slots = 2; in fsl_ssi_set_bclk() local 697 if (ssi->slots) in fsl_ssi_set_bclk() 698 slots = ssi->slots; in fsl_ssi_set_bclk() 708 freq = slots * slot_width * params_rate(hw_params); in fsl_ssi_set_bclk() 908 unsigned int slots; in _fsl_ssi_set_dai_fmt() local 940 slots = ssi->slots ? : 2; in _fsl_ssi_set_dai_fmt() 942 SSI_SxCCR_DC_MASK, SSI_SxCCR_DC(slots)); in _fsl_ssi_set_dai_fmt() 944 SSI_SxCCR_DC_MASK, SSI_SxCCR_DC(slots)); in _fsl_ssi_set_dai_fmt() 1058 u32 rx_mask, int slots, int slot_width) in fsl_ssi_set_dai_tdm_slot() argument [all …]
|
D | fsl_esai.c | 73 u32 slots; member 405 u32 rx_mask, int slots, int slot_width) in fsl_esai_set_dai_tdm_slot() argument 410 ESAI_xCCR_xDC_MASK, ESAI_xCCR_xDC(slots)); in fsl_esai_set_dai_tdm_slot() 413 ESAI_xCCR_xDC_MASK, ESAI_xCCR_xDC(slots)); in fsl_esai_set_dai_tdm_slot() 416 esai_priv->slots = slots; in fsl_esai_set_dai_tdm_slot() 525 ESAI_xCCR_xDC(esai_priv->slots)); in fsl_esai_startup() 528 ESAI_xCCR_xDC(esai_priv->slots)); in fsl_esai_startup() 543 u32 pins = DIV_ROUND_UP(channels, esai_priv->slots); in fsl_esai_hw_params() 552 bclk = params_rate(params) * slot_width * esai_priv->slots; in fsl_esai_hw_params() 652 u32 pins = DIV_ROUND_UP(channels, esai_priv->slots); in fsl_esai_trigger_start() [all …]
|
D | mpc5200_psc_ac97.c | 188 psc_dma->slots |= s->ac97_slot_bits; in psc_ac97_trigger() 189 out_be32(&psc_dma->psc_regs->ac97_slots, psc_dma->slots); in psc_ac97_trigger() 197 psc_dma->slots &= ~(s->ac97_slot_bits); in psc_ac97_trigger() 198 out_be32(&psc_dma->psc_regs->ac97_slots, psc_dma->slots); in psc_ac97_trigger()
|
/sound/soc/meson/ |
D | axg-card.c | 21 unsigned int slots; 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() 199 of_property_read_u32(node, "dai-tdm-slot-num", &be->slots); in axg_card_parse_cpu_tdm_slots() 200 if (!be->slots) { in axg_card_parse_cpu_tdm_slots() 205 be->slots = fls(max(tx, rx)); in axg_card_parse_cpu_tdm_slots() 206 } else if (be->slots < fls(max(tx, rx)) || be->slots > 32) { in axg_card_parse_cpu_tdm_slots()
|
D | axg-tdm-interface.c | 22 unsigned int slots = 0; in axg_tdm_slots_total() local 30 slots += hweight32(mask[i]); in axg_tdm_slots_total() 32 return slots; in axg_tdm_slots_total() 36 u32 *rx_mask, unsigned int slots, in axg_tdm_set_tdm_slots() argument 56 iface->slots = slots; in axg_tdm_set_tdm_slots() 266 srate = iface->slots * iface->slot_width * params_rate(params); in axg_tdm_iface_set_sclk() 309 if (iface->slots > 2) { in axg_tdm_iface_hw_params() 311 iface->slots); in axg_tdm_iface_hw_params()
|
D | axg-tdm.h | 34 unsigned int slots; member 75 u32 *rx_mask, unsigned int slots,
|
/sound/soc/ux500/ |
D | ux500_msp_dai.c | 35 if (drvdata->slots > 1) { in setup_pcm_multichan() 54 __func__, drvdata->slots, multi->tx_channel_0_enable, in setup_pcm_multichan() 66 switch (drvdata->slots) { in setup_frameper() 111 __func__, drvdata->slots); in setup_frameper() 134 switch (drvdata->slots) { in setup_pcm_framing() 153 __func__, drvdata->slots); in setup_pcm_framing() 581 int slots, int slot_width) in ux500_msp_dai_set_tdm_slot() argument 586 switch (slots) { in ux500_msp_dai_set_tdm_slot() 601 __func__, slots); in ux500_msp_dai_set_tdm_slot() 604 drvdata->slots = slots; in ux500_msp_dai_set_tdm_slot() [all …]
|
D | mop500_ab8500.c | 220 int channels, ret = 0, driver_mode, slots; in mop500_ab8500_hw_params() local 297 slots = 16; in mop500_ab8500_hw_params() 302 slots = 16; in mop500_ab8500_hw_params() 307 slots = 16; in mop500_ab8500_hw_params() 322 ret = snd_soc_dai_set_tdm_slot(cpu_dai, tx_slots, rx_slots, slots, in mop500_ab8500_hw_params() 329 ret = snd_soc_dai_set_tdm_slot(codec_dai, tx_slots, rx_slots, slots, in mop500_ab8500_hw_params()
|
/sound/soc/sunxi/ |
D | sun4i-i2s.c | 204 unsigned int channels, unsigned int slots, 217 unsigned int slots; member 338 unsigned int slots, in sun4i_i2s_set_clk_rate() argument 386 rate, slots, slot_width); in sun4i_i2s_set_clk_rate() 460 unsigned int channels, unsigned int slots, in sun4i_i2s_set_chan_cfg() argument 479 unsigned int channels, unsigned int slots, in sun8i_i2s_set_chan_cfg() argument 506 lrck_period = slot_width * slots; in sun8i_i2s_set_chan_cfg() 531 unsigned int channels, unsigned int slots, in sun50i_h6_i2s_set_chan_cfg() argument 567 lrck_period = slot_width * slots; in sun50i_h6_i2s_set_chan_cfg() 600 unsigned int slots = channels; in sun4i_i2s_hw_params() local [all …]
|
D | sun8i-codec.c | 173 unsigned int slots; member 396 int slots, int slot_width) in sun8i_codec_set_tdm_slot() argument 404 aif->slots = slots; in sun8i_codec_set_tdm_slot() 494 static int sun8i_codec_get_lrck_div_order(unsigned int slots, in sun8i_codec_get_lrck_div_order() argument 497 unsigned int div = slots * slot_width; in sun8i_codec_get_lrck_div_order() 517 unsigned int slots = aif->slots ?: params_channels(params); in sun8i_codec_hw_params() local 546 lrck_div_order = sun8i_codec_get_lrck_div_order(slots, slot_width); in sun8i_codec_hw_params()
|
/sound/soc/codecs/ |
D | adau7118.c | 41 u32 slots; member 227 unsigned int rx_mask, int slots, 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() 259 st->slots = slots; in adau7118_set_tdm_slot() 274 if (!st->slots) { in adau7118_hw_params()
|
D | mc13783.c | 294 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_dac() argument 302 switch (slots) { in mc13783_set_tdm_slot_dac() 339 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_codec() argument 346 if (slots != 4) in mc13783_set_tdm_slot_codec() 361 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_sync() argument 366 ret = mc13783_set_tdm_slot_dac(dai, tx_mask, rx_mask, slots, in mc13783_set_tdm_slot_sync() 371 ret = mc13783_set_tdm_slot_codec(dai, tx_mask, rx_mask, slots, in mc13783_set_tdm_slot_sync()
|
D | ak5558.c | 45 int slots; member 234 unsigned int rx_mask, int slots, in ak5558_set_tdm_slot() argument 241 ak5558->slots = slots; in ak5558_set_tdm_slot() 244 switch (slots * slot_width) { in ak5558_set_tdm_slot()
|
D | ssm2518.c | 523 unsigned int rx_mask, int slots, int width) in ssm2518_set_tdm_slot() argument 530 if (slots == 0) in ssm2518_set_tdm_slot() 538 if (slots == 1) { in ssm2518_set_tdm_slot() 555 if (tx_mask != 0 || left_slot >= slots || right_slot >= slots) in ssm2518_set_tdm_slot() 572 switch (slots) { in ssm2518_set_tdm_slot()
|
D | rt1308-sdw.c | 520 int slots, int slot_width) in rt1308_sdw_set_tdm_slot() argument 529 if (slots > 2) in rt1308_sdw_set_tdm_slot() 533 rt1308->slots = slots; in rt1308_sdw_set_tdm_slot() 569 if (rt1308->slots) { in rt1308_sdw_hw_params() 570 num_channels = rt1308->slots; in rt1308_sdw_hw_params()
|
/sound/arm/ |
D | aaci.c | 385 unsigned int mask = 1 << 0, slots; in aaci_rule_channels() local 388 slots = aaci->ac97_bus->pcms[0].r[0].slots; in aaci_rule_channels() 389 if (slots & (1 << AC97_SLOT_PCM_SLEFT)) { in aaci_rule_channels() 391 if (slots & (1 << AC97_SLOT_LFE)) in aaci_rule_channels() 429 if (aacirun->pcm->r[1].slots) in aaci_pcm_open() 517 aacirun->pcm->r[dbl].slots); in aaci_pcm_hw_params() 778 .slots = (1 << AC97_SLOT_PCM_LEFT) | 786 .slots = (1 << AC97_SLOT_PCM_LEFT) | 798 .slots = (1 << AC97_SLOT_PCM_LEFT) | 808 .slots = (1 << AC97_SLOT_MIC),
|
/sound/soc/ |
D | soc-dai.c | 226 static int snd_soc_xlate_tdm_slot_mask(unsigned int slots, in snd_soc_xlate_tdm_slot_mask() argument 233 if (!slots) in snd_soc_xlate_tdm_slot_mask() 236 *tx_mask = (1 << slots) - 1; in snd_soc_xlate_tdm_slot_mask() 237 *rx_mask = (1 << slots) - 1; in snd_soc_xlate_tdm_slot_mask() 267 int slots, int slot_width) in snd_soc_dai_set_tdm_slot() argument 273 dai->driver->ops->xlate_tdm_slot_mask(slots, in snd_soc_dai_set_tdm_slot() 276 snd_soc_xlate_tdm_slot_mask(slots, &tx_mask, &rx_mask); in snd_soc_dai_set_tdm_slot() 284 slots, slot_width); in snd_soc_dai_set_tdm_slot()
|
/sound/core/oss/ |
D | mixer_oss.c | 135 pslot = &mixer->slots[chn]; in snd_mixer_oss_devmask() 153 pslot = &mixer->slots[chn]; in snd_mixer_oss_stereodevs() 175 pslot = &mixer->slots[chn]; in snd_mixer_oss_recmask() 202 pslot = &mixer->slots[chn]; in snd_mixer_oss_get_recsrc() 236 pslot = &mixer->slots[chn]; in snd_mixer_oss_set_recsrc() 244 pslot = &mixer->slots[chn]; in snd_mixer_oss_set_recsrc() 266 pslot = &mixer->slots[slot]; in snd_mixer_oss_get_volume() 301 pslot = &mixer->slots[slot]; in snd_mixer_oss_set_volume() 850 pslot = &mixer->slots[idx]; in snd_mixer_oss_get_recsrc2() 900 pslot = &mixer->slots[idx]; in snd_mixer_oss_put_recsrc2() [all …]
|
/sound/soc/ti/ |
D | davinci-mcasp.c | 716 int slots = mcasp->tdm_slots; in davinci_mcasp_ch_constraint() local 720 slots = hweight32(mcasp->tdm_mask[stream]); in davinci_mcasp_ch_constraint() 722 for (i = 1; i <= slots; i++) in davinci_mcasp_ch_constraint() 726 list[count++] = i*slots; in davinci_mcasp_ch_constraint() 758 int slots, int slot_width) in davinci_mcasp_set_tdm_slot() argument 767 __func__, tx_mask, rx_mask, slots, slot_width); in davinci_mcasp_set_tdm_slot() 769 if (tx_mask >= (1<<slots) || rx_mask >= (1<<slots)) { in davinci_mcasp_set_tdm_slot() 772 tx_mask, rx_mask, slots); in davinci_mcasp_set_tdm_slot() 783 mcasp->tdm_slots = slots; in davinci_mcasp_set_tdm_slot() 863 u8 slots = mcasp->tdm_slots; in mcasp_common_hw_param() local [all …]
|
/sound/soc/sti/ |
D | sti_uniperif.c | 125 unsigned int rx_mask, int slots, in sti_uniperiph_set_tdm_slot() argument 138 uni->tdm_slot.slots = slots; in sti_uniperiph_set_tdm_slot() 144 for (i = 0, avail_slots = 0; i < uni->tdm_slot.slots; i++) { in sti_uniperiph_set_tdm_slot() 214 int slots_num = uni->tdm_slot.slots; in sti_uniperiph_get_tdm_word_pos()
|
/sound/soc/stm/ |
D | stm32_sai_sub.c | 120 int slots; member 593 u32 rx_mask, int slots, int slot_width) in stm32_sai_set_dai_tdm_slot() argument 604 tx_mask, rx_mask, slots, slot_width); in stm32_sai_set_dai_tdm_slot() 619 SAI_XSLOTR_NBSLOT_SET(slots - 1); in stm32_sai_set_dai_tdm_slot() 638 sai->slots = slots; in stm32_sai_set_dai_tdm_slot() 844 if ((sai->slots == 2) && (params_channels(params) == 1)) in stm32_sai_set_config() 879 if (!sai->slots) in stm32_sai_set_slots() 880 sai->slots = 2; in stm32_sai_set_slots() 885 SAI_XSLOTR_NBSLOT_SET((sai->slots - 1))); in stm32_sai_set_slots() 889 sai->slot_mask = (1 << sai->slots) - 1; in stm32_sai_set_slots() [all …]
|
/sound/soc/atmel/ |
D | mchp-i2s-mcc.c | 368 int slots, int slot_width) in mchp_i2s_mcc_set_dai_tdm_slot() argument 374 __func__, tx_mask, rx_mask, slots, slot_width); in mchp_i2s_mcc_set_dai_tdm_slot() 376 if (slots < 0 || slots > MCHP_I2SMCC_MAX_CHANNELS || in mchp_i2s_mcc_set_dai_tdm_slot() 380 if (slots) { in mchp_i2s_mcc_set_dai_tdm_slot() 382 if (rx_mask != GENMASK(slots - 1, 0) || in mchp_i2s_mcc_set_dai_tdm_slot() 387 dev->tdm_slots = slots; in mchp_i2s_mcc_set_dai_tdm_slot() 388 dev->frame_length = slots * MCHP_I2MCC_TDM_SLOT_WIDTH; in mchp_i2s_mcc_set_dai_tdm_slot()
|