/sound/isa/gus/ |
D | gus_main.c | 103 if (!gus->equal_dma && gus->gf1.dma2 >= 0) { in snd_gus_free() 104 disable_dma(gus->gf1.dma2); in snd_gus_free() 105 free_dma(gus->gf1.dma2); in snd_gus_free() 119 int irq, int dma1, int dma2, in snd_gus_create() argument 146 gus->gf1.dma2 = -1; in snd_gus_create() 184 if (dma2 >= 0 && dma1 != dma2) { in snd_gus_create() 185 if (request_dma(dma2, "GUS - 2")) { in snd_gus_create() 186 snd_printk(KERN_ERR "gus: can't grab DMA2 %d\n", dma2); in snd_gus_create() 190 gus->gf1.dma2 = dma2; in snd_gus_create() 192 gus->gf1.dma2 = gus->gf1.dma1; in snd_gus_create() [all …]
|
D | gusclassic.c | 33 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3,5,6,7 */ variable 51 module_param_hw_array(dma2, int, dma, NULL, 0444); 52 MODULE_PARM_DESC(dma2, "DMA2 # for " CRD_NAME " driver."); 89 if (dma2[n] == SNDRV_AUTO_DMA) { in snd_gusclassic_create() 90 dma2[n] = snd_legacy_find_free_dma(possible_dmas); in snd_gusclassic_create() 91 if (dma2[n] < 0) { in snd_gusclassic_create() 98 return snd_gus_create(card, port[n], irq[n], dma1[n], dma2[n], in snd_gusclassic_create() 104 error = snd_gus_create(card, port[n], irq[n], dma1[n], dma2[n], in snd_gusclassic_create() 184 if (gus->gf1.dma2 >= 0) in snd_gusclassic_probe() 186 "&%d", gus->gf1.dma2); in snd_gusclassic_probe()
|
D | interwave.c | 47 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable 84 module_param_hw_array(dma2, int, dma, NULL, 0444); 85 MODULE_PARM_DESC(dma2, "DMA2 # for InterWave driver."); 579 if (dma2[dev] >= 0) in snd_interwave_pnp() 580 dma2[dev] = pnp_dma(pdev, 1); in snd_interwave_pnp() 586 snd_printdd("isapnp IW: dma1=%i, dma2=%i, irq=%i\n", dma1[dev], dma2[dev], irq[dev]); in snd_interwave_pnp() 624 return snd_gus_create(card, port[dev], -irq[dev], dma1[dev], dma2[dev], in snd_interwave_probe_gus() 642 xdma2 = dma2[dev]; in snd_interwave_probe() 794 if (dma2[dev] == SNDRV_AUTO_DMA) { in snd_interwave_isa_probe() 795 dma2[dev] = snd_legacy_find_free_dma(possible_dmas); in snd_interwave_isa_probe() [all …]
|
D | gusmax.c | 31 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3,5,6,7 */ variable 49 module_param_hw_array(dma2, int, dma, NULL, 0444); 50 MODULE_PARM_DESC(dma2, "DMA2 # for GUS MAX driver."); 123 if (gus->gf1.dma2 > 3) in snd_gusmax_init() 221 xdma2 = dma2[dev]; in snd_gusmax_probe()
|
D | gus_pcm.c | 572 if (gus->gf1.dma2 > 3) in snd_gf1_pcm_capture_hw_params() 587 snd_dma_program(gus->gf1.dma2, runtime->dma_addr, gus->c_period_size, DMA_MODE_READ); in snd_gf1_pcm_capture_prepare() 615 int pos = snd_dma_pointer(gus->gf1.dma2, gus->c_period_size); in snd_gf1_pcm_capture_pointer() 728 snd_pcm_limit_isa_dma_size(gus->gf1.dma2, &runtime->hw.buffer_bytes_max); in snd_gf1_pcm_capture_open() 729 snd_pcm_limit_isa_dma_size(gus->gf1.dma2, &runtime->hw.period_bytes_max); in snd_gf1_pcm_capture_open() 878 if (gus->gf1.dma2 == gus->gf1.dma1) in snd_gf1_pcm_new() 882 64*1024, gus->gf1.dma2 > 3 ? 128*1024 : 64*1024); in snd_gf1_pcm_new()
|
/sound/isa/ |
D | cmi8328.c | 43 static int dma2[CMI8328_MAX] = {[0 ... (CMI8328_MAX-1)] = SNDRV_AUTO_DMA}; variable 61 module_param_hw_array(dma2, int, dma, NULL, 0444); 62 MODULE_PARM_DESC(dma2, "DMA2 for CMI8328 driver."); 265 if (dma2[ndev] == SNDRV_AUTO_DMA) { in snd_cmi8328_probe() 266 dma2[ndev] = snd_legacy_find_free_dma(dma2s[dma1[ndev] % 4]); in snd_cmi8328_probe() 267 if (dma2[ndev] < 0) { in snd_cmi8328_probe() 269 dma2[ndev] = -1; in snd_cmi8328_probe() 287 if (dma2[ndev] >= 0 && dma1[ndev] != dma2[ndev]) { in snd_cmi8328_probe() 288 pos = array_find(dma2s[dma1[ndev]], dma2[ndev]); in snd_cmi8328_probe() 290 snd_printk(KERN_ERR "invalid DMA2 %d\n", dma2[ndev]); in snd_cmi8328_probe() [all …]
|
D | es18xx.c | 92 int dma2; /* DMA2 */ member 477 snd_dma_program(chip->dma2, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); in snd_es18xx_playback1_prepare() 493 if (chip->dma2 >= 4) in snd_es18xx_playback1_trigger() 792 pos = snd_dma_pointer(chip->dma2, size); in snd_es18xx_playback_pointer() 1401 snd_es18xx_config_write(chip, 0x75, chip->dma2); in snd_es18xx_initialize() 1448 switch (chip->dma2) { in snd_es18xx_initialize() 1462 snd_printk(KERN_ERR "invalid dma2 %d\n", chip->dma2); in snd_es18xx_initialize() 1636 if (chip->dma1 == chip->dma2) in snd_es18xx_probe() 1690 chip->dma1 > 3 || chip->dma2 > 3 ? 128*1024 : 64*1024); in snd_es18xx_pcm() 1727 int irq, int dma1, int dma2) in snd_es18xx_new_device() argument [all …]
|
D | azt2320.c | 49 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* PnP setup */ variable 109 dma2[dev] = pnp_dma(pdev, 1); in snd_card_azt2320_pnp() 189 dma1[dev], dma2[dev], in snd_card_azt2320_probe() 197 card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); in snd_card_azt2320_probe()
|
D | sscape.c | 43 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; variable 67 module_param_hw_array(dma2, int, dma, NULL, 0444); 68 MODULE_PARM_DESC(dma2, "DMA2 # for SoundScape driver."); 826 int irq, int dma1, int dma2) in create_ad1845() argument 853 err = snd_wss_create(card, port, -1, irq, dma1, dma2, in create_ad1845() 1044 dma[dev], dma2[dev]); in create_sscape() 1056 sscape->chip->dma1, sscape->chip->dma2); in create_sscape() 1230 dma2[idx] = dma[idx]; in sscape_pnp_detect() 1234 dma2[idx] = pnp_dma(dev, 1); in sscape_pnp_detect()
|
D | opl3sa2.c | 39 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 1,3,5,6,7 */ variable 66 module_param_hw_array(dma2, int, dma, NULL, 0444); 67 MODULE_PARM_DESC(dma2, "DMA2 # for OPL3-SA driver."); 603 dma2[dev] = pnp_dma(pdev, 1); in snd_opl3sa2_pnp() 608 pnp_device_is_pnpbios(pdev) ? "BIOS" : "ISA", port[dev], dma1[dev], dma2[dev], irq[dev]); in snd_opl3sa2_pnp() 647 xdma2 = dma2[dev]; in snd_opl3sa2_probe()
|
/sound/isa/cs423x/ |
D | cs4231.c | 35 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable 53 module_param_hw_array(dma2, int, dma, NULL, 0444); 54 MODULE_PARM_DESC(dma2, "DMA2 # for " CRD_NAME " driver."); 86 error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], dma2[n], in snd_cs4231_probe() 100 if (dma2[n] < 0) in snd_cs4231_probe() 107 chip->pcm->name, chip->port, irq[n], dma1[n], dma2[n]); in snd_cs4231_probe()
|
D | cs4236.c | 40 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable 68 module_param_hw_array(dma2, int, dma, NULL, 0444); 69 MODULE_PARM_DESC(dma2, "DMA2 # for " IDENT " driver."); 216 dma2[dev] = pnp_dma(pdev, 1) == 4 ? -1 : (int)pnp_dma(pdev, 1); in snd_cs423x_pnp_init_wss() 220 irq[dev], dma1[dev], dma2[dev]); in snd_cs423x_pnp_init_wss() 343 dma1[dev], dma2[dev], in snd_cs423x_probe() 369 if (dma2[dev] < 0) in snd_cs423x_probe() 377 dma2[dev]); in snd_cs423x_probe()
|
D | cs4236_lib.c | 262 int irq, int dma1, int dma2, in snd_cs4236_create() argument 277 irq, dma1, dma2, hardware, hwshare, &chip); in snd_cs4236_create()
|
/sound/isa/galaxy/ |
D | galaxy.c | 41 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; variable 57 module_param_hw_array(dma2, int, dma, NULL, 0444); 58 MODULE_PARM_DESC(dma2, "Capture DMA # for " CRD_NAME " driver."); 283 if (dma2[n] == SNDRV_AUTO_DMA || dma2[n] == dma1[n]) { in snd_galaxy_match() 284 dma2[n] = -1; in snd_galaxy_match() 289 switch (dma2[n]) { in snd_galaxy_match() 297 dev_err(dev, "invalid capture DMA %d\n", dma2[n]); in snd_galaxy_match() 549 dma2[n]); in __snd_galaxy_probe() 552 dma2[n], WSS_HW_DETECT, 0, &chip); in __snd_galaxy_probe()
|
/sound/isa/wavefront/ |
D | wavefront.c | 39 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3,5,6,7 */ variable 58 module_param_hw_array(dma2, int, dma, NULL, 0444); 59 MODULE_PARM_DESC(dma2, "DMA2 # for CS4232 PCM interface."); 150 dma2[dev] = pnp_dma(pdev, 1); in snd_wavefront_pnp() 193 dma2[dev], in snd_wavefront_pnp() 349 cs4232_pcm_irq[dev], dma1[dev], dma2[dev], in snd_wavefront_probe() 500 if (dma2[dev] >= 0 && dma2[dev] < 8) in snd_wavefront_probe() 501 sprintf(card->longname + strlen(card->longname), "&%d", dma2[dev]); in snd_wavefront_probe()
|
/sound/isa/opti9xx/ |
D | opti92x-ad1848.c | 60 static int dma2 = SNDRV_DEFAULT_DMA1; /* 0,1,3 */ variable 86 module_param_hw(dma2, int, dma, 0444); 87 MODULE_PARM_DESC(dma2, "2nd dma # for opti9xx driver."); 324 int irq, int dma1, int dma2, in snd_opti9xx_configure() argument 471 if (dma1 == dma2) { in snd_opti9xx_configure() 476 switch (dma2) { in snd_opti9xx_configure() 481 snd_printk(KERN_WARNING "WSS dma2 # %d not valid\n", dma2); in snd_opti9xx_configure() 776 dma2 = pnp_dma(pdev, 1); 806 xdma2 = dma2; 987 if (dma2 == SNDRV_AUTO_DMA) { [all …]
|
D | miro.c | 45 static int dma2 = SNDRV_DEFAULT_DMA1; /* 0,1,3 */ variable 68 module_param_hw(dma2, int, dma, 0444); 69 MODULE_PARM_DESC(dma2, "2nd dma # for miro driver."); 109 int dma2; member 784 chip->dma2 = -1; in snd_miro_init() 948 snd_iprintf(buffer, " dma : %d,%d\n\n", miro->dma1, miro->dma2); in snd_miro_proc_read() 1090 if (chip->dma1 == chip->dma2) { in snd_miro_configure() 1095 switch (chip->dma2) { in snd_miro_configure() 1100 snd_printk(KERN_ERR "WSS dma2 # %d not valid\n", chip->dma2); in snd_miro_configure() 1287 miro->dma2 = dma2; in snd_miro_probe() [all …]
|
/sound/isa/ad1816a/ |
D | ad1816a_lib.c | 255 snd_dma_program(chip->dma2, runtime->dma_addr, size, in snd_ad1816a_capture_prepare() 291 ptr = snd_dma_pointer(chip->dma2, chip->c_dma_size); in snd_ad1816a_capture_pointer() 450 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.buffer_bytes_max); in snd_ad1816a_capture_open() 451 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.period_bytes_max); in snd_ad1816a_capture_open() 558 unsigned long port, int irq, int dma1, int dma2, in snd_ad1816a_create() argument 565 chip->dma2 = -1; in snd_ad1816a_create() 584 if (snd_devm_request_dma(card->dev, dma2, "AD1816A - 2")) { in snd_ad1816a_create() 585 snd_printk(KERN_ERR "ad1816a: can't grab DMA2 %d\n", dma2); in snd_ad1816a_create() 588 chip->dma2 = dma2; in snd_ad1816a_create() 632 pcm->info_flags = (chip->dma1 == chip->dma2 ) ? SNDRV_PCM_INFO_JOINT_DUPLEX : 0; in snd_ad1816a_pcm() [all …]
|
D | ad1816a.c | 35 static int dma2[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* PnP setup */ variable 97 dma2[dev] = pnp_dma(pdev, 1); in snd_card_ad1816a_pnp() 141 dma2[dev], in snd_card_ad1816a_probe() 151 card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); in snd_card_ad1816a_probe()
|
/sound/isa/wss/ |
D | wss_lib.c | 1039 snd_dma_program(chip->dma2, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); in snd_wss_capture_prepare() 1142 ptr = snd_dma_pointer(chip->dma2, chip->c_dma_size); in snd_wss_capture_pointer() 1533 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.buffer_bytes_max); in snd_wss_capture_open() 1534 snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.period_bytes_max); in snd_wss_capture_open() 1537 err = chip->claim_dma(chip, chip->dma_private_data, chip->dma2); in snd_wss_capture_open() 1545 chip->release_dma(chip, chip->dma_private_data, chip->dma2); in snd_wss_capture_open() 1742 int irq, int dma1, int dma2, in snd_wss_create() argument 1756 chip->dma2 = -1; in snd_wss_create() 1788 if (!(hwshare & WSS_HWSHARE_DMA2) && dma1 != dma2 && dma2 >= 0 && in snd_wss_create() 1789 snd_devm_request_dma(card->dev, dma2, "WSS - 2")) { in snd_wss_create() [all …]
|