From: Takashi Iwai Subject: Re: [ALSA - driver 0001203]: mtpav driver locks X on 64 bit native system Date: Thu, 08 Sep 2005 18:56:34 +0200 Message-ID: References: <4a2952cca628b67c731e72971c492bf2@bugtrack.alsa-project.org> <1126161408.9937.7.camel@daw.littlewolf> <1126197394.12697.2.camel@mindpipe> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 84051164 for ; Thu, 8 Sep 2005 18:56:38 +0200 (MEST) In-Reply-To: <1126197394.12697.2.camel@mindpipe> 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: Lee Revell Cc: Allan Klinbail , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 08 Sep 2005 12:36:33 -0400, Lee Revell wrote: > > On Thu, 2005-09-08 at 16:36 +1000, Allan Klinbail wrote: > > Is any work being done on this... > > > > To my horror and disgust for work purposes I needed to install winblows > > on the amd64 and the MOTU proprietary 32 bit driver works... > > > > This simply confirms I have all my printer port settings correct in > > BIOS... > > Um, no, because the ALSA developers almost certainly don't have the > hardware. YOU need to work on it. The problem is that we haven't changed the driver so much for a long time. And the driver is quite simple. It's a parallel port. So, I'm wondering what is broken. You can try the following patch just for testing. It postpones the request_irq() call, in case any wandering irq caused the trouble. Takashi Index: alsa-kernel/drivers/mtpav.c =================================================================== RCS file: /home/iwai/cvs/alsa/alsa-kernel/drivers/mtpav.c,v retrieving revision 1.29 diff -u -r1.29 mtpav.c --- alsa-kernel/drivers/mtpav.c 5 Sep 2005 16:16:33 -0000 1.29 +++ alsa-kernel/drivers/mtpav.c 8 Sep 2005 16:55:34 -0000 @@ -592,13 +592,18 @@ /* * get ISA resources */ -static int snd_mtpav_get_ISA(mtpav_t * mcard) +static int __init snd_mtpav_get_ISA_port(mtpav_t * mcard) { if ((mcard->res_port = request_region(port, 3, "MotuMTPAV MIDI")) == NULL) { snd_printk("MTVAP port 0x%lx is busy\n", port); return -EBUSY; } mcard->port = port; + return 0; +} + +static int __init snd_mtpav_get_ISA_irq(mtpav_t * mcard) +{ if (request_irq(irq, snd_mtpav_irqh, SA_INTERRUPT, "MOTU MTPAV", (void *)mcard)) { snd_printk("MTVAP IRQ %d busy\n", irq); return -EBUSY; @@ -742,7 +747,7 @@ return -ENOMEM; } - err = snd_mtpav_get_ISA(mtp_card); + err = snd_mtpav_get_ISA_port(mtp_card); //printk("snd_mtpav_get_ISA returned: %d\n", err); if (err < 0) goto __error; @@ -769,6 +774,10 @@ snd_mtpav_portscan(mtp_card); + err = snd_mtpav_get_ISA_irq(mtp_card); + if (err < 0) + goto __error; + printk(KERN_INFO "Motu MidiTimePiece on parallel port irq: %d ioport: 0x%lx\n", irq, port); return 0; ------------------------------------------------------- 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