24 #include <linux/slab.h>
51 snd_printdd(
"vaddr=%p made us428ctls_vm_fault() page %p\n",
57 static const struct vm_operations_struct us428ctls_vm_ops = {
58 .fault = snd_us428ctls_vm_fault,
84 area->
vm_ops = &us428ctls_vm_ops;
85 area->
vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
92 unsigned int mask = 0;
107 static int snd_usX2Y_hwdep_dsp_status(
struct snd_hwdep *hw,
153 .data = &quirk_data_1
163 .product_name =
"US428",
166 .data = &quirk_data_2
168 struct usb_device *
dev =
usX2Y(card)->dev;
178 static int usX2Y_create_alsa_devices(
struct snd_card *card)
183 if ((err = usX2Y_create_usbmidi(card)) < 0) {
184 snd_printk(
KERN_ERR "usX2Y_create_alsa_devices: usX2Y_create_usbmidi error %i \n", err);
198 static int snd_usX2Y_hwdep_dsp_load(
struct snd_hwdep *hw,
206 struct usb_device* dev = priv->
dev;
222 if (dsp->
index == 1) {
234 err = usX2Y_create_alsa_devices(hw->
card);
257 hw->
ops.dsp_status = snd_usX2Y_hwdep_dsp_status;
258 hw->
ops.dsp_load = snd_usX2Y_hwdep_dsp_load;
259 hw->
ops.mmap = snd_us428ctls_mmap;
260 hw->
ops.poll = snd_us428ctls_poll;
262 sprintf(hw->
name,
"/proc/bus/usb/%03d/%03d", device->bus->busnum, device->devnum);