Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 25 of 68) 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()
138 switch (drvdata->slots) { in setup_pcm_framing()
157 __func__, drvdata->slots); in setup_pcm_framing()
584 int slots, int slot_width) in ux500_msp_dai_set_tdm_slot() argument
589 switch (slots) { in ux500_msp_dai_set_tdm_slot()
604 __func__, slots); in ux500_msp_dai_set_tdm_slot()
607 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/davinci/
Ddavinci-mcasp.c626 int slots = mcasp->tdm_slots; in davinci_mcasp_ch_constraint() local
630 slots = hweight32(mcasp->tdm_mask[stream]); in davinci_mcasp_ch_constraint()
632 for (i = 2; i <= slots; i++) in davinci_mcasp_ch_constraint()
636 list[count++] = i*slots; in davinci_mcasp_ch_constraint()
668 int slots, int slot_width) in davinci_mcasp_set_tdm_slot() argument
674 __func__, tx_mask, rx_mask, slots, slot_width); in davinci_mcasp_set_tdm_slot()
676 if (tx_mask >= (1<<slots) || rx_mask >= (1<<slots)) { in davinci_mcasp_set_tdm_slot()
679 tx_mask, rx_mask, slots); in davinci_mcasp_set_tdm_slot()
690 mcasp->tdm_slots = slots; in davinci_mcasp_set_tdm_slot()
760 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.c500 unsigned int rx_mask, int slots, int width) in adau1977_set_tdm_slot() argument
508 if (slots == 0) { in adau1977_set_tdm_slot()
525 if (slot[i] >= slots) in adau1977_set_tdm_slot()
551 switch (slots) { in adau1977_set_tdm_slot()
601 adau1977->max_master_fs = min(192000, 24576000 / width / slots); in adau1977_set_tdm_slot()
Dadau17x1.c605 unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) in adau17x1_set_dai_tdm_slot() argument
612 if (slots == 0) { in adau17x1_set_dai_tdm_slot()
613 slots = 2; in adau17x1_set_dai_tdm_slot()
619 switch (slots) { in adau17x1_set_dai_tdm_slot()
636 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()
833 pslot = &mixer->slots[idx]; in snd_mixer_oss_get_recsrc2()
882 pslot = &mixer->slots[idx]; in snd_mixer_oss_put_recsrc2()
[all …]
/sound/soc/fsl/
Dfsl_esai.c61 u32 slots; member
348 u32 rx_mask, int slots, int slot_width) in fsl_esai_set_dai_tdm_slot() argument
353 ESAI_xCCR_xDC_MASK, ESAI_xCCR_xDC(slots)); in fsl_esai_set_dai_tdm_slot()
361 ESAI_xCCR_xDC_MASK, ESAI_xCCR_xDC(slots)); in fsl_esai_set_dai_tdm_slot()
369 esai_priv->slots = slots; in fsl_esai_set_dai_tdm_slot()
525 u32 pins = DIV_ROUND_UP(channels, esai_priv->slots); in fsl_esai_hw_params()
534 bclk = params_rate(params) * slot_width * esai_priv->slots; in fsl_esai_hw_params()
588 u32 pins = DIV_ROUND_UP(channels, esai_priv->slots); in fsl_esai_trigger()
853 esai_priv->slots = 2; in fsl_esai_probe()
Dmpc5200_psc_ac97.c193 psc_dma->slots |= s->ac97_slot_bits; in psc_ac97_trigger()
194 out_be32(&psc_dma->psc_regs->ac97_slots, psc_dma->slots); in psc_ac97_trigger()
202 psc_dma->slots &= ~(s->ac97_slot_bits); in psc_ac97_trigger()
203 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()
412 u32 slots = (channels == 1) ? 2 : channels; in fsl_sai_hw_params() local
416 if (sai->slots) in fsl_sai_hw_params()
417 slots = sai->slots; in fsl_sai_hw_params()
424 slots * slot_width * params_rate(params)); in fsl_sai_hw_params()
449 val_cr4 |= FSL_SAI_CR4_FRSZ(slots); in fsl_sai_hw_params()
Dmpc5200_dma.h62 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()
Dsound_config.h77 int slots[6]; /* To remember driver slot ids */ member
/sound/soc/sti/
Dsti_uniperif.c101 unsigned int rx_mask, int slots, in sti_uniperiph_set_tdm_slot() argument
114 uni->tdm_slot.slots = slots; in sti_uniperiph_set_tdm_slot()
120 for (i = 0, avail_slots = 0; i < uni->tdm_slot.slots; i++) { in sti_uniperiph_set_tdm_slot()
190 int slots_num = uni->tdm_slot.slots; in sti_uniperiph_get_tdm_word_pos()
/sound/soc/sh/rcar/
Dcore.c209 int slots, int num) in rsnd_set_slot() argument
211 rdai->slots = slots; in rsnd_set_slot()
219 return rdai->slots; in rsnd_get_slot()
270 int slots = rsnd_get_slot_num(io); in rsnd_runtime_is_ssi_multi() local
275 return (chan >= 6) && (slots > 1); in rsnd_runtime_is_ssi_multi()
674 int slots, int slot_width) in rsnd_soc_set_dai_tdm_slot() argument
680 switch (slots) { in rsnd_soc_set_dai_tdm_slot()
683 rsnd_set_slot(rdai, slots, 1); in rsnd_soc_set_dai_tdm_slot()
686 dev_err(dev, "unsupported TDM slots (%d)\n", slots); in rsnd_soc_set_dai_tdm_slot()
Ddvc.c270 int slots = rsnd_get_slot(io); in rsnd_dvc_pcm_new() local
278 &dvc->volume, slots, in rsnd_dvc_pcm_new()
288 &dvc->mute, slots, in rsnd_dvc_pcm_new()
/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()
/sound/soc/generic/
Dsimple-card-utils.c180 if (simple_dai->slots) { in asoc_simple_card_init_dai()
184 simple_dai->slots, in asoc_simple_card_init_dai()

123