/sound/oss/ |
D | trix.c | 130 int dma1 = hw_config->dma, dma2 = hw_config->dma2; in init_trix_wss() local 163 switch (dma2) { in init_trix_wss() 170 printk(KERN_ERR "AudioTrix: Bad capture DMA %d\n", dma2); in init_trix_wss() 230 if (dma2 == -1 || dma2 == dma1) in init_trix_wss() 233 dma2 = dma1; in init_trix_wss() 243 trix_write(0x14, tmp | 0x80 | (dma2 << 4)); in init_trix_wss() 251 dma2, in init_trix_wss() 373 int dma2 = hw_config->dma2; in unload_trix_wss() local 375 if (dma2 == -1) in unload_trix_wss() 376 dma2 = hw_config->dma; in unload_trix_wss() [all …]
|
D | sb_card.c | 149 legacy->conf.dma2 = dma16; in sb_init_legacy() 155 legacy->mpucnf.dma2 = -1; in sb_init_legacy() 172 scc->conf.dma2 = -1; in sb_dev2cfg() 176 scc->mpucnf.dma2 = -1; in sb_dev2cfg() 184 scc->conf.dma2 = pnp_dma(dev,1); in sb_dev2cfg() 192 scc->conf.dma2 = pnp_dma(dev,1); in sb_dev2cfg() 199 scc->conf.dma2 = pnp_dma(dev,1); in sb_dev2cfg() 207 scc->conf.dma2 = pnp_dma(dev,1); in sb_dev2cfg() 225 scc->conf.dma2 = pnp_dma(dev,0); in sb_dev2cfg() 233 scc->conf.dma2 = pnp_dma(dev,0); in sb_dev2cfg() [all …]
|
D | ad1848.c | 63 int dma1, dma2; member 1963 devc->dma2 = dma_capture; in ad1848_init() 1986 if (devc->dma1 == devc->dma2 || devc->dma2 == -1 || devc->dma1 == -1) in ad1848_init() 2608 int dma2 = hw_config->dma2; in attach_ms_sound() local 2615 hw_config->dma2, 0, in attach_ms_sound() 2640 if (dma2 != -1 && dma2 != dma) in attach_ms_sound() 2642 if (!((dma == 0 && dma2 == 1) || in attach_ms_sound() 2643 (dma == 1 && dma2 == 0) || in attach_ms_sound() 2644 (dma == 3 && dma2 == 0))) in attach_ms_sound() 2648 dma = dma2; in attach_ms_sound() [all …]
|
D | waveartist.c | 1283 devc->hw.dma, devc->hw.dma2); in waveartist_init() 1292 devc, devc->hw.dma, devc->hw.dma2); in waveartist_init() 1318 if (devc->hw.dma != devc->hw.dma2 && devc->hw.dma2 != NO_DMA) in waveartist_init() 1319 if (sound_alloc_dma(devc->hw.dma2, devc->hw.name)) { in waveartist_init() 1321 devc->hw.name, devc->hw.dma2); in waveartist_init() 1406 if (hw->dma != hw->dma2 && hw->dma2 != NO_DMA) in attach_waveartist() 1460 if (devc->hw.dma != devc->hw.dma2 && in unload_waveartist() 1461 devc->hw.dma2 != NO_DMA) in unload_waveartist() 1462 sound_free_dma(devc->hw.dma2); in unload_waveartist() 1974 static int __initdata dma2 = 0; variable [all …]
|
D | sb_common.c | 407 if (hw_config->dma2 < 0) in init_Jazz16() 412 if (hw_config->dma2 < 5 || hw_config->dma2 > 7 || jazz_dma_bits[hw_config->dma2] == 0) in init_Jazz16() 414 printk(KERN_ERR "Jazz16: Invalid 16 bit DMA (DMA%d)\n", hw_config->dma2); in init_Jazz16() 417 devc->dma16 = hw_config->dma2; in init_Jazz16() 423 (jazz_dma_bits[hw_config->dma2] << 4))) in init_Jazz16() 794 if (hw_config->dma2 == -1) in sb_dsp_init() 796 else if (hw_config->dma2 < 5 || hw_config->dma2 > 7) in sb_dsp_init() 802 devc->dma16 = hw_config->dma2; in sb_dsp_init()
|
D | soundcard.c | 702 if (hw_config->dma != -1 || hw_config->dma2 != -1) in conf_printf() 705 if (hw_config->dma2 != -1) in conf_printf() 706 printk(",%d", hw_config->dma2); in conf_printf() 713 void conf_printf2(char *name, int base, int irq, int dma, int dma2) in conf_printf2() argument 723 if (dma != -1 || dma2 != -1) in conf_printf2() 726 if (dma2 != -1) in conf_printf2() 727 printk(",%d", dma2); in conf_printf2()
|
D | sound_calls.h | 13 void DMAbuf_init(int dev, int dma1, int dma2); 80 void conf_printf2(char *name, int base, int irq, int dma, int dma2);
|
D | dev_table.c | 53 void *devc, int dma1, int dma2) in sound_install_audiodrv() argument 103 DMAbuf_init(num, dma1, dma2); in sound_install_audiodrv()
|
/sound/isa/gus/ |
D | gus_main.c | 118 if (!gus->equal_dma && gus->gf1.dma2 >= 0) { in snd_gus_free() 119 disable_dma(gus->gf1.dma2); in snd_gus_free() 120 free_dma(gus->gf1.dma2); in snd_gus_free() 134 int irq, int dma1, int dma2, in snd_gus_create() argument 161 gus->gf1.dma2 = -1; in snd_gus_create() 196 if (dma2 >= 0 && dma1 != dma2) { in snd_gus_create() 197 if (request_dma(dma2, "GUS - 2")) { in snd_gus_create() 198 snd_printk(KERN_ERR "gus: can't grab DMA2 %d\n", dma2); in snd_gus_create() 202 gus->gf1.dma2 = dma2; in snd_gus_create() 204 gus->gf1.dma2 = gus->gf1.dma1; in snd_gus_create() [all …]
|
D | gusclassic.c | 49 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3,5,6,7 */ variable 67 module_param_array(dma2, int, NULL, 0444); 68 MODULE_PARM_DESC(dma2, "DMA2 # for " CRD_NAME " driver."); 105 if (dma2[n] == SNDRV_AUTO_DMA) { in snd_gusclassic_create() 106 dma2[n] = snd_legacy_find_free_dma(possible_dmas); in snd_gusclassic_create() 107 if (dma2[n] < 0) { in snd_gusclassic_create() 114 return snd_gus_create(card, port[n], irq[n], dma1[n], dma2[n], in snd_gusclassic_create() 120 error = snd_gus_create(card, port[n], irq[n], dma1[n], dma2[n], in snd_gusclassic_create() 198 if (gus->gf1.dma2 >= 0) in snd_gusclassic_probe() 200 "&%d", gus->gf1.dma2); in snd_gusclassic_probe()
|
D | gusmax.c | 47 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3,5,6,7 */ variable 65 module_param_array(dma2, int, NULL, 0444); 66 MODULE_PARM_DESC(dma2, "DMA2 # for GUS MAX driver."); 137 if (gus->gf1.dma2 > 3) in snd_gusmax_init() 242 xdma2 = dma2[dev]; in snd_gusmax_probe()
|
D | interwave.c | 68 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable 105 module_param_array(dma2, int, NULL, 0444); 106 MODULE_PARM_DESC(dma2, "DMA2 # for InterWave driver."); 585 if (dma2[dev] >= 0) in snd_interwave_pnp() 586 dma2[dev] = pnp_dma(pdev, 1); in snd_interwave_pnp() 592 snd_printdd("isapnp IW: dma1=%i, dma2=%i, irq=%i\n", dma1[dev], dma2[dev], irq[dev]); in snd_interwave_pnp() 655 xdma2 = dma2[dev]; in snd_interwave_probe() 820 if (dma2[dev] == SNDRV_AUTO_DMA) { in snd_interwave_isa_probe() 821 if ((dma2[dev] = snd_legacy_find_free_dma(possible_dmas)) < 0) { in snd_interwave_isa_probe()
|
/sound/isa/ |
D | cmi8328.c | 42 static int dma2[CMI8328_MAX] = {[0 ... (CMI8328_MAX-1)] = SNDRV_AUTO_DMA}; variable 60 module_param_array(dma2, int, NULL, 0444); 61 MODULE_PARM_DESC(dma2, "DMA2 for CMI8328 driver."); 264 if (dma2[ndev] == SNDRV_AUTO_DMA) { in snd_cmi8328_probe() 265 dma2[ndev] = snd_legacy_find_free_dma(dma2s[dma1[ndev] % 4]); in snd_cmi8328_probe() 266 if (dma2[ndev] < 0) { in snd_cmi8328_probe() 268 dma2[ndev] = -1; in snd_cmi8328_probe() 286 if (dma2[ndev] >= 0 && dma1[ndev] != dma2[ndev]) { in snd_cmi8328_probe() 287 pos = array_find(dma2s[dma1[ndev]], dma2[ndev]); in snd_cmi8328_probe() 289 snd_printk(KERN_ERR "invalid DMA2 %d\n", dma2[ndev]); in snd_cmi8328_probe() [all …]
|
D | es18xx.c | 110 int dma2; /* DMA2 */ member 502 snd_dma_program(chip->dma2, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); in snd_es18xx_playback1_prepare() 518 if (chip->dma2 >= 4) in snd_es18xx_playback1_trigger() 819 pos = snd_dma_pointer(chip->dma2, size); in snd_es18xx_playback_pointer() 1429 snd_es18xx_config_write(chip, 0x75, chip->dma2); in snd_es18xx_initialize() 1476 switch (chip->dma2) { in snd_es18xx_initialize() 1490 snd_printk(KERN_ERR "invalid dma2 %d\n", chip->dma2); in snd_es18xx_initialize() 1662 if (chip->dma1 == chip->dma2) in snd_es18xx_probe() 1721 chip->dma1 > 3 || chip->dma2 > 3 ? 128*1024 : 64*1024); in snd_es18xx_pcm() 1769 if (chip->dma2 >= 0 && chip->dma1 != chip->dma2) { in snd_es18xx_free() [all …]
|
D | azt2320.c | 66 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* PnP setup */ variable 126 dma2[dev] = pnp_dma(pdev, 1); in snd_card_azt2320_pnp() 206 dma1[dev], dma2[dev], in snd_card_azt2320_probe() 216 card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); in snd_card_azt2320_probe()
|
D | sscape.c | 57 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; variable 81 module_param_array(dma2, int, NULL, 0444); 82 MODULE_PARM_DESC(dma2, "DMA2 # for SoundScape driver."); 850 int irq, int dma1, int dma2) in create_ad1845() argument 877 err = snd_wss_create(card, port, -1, irq, dma1, dma2, in create_ad1845() 1071 dma[dev], dma2[dev]); in create_sscape() 1083 sscape->chip->dma1, sscape->chip->dma2); in create_sscape() 1285 dma2[idx] = dma[idx]; in sscape_pnp_detect() 1289 dma2[idx] = pnp_dma(dev, 1); in sscape_pnp_detect()
|
/sound/isa/cs423x/ |
D | cs4231.c | 50 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable 68 module_param_array(dma2, int, NULL, 0444); 69 MODULE_PARM_DESC(dma2, "DMA2 # for " CRD_NAME " driver."); 101 error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], dma2[n], in snd_cs4231_probe() 117 if (dma2[n] >= 0) in snd_cs4231_probe() 118 sprintf(card->longname + strlen(card->longname), "&%d", dma2[n]); in snd_cs4231_probe()
|
D | cs4236.c | 89 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable 117 module_param_array(dma2, int, NULL, 0444); 118 MODULE_PARM_DESC(dma2, "DMA2 # for " IDENT " driver."); 266 dma2[dev] = pnp_dma(pdev, 1) == 4 ? -1 : (int)pnp_dma(pdev, 1); in snd_cs423x_pnp_init_wss() 270 irq[dev], dma1[dev], dma2[dev]); in snd_cs423x_pnp_init_wss() 399 dma1[dev], dma2[dev], in snd_cs423x_probe() 430 if (dma2[dev] >= 0) in snd_cs423x_probe() 431 sprintf(card->longname + strlen(card->longname), "&%d", dma2[dev]); in snd_cs423x_probe()
|
/sound/isa/galaxy/ |
D | galaxy.c | 54 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; variable 70 module_param_array(dma2, int, NULL, 0444); 71 MODULE_PARM_DESC(dma2, "Capture DMA # for " CRD_NAME " driver."); 295 if (dma2[n] == SNDRV_AUTO_DMA || dma2[n] == dma1[n]) { in snd_galaxy_match() 296 dma2[n] = -1; in snd_galaxy_match() 301 switch (dma2[n]) { in snd_galaxy_match() 308 dev_err(dev, "invalid capture DMA %d\n", dma2[n]); in snd_galaxy_match() 565 dma2[n]); in snd_galaxy_probe() 568 dma2[n], WSS_HW_DETECT, 0, &chip); in snd_galaxy_probe()
|
/sound/isa/ad1816a/ |
D | ad1816a_lib.c | 276 snd_dma_program(chip->dma2, runtime->dma_addr, size, in snd_ad1816a_capture_prepare() 312 ptr = snd_dma_pointer(chip->dma2, chip->c_dma_size); in snd_ad1816a_capture_pointer() 469 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.buffer_bytes_max); in snd_ad1816a_capture_open() 470 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.period_bytes_max); in snd_ad1816a_capture_open() 573 if (chip->dma2 >= 0) { in snd_ad1816a_free() 574 snd_dma_disable(chip->dma2); in snd_ad1816a_free() 575 free_dma(chip->dma2); in snd_ad1816a_free() 600 unsigned long port, int irq, int dma1, int dma2, in snd_ad1816a_create() argument 610 chip->dma2 = -1; in snd_ad1816a_create() 629 if (request_dma(dma2, "AD1816A - 2")) { in snd_ad1816a_create() [all …]
|
D | ad1816a.c | 54 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* PnP setup */ variable 116 dma2[dev] = pnp_dma(pdev, 1); in snd_card_ad1816a_pnp() 161 dma2[dev], in snd_card_ad1816a_probe() 172 card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); in snd_card_ad1816a_probe()
|
/sound/isa/wavefront/ |
D | wavefront.c | 53 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable 72 module_param_array(dma2, int, NULL, 0444); 73 MODULE_PARM_DESC(dma2, "DMA2 # for CS4232 PCM interface."); 164 dma2[dev] = pnp_dma(pdev, 1); in snd_wavefront_pnp() 207 dma2[dev], in snd_wavefront_pnp() 376 cs4232_pcm_irq[dev], dma1[dev], dma2[dev], in snd_wavefront_probe() 524 if (dma2[dev] >= 0 && dma2[dev] < 8) in snd_wavefront_probe() 525 sprintf(card->longname + strlen(card->longname), "&%d", dma2[dev]); in snd_wavefront_probe()
|
/sound/isa/opti9xx/ |
D | miro.c | 61 static int dma2 = SNDRV_DEFAULT_DMA1; /* 0,1,3 */ variable 84 module_param(dma2, int, 0444); 85 MODULE_PARM_DESC(dma2, "2nd dma # for miro driver."); 125 int dma2; member 789 chip->dma2 = -1; in snd_miro_init() 951 snd_iprintf(buffer, " dma : %d,%d\n\n", miro->dma1, miro->dma2); in snd_miro_proc_read() 1096 if (chip->dma1 == chip->dma2) { in snd_miro_configure() 1101 switch (chip->dma2) { in snd_miro_configure() 1106 snd_printk(KERN_ERR "WSS dma2 # %d not valid\n", chip->dma2); in snd_miro_configure() 1299 miro->dma2 = dma2; in snd_miro_probe() [all …]
|
D | opti92x-ad1848.c | 78 static int dma2 = SNDRV_DEFAULT_DMA1; /* 0,1,3 */ variable 104 module_param(dma2, int, 0444); 105 MODULE_PARM_DESC(dma2, "2nd dma # for opti9xx driver."); 340 int irq, int dma1, int dma2, in snd_opti9xx_configure() argument 482 if (dma1 == dma2) { in snd_opti9xx_configure() 487 switch (dma2) { in snd_opti9xx_configure() 492 snd_printk(KERN_WARNING "WSS dma2 # %d not valid\n", dma2); in snd_opti9xx_configure() 784 dma2 = pnp_dma(pdev, 1); 830 xdma2 = dma2; 1005 if (dma2 == SNDRV_AUTO_DMA) { [all …]
|
/sound/isa/wss/ |
D | wss_lib.c | 1069 snd_dma_program(chip->dma2, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); in snd_wss_capture_prepare() 1172 ptr = snd_dma_pointer(chip->dma2, chip->c_dma_size); in snd_wss_capture_pointer() 1562 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.buffer_bytes_max); in snd_wss_capture_open() 1563 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.period_bytes_max); in snd_wss_capture_open() 1566 if ((err = chip->claim_dma(chip, chip->dma_private_data, chip->dma2)) < 0) in snd_wss_capture_open() 1573 chip->release_dma(chip, chip->dma_private_data, chip->dma2); in snd_wss_capture_open() 1701 chip->dma2 >= 0 && chip->dma2 != chip->dma1) { in snd_wss_free() 1702 snd_dma_disable(chip->dma2); in snd_wss_free() 1703 free_dma(chip->dma2); in snd_wss_free() 1801 int irq, int dma1, int dma2, in snd_wss_create() argument [all …]
|