/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/ |
D | soc-dai.c | 113 static int snd_soc_xlate_tdm_slot_mask(unsigned int slots, in snd_soc_xlate_tdm_slot_mask() argument 120 if (!slots) in snd_soc_xlate_tdm_slot_mask() 123 *tx_mask = (1 << slots) - 1; in snd_soc_xlate_tdm_slot_mask() 124 *rx_mask = (1 << slots) - 1; in snd_soc_xlate_tdm_slot_mask() 154 int slots, int slot_width) in snd_soc_dai_set_tdm_slot() argument 157 dai->driver->ops->xlate_tdm_slot_mask(slots, in snd_soc_dai_set_tdm_slot() 160 snd_soc_xlate_tdm_slot_mask(slots, &tx_mask, &rx_mask); in snd_soc_dai_set_tdm_slot() 167 slots, slot_width); in snd_soc_dai_set_tdm_slot()
|
/sound/soc/meson/ |
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() 259 srate = iface->slots * iface->slot_width * params_rate(params); in axg_tdm_iface_set_sclk() 302 if (iface->slots > 2) { in axg_tdm_iface_hw_params() 304 iface->slots); in axg_tdm_iface_hw_params()
|
D | axg-card.c | 25 unsigned int slots; 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() 375 of_property_read_u32(node, "dai-tdm-slot-num", &be->slots); in axg_card_parse_cpu_tdm_slots() 376 if (!be->slots) { in axg_card_parse_cpu_tdm_slots() 381 be->slots = fls(max(tx, rx)); in axg_card_parse_cpu_tdm_slots() 382 } else if (be->slots < fls(max(tx, rx)) || be->slots > 32) { in axg_card_parse_cpu_tdm_slots()
|
D | axg-tdm.h | 34 unsigned int slots; member 75 u32 *rx_mask, unsigned int slots,
|
/sound/soc/sunxi/ |
D | sun4i-i2s.c | 170 unsigned int slots; member 291 unsigned int slots, in sun4i_i2s_set_clk_rate() argument 339 rate, slots, slot_width); in sun4i_i2s_set_clk_rate() 417 unsigned int slots = channels; in sun8i_i2s_set_chan_cfg() local 420 if (i2s->slots) in sun8i_i2s_set_chan_cfg() 421 slots = i2s->slots; in sun8i_i2s_set_chan_cfg() 447 lrck_period = params_physical_width(params) * slots; in sun8i_i2s_set_chan_cfg() 477 unsigned int slots = channels; in sun4i_i2s_hw_params() local 481 if (i2s->slots) in sun4i_i2s_hw_params() 482 slots = i2s->slots; in sun4i_i2s_hw_params() [all …]
|
/sound/soc/ux500/ |
D | ux500_msp_dai.c | 37 if (drvdata->slots > 1) { in setup_pcm_multichan() 56 __func__, drvdata->slots, multi->tx_channel_0_enable, in setup_pcm_multichan() 68 switch (drvdata->slots) { in setup_frameper() 113 __func__, drvdata->slots); in setup_frameper() 136 switch (drvdata->slots) { in setup_pcm_framing() 155 __func__, drvdata->slots); in setup_pcm_framing() 583 int slots, int slot_width) in ux500_msp_dai_set_tdm_slot() argument 588 switch (slots) { in ux500_msp_dai_set_tdm_slot() 603 __func__, slots); in ux500_msp_dai_set_tdm_slot() 606 drvdata->slots = slots; in ux500_msp_dai_set_tdm_slot() [all …]
|
D | mop500_ab8500.c | 222 int channels, ret = 0, driver_mode, slots; in mop500_ab8500_hw_params() local 299 slots = 16; in mop500_ab8500_hw_params() 304 slots = 16; in mop500_ab8500_hw_params() 309 slots = 16; in mop500_ab8500_hw_params() 324 ret = snd_soc_dai_set_tdm_slot(cpu_dai, tx_slots, rx_slots, slots, in mop500_ab8500_hw_params() 331 ret = snd_soc_dai_set_tdm_slot(codec_dai, tx_slots, rx_slots, slots, in mop500_ab8500_hw_params()
|
/sound/soc/codecs/ |
D | ak5558.c | 31 int slots; member 187 unsigned int rx_mask, int slots, in ak5558_set_tdm_slot() argument 194 ak5558->slots = slots; in ak5558_set_tdm_slot() 197 switch (slots * slot_width) { in ak5558_set_tdm_slot()
|
D | mc13783.c | 295 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_dac() argument 303 switch (slots) { in mc13783_set_tdm_slot_dac() 340 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_codec() argument 347 if (slots != 4) in mc13783_set_tdm_slot_codec() 362 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_sync() argument 367 ret = mc13783_set_tdm_slot_dac(dai, tx_mask, rx_mask, slots, in mc13783_set_tdm_slot_sync() 372 ret = mc13783_set_tdm_slot_codec(dai, tx_mask, rx_mask, slots, in mc13783_set_tdm_slot_sync()
|
D | ssm2518.c | 524 unsigned int rx_mask, int slots, int width) in ssm2518_set_tdm_slot() argument 531 if (slots == 0) in ssm2518_set_tdm_slot() 539 if (slots == 1) { in ssm2518_set_tdm_slot() 556 if (tx_mask != 0 || left_slot >= slots || right_slot >= slots) in ssm2518_set_tdm_slot() 573 switch (slots) { in ssm2518_set_tdm_slot()
|
D | ak4458.c | 38 int slots; member 434 unsigned int rx_mask, int slots, int slot_width) in ak4458_set_tdm_slot() argument 440 ak4458->slots = slots; in ak4458_set_tdm_slot() 443 switch (slots * slot_width) { in ak4458_set_tdm_slot()
|
D | wm9081.c | 1018 int slots = ((aif1 & WM9081_AIFDAC_TDM_MODE_MASK) >> in wm9081_hw_params() local 1021 wm9081->bclk = wm9081->fs * wm9081->tdm_width * slots; in wm9081_hw_params() 1187 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in wm9081_set_tdm_slot() argument 1195 if (slots < 0 || slots > 4) in wm9081_set_tdm_slot() 1200 if (slots == 0) in wm9081_set_tdm_slot() 1201 slots = 1; in wm9081_set_tdm_slot() 1203 aif1 |= (slots - 1) << WM9081_AIFDAC_TDM_MODE_SHIFT; in wm9081_set_tdm_slot()
|
/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() 526 aacirun->pcm->r[dbl].slots); in aaci_pcm_hw_params() 790 .slots = (1 << AC97_SLOT_PCM_LEFT) | 798 .slots = (1 << AC97_SLOT_PCM_LEFT) | 810 .slots = (1 << AC97_SLOT_PCM_LEFT) | 820 .slots = (1 << AC97_SLOT_MIC),
|
/sound/core/oss/ |
D | mixer_oss.c | 134 pslot = &mixer->slots[chn]; in snd_mixer_oss_devmask() 150 pslot = &mixer->slots[chn]; in snd_mixer_oss_stereodevs() 170 pslot = &mixer->slots[chn]; in snd_mixer_oss_recmask() 195 pslot = &mixer->slots[chn]; in snd_mixer_oss_get_recsrc() 225 pslot = &mixer->slots[chn]; in snd_mixer_oss_set_recsrc() 233 pslot = &mixer->slots[chn]; in snd_mixer_oss_set_recsrc() 253 pslot = &mixer->slots[slot]; in snd_mixer_oss_get_volume() 281 pslot = &mixer->slots[slot]; in snd_mixer_oss_set_volume() 819 pslot = &mixer->slots[idx]; in snd_mixer_oss_get_recsrc2() 868 pslot = &mixer->slots[idx]; in snd_mixer_oss_put_recsrc2() [all …]
|
/sound/soc/fsl/ |
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()
|
D | fsl_ssi.c | 272 unsigned int slots; member 681 unsigned int slots = params_channels(hw_params); in fsl_ssi_set_bclk() local 689 if (ssi->slots) in fsl_ssi_set_bclk() 690 slots = ssi->slots; in fsl_ssi_set_bclk() 692 if (ssi->slot_width && slots != 2) 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 1025 if (ssi->i2s_net && slots < 2) { in fsl_ssi_set_dai_tdm_slot() 1031 SSI_SxCCR_DC_MASK, SSI_SxCCR_DC(slots)); in fsl_ssi_set_dai_tdm_slot() 1033 SSI_SxCCR_DC_MASK, SSI_SxCCR_DC(slots)); in fsl_ssi_set_dai_tdm_slot() [all …]
|
D | fsl_esai.c | 63 u32 slots; member 376 u32 rx_mask, int slots, int slot_width) in fsl_esai_set_dai_tdm_slot() argument 381 ESAI_xCCR_xDC_MASK, ESAI_xCCR_xDC(slots)); in fsl_esai_set_dai_tdm_slot() 384 ESAI_xCCR_xDC_MASK, ESAI_xCCR_xDC(slots)); in fsl_esai_set_dai_tdm_slot() 387 esai_priv->slots = slots; in fsl_esai_set_dai_tdm_slot() 512 u32 pins = DIV_ROUND_UP(channels, esai_priv->slots); in fsl_esai_hw_params() 521 bclk = params_rate(params) * slot_width * esai_priv->slots; in fsl_esai_hw_params() 621 u32 pins = DIV_ROUND_UP(channels, esai_priv->slots); in fsl_esai_trigger_start() 987 esai_priv->slots = 2; in fsl_esai_probe()
|
D | fsl_sai.c | 130 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot() argument 134 sai->slots = slots; in fsl_sai_set_dai_tdm_slot() 425 u32 slots = (channels == 1) ? 2 : channels; in fsl_sai_hw_params() local 429 if (sai->slots) in fsl_sai_hw_params() 430 slots = sai->slots; in fsl_sai_hw_params() 442 slots * slot_width * in fsl_sai_hw_params() 468 val_cr4 |= FSL_SAI_CR4_FRSZ(slots); in fsl_sai_hw_params()
|
/sound/soc/ti/ |
D | davinci-mcasp.c | 689 int slots = mcasp->tdm_slots; in davinci_mcasp_ch_constraint() local 693 slots = hweight32(mcasp->tdm_mask[stream]); in davinci_mcasp_ch_constraint() 695 for (i = 1; i <= slots; i++) in davinci_mcasp_ch_constraint() 699 list[count++] = i*slots; in davinci_mcasp_ch_constraint() 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() 739 if (tx_mask >= (1<<slots) || rx_mask >= (1<<slots)) { in davinci_mcasp_set_tdm_slot() 742 tx_mask, rx_mask, slots); in davinci_mcasp_set_tdm_slot() 753 mcasp->tdm_slots = slots; in davinci_mcasp_set_tdm_slot() 819 u8 slots = mcasp->tdm_slots; in mcasp_common_hw_param() local [all …]
|
/sound/soc/atmel/ |
D | mchp-i2s-mcc.c | 346 int slots, int slot_width) in mchp_i2s_mcc_set_dai_tdm_slot() argument 352 __func__, tx_mask, rx_mask, slots, slot_width); in mchp_i2s_mcc_set_dai_tdm_slot() 354 if (slots < 0 || slots > MCHP_I2SMCC_MAX_CHANNELS || in mchp_i2s_mcc_set_dai_tdm_slot() 358 if (slots) { in mchp_i2s_mcc_set_dai_tdm_slot() 360 if (rx_mask != GENMASK(slots - 1, 0) || in mchp_i2s_mcc_set_dai_tdm_slot() 365 dev->tdm_slots = slots; in mchp_i2s_mcc_set_dai_tdm_slot() 366 dev->frame_length = slots * MCHP_I2MCC_TDM_SLOT_WIDTH; in mchp_i2s_mcc_set_dai_tdm_slot()
|
/sound/soc/sti/ |
D | sti_uniperif.c | 124 unsigned int rx_mask, int slots, in sti_uniperiph_set_tdm_slot() argument 137 uni->tdm_slot.slots = slots; in sti_uniperiph_set_tdm_slot() 143 for (i = 0, avail_slots = 0; i < uni->tdm_slot.slots; i++) { in sti_uniperiph_set_tdm_slot() 213 int slots_num = uni->tdm_slot.slots; in sti_uniperiph_get_tdm_word_pos()
|
/sound/soc/stm/ |
D | stm32_sai_sub.c | 121 int slots; member 594 u32 rx_mask, int slots, int slot_width) in stm32_sai_set_dai_tdm_slot() argument 605 tx_mask, rx_mask, slots, slot_width); in stm32_sai_set_dai_tdm_slot() 620 SAI_XSLOTR_NBSLOT_SET(slots - 1); in stm32_sai_set_dai_tdm_slot() 639 sai->slots = slots; in stm32_sai_set_dai_tdm_slot() 845 if ((sai->slots == 2) && (params_channels(params) == 1)) in stm32_sai_set_config() 880 if (!sai->slots) in stm32_sai_set_slots() 881 sai->slots = 2; in stm32_sai_set_slots() 886 SAI_XSLOTR_NBSLOT_SET((sai->slots - 1))); in stm32_sai_set_slots() 890 sai->slot_mask = (1 << sai->slots) - 1; in stm32_sai_set_slots() [all …]
|
/sound/core/ |
D | init.c | 41 static char *slots[SNDRV_CARDS]; variable 42 module_param_array(slots, charp, NULL, 0444); 43 MODULE_PARM_DESC(slots, "Module names assigned to the slots."); 54 if (!module || !*module->name || !slots[idx]) in module_slot_match() 58 s2 = slots[idx]; in module_slot_match() 89 return !slots[slot] || !*slots[slot]; in check_empty_slot()
|