[alsa-devel] [PATCH] Enable E-mu 0204
Joseph Teichman
josteich at gmail.com
Sun Feb 6 05:13:06 CET 2011
This is a trivial patch to enable the E-mu 0204, which is the newest
device in the series 0202USB, 0404USB and Tracker Pre.
Signed-off-by: Joseph Teichman <josteich at gmail.com>
--- alsa-kmirror/usb/mixer.c 2011-01-27 07:09:20.000000000 -0500
+++ alsa-kmirror-jt/usb/mixer.c 2011-02-05 20:42:00.000000000 -0500
@@ -1566,7 +1566,7 @@
cval->initialized = 1;
} else {
if (type == USB_XU_CLOCK_RATE) {
- /* E-Mu USB 0404/0202/TrackerPre
+ /* E-Mu USB 0404/0202/TrackerPre/0204
* samplerate control quirk
*/
cval->min = 0;
diff -u ./quirks.c /home/joe/alsa-driver-1.0.24-jt/sound/usb/quirks.c
--- ./quirks.c 2011-01-27 07:09:20.000000000 -0500
+++ /home/joe/alsa-driver-1.0.24-jt/sound/usb/quirks.c 2011-02-05
20:40:28.000000000 -0500
@@ -532,7 +532,7 @@
}
/*
- * For E-Mu 0404USB/0202USB/TrackerPre sample rate should be set for device,
+ * For E-Mu 0404USB/0202USB/TrackerPre/0204USB sample rate should be
set for device,
* not for interface.
*/
@@ -589,6 +589,7 @@
case USB_ID(0x041e, 0x3f02): /* E-Mu 0202 USB */
case USB_ID(0x041e, 0x3f04): /* E-Mu 0404 USB */
case USB_ID(0x041e, 0x3f0a): /* E-Mu Tracker Pre */
+ case USB_ID(0x041e, 0x3f19): /* E-Mu 0204 USB */
set_format_emu_quirk(subs, fmt);
break;
}
diff -u ./quirks-table.h
/home/joe/alsa-driver-1.0.24-jt/sound/usb/quirks-table.h
--- ./quirks-table.h 2011-01-27 07:09:20.000000000 -0500
+++ /home/joe/alsa-driver-1.0.24-jt/sound/usb/quirks-table.h
2011-02-05 20:41:02.000000000 -0500
@@ -79,6 +79,13 @@
.idProduct = 0x3f0a,
.bInterfaceClass = USB_CLASS_AUDIO,
},
+{
+ /* E-Mu 0204 USB */
+ .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
+ .idVendor = 0x041e,
+ .idProduct = 0x3f19,
+ .bInterfaceClass = USB_CLASS_AUDIO,
+},
/*
* Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
More information about the Alsa-devel
mailing list