Commit 1cdfa9f3 authored by Joseph Teichman's avatar Joseph Teichman Committed by Takashi Iwai

ALSA: usbaudio - Enable the E-MU 0204 USB

Signed-off-by: default avatarJoseph Teichman <josteich@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 460c92fa
...@@ -95,7 +95,7 @@ enum { ...@@ -95,7 +95,7 @@ enum {
}; };
/*E-mu 0202(0404) eXtension Unit(XU) control*/ /*E-mu 0202/0404/0204 eXtension Unit(XU) control*/
enum { enum {
USB_XU_CLOCK_RATE = 0xe301, USB_XU_CLOCK_RATE = 0xe301,
USB_XU_CLOCK_SOURCE = 0xe302, USB_XU_CLOCK_SOURCE = 0xe302,
...@@ -1566,7 +1566,7 @@ static int build_audio_procunit(struct mixer_build *state, int unitid, void *raw ...@@ -1566,7 +1566,7 @@ static int build_audio_procunit(struct mixer_build *state, int unitid, void *raw
cval->initialized = 1; cval->initialized = 1;
} else { } else {
if (type == USB_XU_CLOCK_RATE) { if (type == USB_XU_CLOCK_RATE) {
/* E-Mu USB 0404/0202/TrackerPre /* E-Mu USB 0404/0202/TrackerPre/0204
* samplerate control quirk * samplerate control quirk
*/ */
cval->min = 0; cval->min = 0;
......
...@@ -79,6 +79,13 @@ ...@@ -79,6 +79,13 @@
.idProduct = 0x3f0a, .idProduct = 0x3f0a,
.bInterfaceClass = USB_CLASS_AUDIO, .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 * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
......
...@@ -532,7 +532,7 @@ int snd_usb_is_big_endian_format(struct snd_usb_audio *chip, struct audioformat ...@@ -532,7 +532,7 @@ int snd_usb_is_big_endian_format(struct snd_usb_audio *chip, struct audioformat
} }
/* /*
* For E-Mu 0404USB/0202USB/TrackerPre sample rate should be set for device, * For E-Mu 0404USB/0202USB/TrackerPre/0204 sample rate should be set for device,
* not for interface. * not for interface.
*/ */
...@@ -589,6 +589,7 @@ void snd_usb_set_format_quirk(struct snd_usb_substream *subs, ...@@ -589,6 +589,7 @@ void snd_usb_set_format_quirk(struct snd_usb_substream *subs,
case USB_ID(0x041e, 0x3f02): /* E-Mu 0202 USB */ case USB_ID(0x041e, 0x3f02): /* E-Mu 0202 USB */
case USB_ID(0x041e, 0x3f04): /* E-Mu 0404 USB */ case USB_ID(0x041e, 0x3f04): /* E-Mu 0404 USB */
case USB_ID(0x041e, 0x3f0a): /* E-Mu Tracker Pre */ case USB_ID(0x041e, 0x3f0a): /* E-Mu Tracker Pre */
case USB_ID(0x041e, 0x3f19): /* E-Mu 0204 USB */
set_format_emu_quirk(subs, fmt); set_format_emu_quirk(subs, fmt);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment