From: Takashi Iwai Subject: Re: Problems with Hercules DJ Console and the usb-audio driver Date: Tue, 13 Sep 2005 13:15:45 +0200 Message-ID: References: <20050912182716.GA26327@nittionio.nu> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20050912182716.GA26327@nittionio.nu> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Daniel Svensson Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Mon, 12 Sep 2005 20:27:16 +0200, Daniel Svensson wrote: > > With ALSA 1.0.9 MIDI worked well. I could access both the MIDI > controllers on the device and the keyboard I connected to the device > aswell. There were more issues though, so I updated to latest cvs and > now MIDI doesn't work anylonger. When loading snd-usb-audio I get the > message: > > ALSA /home/nano/devel/alsa/alsa-driver/usb/usbmidi.c:1600: invalid quirk > type 2 > snd-usb-audio: probe of 1-1:1.3 failed with error -5 This may be fixed by the patch below. > The rest of the device doesn't work either. The mixer fails because the > mixer element "Delay Control" cannot be read. Not the right fix, but as a workaround, try to uncomment IGNORE_CTL_ERROR in usbmixer.c and recompile the driver. Takashi Index: alsa-kernel/usb/usbmidi.c =================================================================== RCS file: /home/iwai/cvs/alsa/alsa-kernel/usb/usbmidi.c,v retrieving revision 1.49 diff -u -r1.49 usbmidi.c --- alsa-kernel/usb/usbmidi.c 9 Sep 2005 13:18:34 -0000 1.49 +++ alsa-kernel/usb/usbmidi.c 13 Sep 2005 11:12:32 -0000 @@ -1550,7 +1550,7 @@ /* detect the endpoint(s) to use */ memset(endpoints, 0, sizeof(endpoints)); - if (!quirk) { + if (!quirk || quirk->type == QUIRK_MIDI_STANDARD_INTERFACE) { err = snd_usbmidi_get_ms_info(umidi, endpoints); } else { switch (quirk->type) { ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf