Lines Matching refs:dev

770 		dev_dbg(cm->card->dev, "cannot set dac channels\n");  in snd_cmipci_pcm_prepare()
824 dev_dbg(cm->card->dev, "functrl1 = %08x\n", val); in snd_cmipci_pcm_prepare()
840 dev_dbg(cm->card->dev, "chformat = %08x\n", val); in snd_cmipci_pcm_prepare()
878 dev_dbg(cm->card->dev, "functrl0 = %08x\n", cm->ctrl); in snd_cmipci_pcm_trigger()
926 dev_err(cm->card->dev, "invalid PCM pointer: %#x\n", rem); in snd_cmipci_pcm_pointer()
1891 &cm->pci->dev, 64*1024, 128*1024); in snd_cmipci_pcm_new()
1913 &cm->pci->dev, 64*1024, 128*1024); in snd_cmipci_pcm2_new()
1936 &cm->pci->dev, 64*1024, 128*1024); in snd_cmipci_pcm_spdif_new()
2837 static int snd_cmipci_create_gameport(struct cmipci *cm, int dev) in snd_cmipci_create_gameport() argument
2844 if (joystick_port[dev] == 0) in snd_cmipci_create_gameport()
2847 if (joystick_port[dev] == 1) { /* auto-detect */ in snd_cmipci_create_gameport()
2850 r = devm_request_region(&cm->pci->dev, io_port, 1, in snd_cmipci_create_gameport()
2856 io_port = joystick_port[dev]; in snd_cmipci_create_gameport()
2857 r = devm_request_region(&cm->pci->dev, io_port, 1, in snd_cmipci_create_gameport()
2862 dev_warn(cm->card->dev, "cannot reserve joystick ports\n"); in snd_cmipci_create_gameport()
2868 dev_err(cm->card->dev, "cannot allocate memory for gameport\n"); in snd_cmipci_create_gameport()
2873 gameport_set_dev_parent(gp, &cm->pci->dev); in snd_cmipci_create_gameport()
2893 static inline int snd_cmipci_create_gameport(struct cmipci *cm, int dev) { return -ENOSYS; } in snd_cmipci_create_gameport() argument
2951 dev_err(cm->card->dev, in snd_cmipci_create_fm()
2959 dev_err(cm->card->dev, "cannot create OPL3 hwdep\n"); in snd_cmipci_create_fm()
2971 int dev) in snd_cmipci_create() argument
3004 if (devm_request_irq(&pci->dev, pci->irq, snd_cmipci_interrupt, in snd_cmipci_create()
3006 dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq); in snd_cmipci_create()
3021 cm->do_soft_ac3 = soft_ac3[dev]; in snd_cmipci_create()
3116 if (mpu_port[dev]) in snd_cmipci_create()
3123 iomidi = mpu_port[dev]; in snd_cmipci_create()
3137 dev_err(cm->card->dev, in snd_cmipci_create()
3148 err = snd_cmipci_create_fm(cm, fm_port[dev]); in snd_cmipci_create()
3188 dev_err(cm->card->dev, in snd_cmipci_create()
3202 if (snd_cmipci_create_gameport(cm, dev) < 0) in snd_cmipci_create()
3216 static int dev; in snd_cmipci_probe() local
3220 if (dev >= SNDRV_CARDS) in snd_cmipci_probe()
3222 if (! enable[dev]) { in snd_cmipci_probe()
3223 dev++; in snd_cmipci_probe()
3227 err = snd_devm_card_new(&pci->dev, index[dev], id[dev], THIS_MODULE, in snd_cmipci_probe()
3246 err = snd_cmipci_create(card, pci, dev); in snd_cmipci_probe()
3255 dev++; in snd_cmipci_probe()
3286 static int snd_cmipci_suspend(struct device *dev) in snd_cmipci_suspend() argument
3288 struct snd_card *card = dev_get_drvdata(dev); in snd_cmipci_suspend()
3305 static int snd_cmipci_resume(struct device *dev) in snd_cmipci_resume() argument
3307 struct snd_card *card = dev_get_drvdata(dev); in snd_cmipci_resume()