Lines Matching refs:dma2
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.");
262 if (dma2[ndev] == SNDRV_AUTO_DMA) { in snd_cmi8328_probe()
263 dma2[ndev] = snd_legacy_find_free_dma(dma2s[dma1[ndev] % 4]); in snd_cmi8328_probe()
264 if (dma2[ndev] < 0) { in snd_cmi8328_probe()
266 dma2[ndev] = -1; in snd_cmi8328_probe()
284 if (dma2[ndev] >= 0 && dma1[ndev] != dma2[ndev]) { in snd_cmi8328_probe()
285 pos = array_find(dma2s[dma1[ndev]], dma2[ndev]); in snd_cmi8328_probe()
287 snd_printk(KERN_ERR "invalid DMA2 %d\n", dma2[ndev]); in snd_cmi8328_probe()
305 dma2[ndev], WSS_HW_DETECT, 0, &cmi->wss); in snd_cmi8328_probe()
367 (dma2[ndev] >= 0) ? dma2[ndev] : dma1[ndev]); in snd_cmi8328_probe()