All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Allan Klinbail <allan_k@dodo.com.au>
Cc: Lee Revell <rlrevell@joe-job.com>, alsa-devel@alsa-project.org
Subject: Re: [ALSA - driver 0001203]: mtpav driver locks X	on	64 bit native system
Date: Thu, 29 Sep 2005 15:22:53 +0200	[thread overview]
Message-ID: <s5hoe6cdn4i.wl%tiwai@suse.de> (raw)
In-Reply-To: <1127318617.9212.4.camel@daw.littlewolf>

At Thu, 22 Sep 2005 02:03:37 +1000,
Allan Klinbail wrote:
> 
> Sorry I haven't been on for a little while... how do I apply this patch?

Copy the mail as a text file (as it is), and run the patch on your
alsa-kernel tree (with -p1 option).


Takashi

> 
> 
> 
> On Thu, 2005-09-08 at 18:56 +0200, Takashi Iwai wrote:
> > 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;
> > 
> -- 
> Allan Klinbail <allan_k@dodo.com.au>
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. 
> Download it for free - -and be entered to win a 42" plasma tv or your very
> own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

  reply	other threads:[~2005-09-29 13:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-27 17:39 [ALSA - driver 0001203]: mtpav driver locks X on 64 bit native system bugtrack
2005-09-08  6:36 ` Allan Klinbail
2005-09-08 16:36   ` Lee Revell
2005-09-08 16:56     ` Takashi Iwai
2005-09-21 16:03       ` Allan Klinbail
2005-09-29 13:22         ` Takashi Iwai [this message]
2005-10-01 13:23           ` Allan Klinbail
2005-10-01 15:01             ` Allan Klinbail
  -- strict thread matches above, loose matches on Subject: below --
2006-04-25 11:19 bugtrack
2006-04-25 11:18 bugtrack
2005-06-27 14:57 bugtrack
2005-06-26  8:54 bugtrack
2005-06-21  9:25 bugtrack
2005-06-20 11:47 bugtrack
2005-06-19 14:05 bugtrack
2005-06-19  6:51 bugtrack
2005-06-19  5:29 ` Allan Klinbail

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hoe6cdn4i.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=allan_k@dodo.com.au \
    --cc=alsa-devel@alsa-project.org \
    --cc=rlrevell@joe-job.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.