Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 25 of 71) sorted by relevance

123

/sound/pci/ac97/
Dac97_pcm.c327 unsigned short slots = 0; in get_pslots() local
341 slots |= (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); 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()
358 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots()
360 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
370 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
376 return slots; in get_pslots()
378 unsigned short slots; in get_pslots() local
379 slots = (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots()
[all …]
/sound/soc/blackfin/
Dbf5xx-i2s.c54 unsigned int slots; member
219 unsigned int rx_mask, int slots, int width) in bf5xx_i2s_set_tdm_slot() argument
224 if (slots % 8 != 0 || slots > 8) in bf5xx_i2s_set_tdm_slot()
230 bf5xx_i2s->slots = slots; in bf5xx_i2s_set_tdm_slot()
234 bf5xx_i2s->tx_dma_data.tdm_mode = slots != 0; in bf5xx_i2s_set_tdm_slot()
235 bf5xx_i2s->rx_dma_data.tdm_mode = slots != 0; in bf5xx_i2s_set_tdm_slot()
237 return sport_set_multichannel(sport_handle, slots, tx_mask, rx_mask, 0); in bf5xx_i2s_set_tdm_slot()
276 return sport_set_multichannel(sport_handle, bf5xx_i2s->slots, in bf5xx_i2s_resume()
/sound/soc/ux500/
Dux500_msp_dai.c40 if (drvdata->slots > 1) { in setup_pcm_multichan()
59 __func__, drvdata->slots, multi->tx_channel_0_enable, in setup_pcm_multichan()
71 switch (drvdata->slots) { in setup_frameper()
116 __func__, drvdata->slots); in setup_frameper()
139 switch (drvdata->slots) { in setup_pcm_framing()
158 __func__, drvdata->slots); in setup_pcm_framing()
586 int slots, int slot_width) in ux500_msp_dai_set_tdm_slot() argument
591 switch (slots) { in ux500_msp_dai_set_tdm_slot()
606 __func__, slots); in ux500_msp_dai_set_tdm_slot()
609 drvdata->slots = slots; in ux500_msp_dai_set_tdm_slot()
[all …]
Dmop500_ab8500.c225 int channels, ret = 0, driver_mode, slots; in mop500_ab8500_hw_params() local
302 slots = 16; in mop500_ab8500_hw_params()
307 slots = 16; in mop500_ab8500_hw_params()
312 slots = 16; in mop500_ab8500_hw_params()
327 ret = snd_soc_dai_set_tdm_slot(cpu_dai, tx_slots, rx_slots, slots, in mop500_ab8500_hw_params()
334 ret = snd_soc_dai_set_tdm_slot(codec_dai, tx_slots, rx_slots, slots, in mop500_ab8500_hw_params()
Dux500_msp_dai.h57 int slots; member
/sound/soc/stm/
Dstm32_sai_sub.c100 int slots; 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()
280 SAI_XSLOTR_NBSLOT_SET(slots - 1); in stm32_sai_set_dai_tdm_slot()
299 sai->slots = slots; in stm32_sai_set_dai_tdm_slot()
475 if ((sai->slots == 2) && (params_channels(params) == 1)) in stm32_sai_set_config()
514 if (!sai->slots) in stm32_sai_set_slots()
515 sai->slots = 2; in stm32_sai_set_slots()
520 SAI_XSLOTR_NBSLOT_SET((sai->slots - 1))); in stm32_sai_set_slots()
524 sai->slot_mask = (1 << sai->slots) - 1; in stm32_sai_set_slots()
[all …]
/sound/soc/davinci/
Ddavinci-mcasp.c628 int slots = mcasp->tdm_slots; in davinci_mcasp_ch_constraint() local
632 slots = hweight32(mcasp->tdm_mask[stream]); in davinci_mcasp_ch_constraint()
634 for (i = 1; i <= slots; i++) in davinci_mcasp_ch_constraint()
638 list[count++] = i*slots; in davinci_mcasp_ch_constraint()
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()
678 if (tx_mask >= (1<<slots) || rx_mask >= (1<<slots)) { in davinci_mcasp_set_tdm_slot()
681 tx_mask, rx_mask, slots); in davinci_mcasp_set_tdm_slot()
692 mcasp->tdm_slots = slots; in davinci_mcasp_set_tdm_slot()
762 u8 slots = mcasp->tdm_slots; in mcasp_common_hw_param() local
[all …]
/sound/arm/
Daaci.c388 unsigned int mask = 1 << 0, slots; in aaci_rule_channels() local
391 slots = aaci->ac97_bus->pcms[0].r[0].slots; in aaci_rule_channels()
392 if (slots & (1 << AC97_SLOT_PCM_SLEFT)) { in aaci_rule_channels()
394 if (slots & (1 << AC97_SLOT_LFE)) in aaci_rule_channels()
432 if (aacirun->pcm->r[1].slots) in aaci_pcm_open()
529 aacirun->pcm->r[dbl].slots); in aaci_pcm_hw_params()
794 .slots = (1 << AC97_SLOT_PCM_LEFT) |
802 .slots = (1 << AC97_SLOT_PCM_LEFT) |
814 .slots = (1 << AC97_SLOT_PCM_LEFT) |
824 .slots = (1 << AC97_SLOT_MIC),
/sound/soc/codecs/
Dmc13783.c308 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_dac() argument
316 switch (slots) { in mc13783_set_tdm_slot_dac()
353 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_codec() argument
360 if (slots != 4) in mc13783_set_tdm_slot_codec()
375 unsigned int tx_mask, unsigned int rx_mask, int slots, in mc13783_set_tdm_slot_sync() argument
380 ret = mc13783_set_tdm_slot_dac(dai, tx_mask, rx_mask, slots, in mc13783_set_tdm_slot_sync()
385 ret = mc13783_set_tdm_slot_codec(dai, tx_mask, rx_mask, slots, in mc13783_set_tdm_slot_sync()
Dssm2518.c525 unsigned int rx_mask, int slots, int width) in ssm2518_set_tdm_slot() argument
532 if (slots == 0) in ssm2518_set_tdm_slot()
540 if (slots == 1) { in ssm2518_set_tdm_slot()
557 if (tx_mask != 0 || left_slot >= slots || right_slot >= slots) in ssm2518_set_tdm_slot()
574 switch (slots) { in ssm2518_set_tdm_slot()
Dwm9081.c1021 int slots = ((aif1 & WM9081_AIFDAC_TDM_MODE_MASK) >> in wm9081_hw_params() local
1024 wm9081->bclk = wm9081->fs * wm9081->tdm_width * slots; in wm9081_hw_params()
1190 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in wm9081_set_tdm_slot() argument
1198 if (slots < 0 || slots > 4) in wm9081_set_tdm_slot()
1203 if (slots == 0) in wm9081_set_tdm_slot()
1204 slots = 1; in wm9081_set_tdm_slot()
1206 aif1 |= (slots - 1) << WM9081_AIFDAC_TDM_MODE_SHIFT; in wm9081_set_tdm_slot()
Dadau1977.c498 unsigned int rx_mask, int slots, int width) in adau1977_set_tdm_slot() argument
506 if (slots == 0) { in adau1977_set_tdm_slot()
523 if (slot[i] >= slots) in adau1977_set_tdm_slot()
549 switch (slots) { in adau1977_set_tdm_slot()
599 adau1977->max_master_fs = min(192000, 24576000 / width / slots); in adau1977_set_tdm_slot()
Dadau17x1.c604 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in adau17x1_set_dai_tdm_slot() argument
611 if (slots == 0) { in adau17x1_set_dai_tdm_slot()
612 slots = 2; in adau17x1_set_dai_tdm_slot()
618 switch (slots) { in adau17x1_set_dai_tdm_slot()
635 switch (slot_width * slots) { in adau17x1_set_dai_tdm_slot()
/sound/core/oss/
Dmixer_oss.c149 pslot = &mixer->slots[chn]; in snd_mixer_oss_devmask()
165 pslot = &mixer->slots[chn]; in snd_mixer_oss_stereodevs()
185 pslot = &mixer->slots[chn]; in snd_mixer_oss_recmask()
210 pslot = &mixer->slots[chn]; in snd_mixer_oss_get_recsrc()
240 pslot = &mixer->slots[chn]; in snd_mixer_oss_set_recsrc()
248 pslot = &mixer->slots[chn]; in snd_mixer_oss_set_recsrc()
268 pslot = &mixer->slots[slot]; in snd_mixer_oss_get_volume()
296 pslot = &mixer->slots[slot]; in snd_mixer_oss_set_volume()
834 pslot = &mixer->slots[idx]; in snd_mixer_oss_get_recsrc2()
883 pslot = &mixer->slots[idx]; in snd_mixer_oss_put_recsrc2()
[all …]
/sound/soc/fsl/
Dfsl_esai.c60 u32 slots; member
356 u32 rx_mask, int slots, int slot_width) in fsl_esai_set_dai_tdm_slot() argument
361 ESAI_xCCR_xDC_MASK, ESAI_xCCR_xDC(slots)); in fsl_esai_set_dai_tdm_slot()
364 ESAI_xCCR_xDC_MASK, ESAI_xCCR_xDC(slots)); in fsl_esai_set_dai_tdm_slot()
367 esai_priv->slots = slots; in fsl_esai_set_dai_tdm_slot()
526 u32 pins = DIV_ROUND_UP(channels, esai_priv->slots); in fsl_esai_hw_params()
535 bclk = params_rate(params) * slot_width * esai_priv->slots; in fsl_esai_hw_params()
589 u32 pins = DIV_ROUND_UP(channels, esai_priv->slots); in fsl_esai_trigger()
878 esai_priv->slots = 2; in fsl_esai_probe()
Dmpc5200_psc_ac97.c192 psc_dma->slots |= s->ac97_slot_bits; in psc_ac97_trigger()
193 out_be32(&psc_dma->psc_regs->ac97_slots, psc_dma->slots); in psc_ac97_trigger()
201 psc_dma->slots &= ~(s->ac97_slot_bits); in psc_ac97_trigger()
202 out_be32(&psc_dma->psc_regs->ac97_slots, psc_dma->slots); in psc_ac97_trigger()
Dfsl_sai.c133 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot() argument
137 sai->slots = slots; in fsl_sai_set_dai_tdm_slot()
414 u32 slots = (channels == 1) ? 2 : channels; in fsl_sai_hw_params() local
418 if (sai->slots) in fsl_sai_hw_params()
419 slots = sai->slots; in fsl_sai_hw_params()
426 slots * slot_width * params_rate(params)); in fsl_sai_hw_params()
451 val_cr4 |= FSL_SAI_CR4_FRSZ(slots); in fsl_sai_hw_params()
Dmpc5200_dma.h63 unsigned int slots; member
/sound/oss/
Duart401.c298 hw_config->slots[4] = -1; in probe_uart401()
377 hw_config->slots[4] = devc->my_dev; in probe_uart401()
398 int n=hw_config->slots[4]; in unload_uart401()
406 devc = midi_devs[hw_config->slots[4]]->devc; in unload_uart401()
420 sound_unload_mididev(hw_config->slots[4]); in unload_uart401()
Duart6850.c278 hw_config->slots[4] = my_dev; in attach_uart6850()
310 sound_unload_mididev(hw_config->slots[4]); in unload_uart6850()
Dsb_common.c850 hw_config->slots[0]=devc->dev; in sb_dsp_init()
865 hw_config->slots[0]=devc->dev; in sb_dsp_init()
881 devc = audio_devs[hw_config->slots[0]]->devc; in sb_dsp_unload()
1228 (void *)(long) hw_config->slots[1]; in probe_sbmpu()
1265 last_sb->midi_irq_cookie=midi_devs[hw_config->slots[4]]->devc; in probe_sbmpu()
Dsound_config.h78 int slots[6]; /* To remember driver slot ids */ member
Dpss.c785 if (hw_config->slots[1] != -1) /* The MPU driver installed itself */ in probe_pss_mpu()
786 midi_devs[hw_config->slots[1]]->coproc = &pss_coproc_operations; in probe_pss_mpu()
1094 if (hw_config->slots[0] != -1) in probe_pss_mss()
1097 audio_devs[hw_config->slots[0]]->coproc = &pss_coproc_operations; in probe_pss_mss()
1101 devc->ad_mixer_dev = audio_devs[hw_config->slots[0]]->mixer_dev; in probe_pss_mss()
/sound/soc/sti/
Dsti_uniperif.c124 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/core/
Dinit.c57 static char *slots[SNDRV_CARDS]; variable
58 module_param_array(slots, charp, NULL, 0444);
59 MODULE_PARM_DESC(slots, "Module names assigned to the slots.");
70 if (!module || !*module->name || !slots[idx]) in module_slot_match()
74 s2 = slots[idx]; in module_slot_match()
130 return !slots[slot] || !*slots[slot]; in check_empty_slot()

123