1 static int __devinit
snd_vx222_create(struct snd_card
*card
, struct pci_dev
*pci
,
2 struct snd_vx_hardware
*hw
,
3 struct snd_vx222
**rchip
)
7 static struct snd_device_ops ops
= {
8 .dev_free
= snd_vx222_dev_free
,
10 chip
= snd_vx_create(card
, hw
, vx_ops
,
11 sizeof(struct snd_vx222
) - sizeof(struct vx_core
));
13 pci_disable_device(pci
);
16 vx
= (struct snd_vx222
*)chip
;
19 if ((err
= pci_request_regions(pci
, CARD_NAME
)) < 0) {
23 for (i
= 0; i
< 2; i
++)
24 vx
->port
[i
] = pci_resource_start(pci
, i
+ 1);
26 if (request_irq(pci
->irq
, snd_vx_irq_handler
, IRQF_SHARED
,
33 if ((err
= snd_device_new(card
, SNDRV_DEV_LOWLEVEL
, chip
, &ops
)) < 0) {