Lines Matching full:dma1
23 * - The driver use dma2 for playback and dma1 for capture.
91 int dma1; /* DMA1 */ member
585 snd_dma_program(chip->dma1, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); in snd_es18xx_capture_prepare()
649 snd_dma_program(chip->dma1, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); in snd_es18xx_playback2_prepare()
797 pos = snd_dma_pointer(chip->dma1, size); in snd_es18xx_playback_pointer()
810 pos = snd_dma_pointer(chip->dma1, size); in snd_es18xx_capture_pointer()
1396 snd_es18xx_config_write(chip, 0x74, chip->dma1); in snd_es18xx_initialize()
1431 switch (chip->dma1) { in snd_es18xx_initialize()
1442 snd_printk(KERN_ERR "invalid dma1 %d\n", chip->dma1); in snd_es18xx_initialize()
1633 if (chip->dma1 == chip->dma2) in snd_es18xx_probe()
1687 chip->dma1 > 3 || chip->dma2 > 3 ? 128*1024 : 64*1024); in snd_es18xx_pcm()
1724 int irq, int dma1, int dma2) in snd_es18xx_new_device() argument
1732 chip->dma1 = -1; in snd_es18xx_new_device()
1750 if (snd_devm_request_dma(card->dev, dma1, "ES18xx DMA 1")) { in snd_es18xx_new_device()
1751 snd_printk(KERN_ERR PFX "unable to grap DMA1 %d\n", dma1); in snd_es18xx_new_device()
1754 chip->dma1 = dma1; in snd_es18xx_new_device()
1756 if (dma2 != dma1 && in snd_es18xx_new_device()
1914 static int dma1[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3 */ variable
1935 module_param_hw_array(dma1, int, dma, NULL, 0444);
1936 MODULE_PARM_DESC(dma1, "DMA 1 # for ES18xx driver.");
1973 dma1[dev] = pnp_dma(pdev, 0); in snd_audiodrive_pnp_init_main()
1977 snd_printdd("PnP ES18xx: dma1=%i, dma2=%i, irq=%i\n", dma1[dev], dma2[dev], irq[dev]); in snd_audiodrive_pnp_init_main()
2058 irq[dev], dma1[dev], dma2[dev]); in snd_audiodrive_probe()
2065 if (dma1[dev] != dma2[dev]) in snd_audiodrive_probe()
2066 sprintf(card->longname, "%s at 0x%lx, irq %d, dma1 %d, dma2 %d", in snd_audiodrive_probe()
2069 irq[dev], dma1[dev], dma2[dev]); in snd_audiodrive_probe()
2074 irq[dev], dma1[dev]); in snd_audiodrive_probe()
2141 if (dma1[dev] == SNDRV_AUTO_DMA) { in snd_es18xx_isa_probe()
2142 dma1[dev] = snd_legacy_find_free_dma(possible_dmas); in snd_es18xx_isa_probe()
2143 if (dma1[dev] < 0) { in snd_es18xx_isa_probe()
2144 snd_printk(KERN_ERR PFX "unable to find a free DMA1\n"); in snd_es18xx_isa_probe()