All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Enable E-mu 0204
@ 2011-02-06  4:13 Joseph Teichman
  2011-02-07 12:08 ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph Teichman @ 2011-02-06  4:13 UTC (permalink / raw)
  To: alsa-devel, patch

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Enable E-mu 0204
  2011-02-06  4:13 [PATCH] Enable E-mu 0204 Joseph Teichman
@ 2011-02-07 12:08 ` Takashi Iwai
  2011-05-12  8:28   ` jmcejuela
  0 siblings, 1 reply; 3+ messages in thread
From: Takashi Iwai @ 2011-02-07 12:08 UTC (permalink / raw)
  To: Joseph Teichman; +Cc: alsa-devel

At Sat, 5 Feb 2011 23:13:06 -0500,
Joseph Teichman wrote:
> 
> 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>

Thanks for the patch.
But the patch you embedded in the mail is broken due to MUA, and
can't be applied cleanly.

Please fix your MUA setup or use an attachment if it's difficult.


thanks,

Takashi

> 
> --- 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
> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Enable E-mu 0204
  2011-02-07 12:08 ` Takashi Iwai
@ 2011-05-12  8:28   ` jmcejuela
  0 siblings, 0 replies; 3+ messages in thread
From: jmcejuela @ 2011-05-12  8:28 UTC (permalink / raw)
  To: alsa-devel

Takashi Iwai <tiwai <at> suse.de> writes:

> 
> At Sat, 5 Feb 2011 23:13:06 -0500,
> Joseph Teichman wrote:
> > 
> > This is a trivial patch to enable the E-mu 0204, which is the newest
> > device in the series 0202USB, 0404USB and Tracker Pre.
> > 

May somebody indicate how to apply the patch?

I guess download current stable source code, then write patch changes in source
(which git command for that and how exactly? doesn't it affect multiple alsa
projects?) and then compile?


Thanks a lot.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-12  8:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-06  4:13 [PATCH] Enable E-mu 0204 Joseph Teichman
2011-02-07 12:08 ` Takashi Iwai
2011-05-12  8:28   ` jmcejuela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.