From: Takashi Iwai Subject: Re: [PATCH] cmi8330: Allow MPU-401-less operation Date: Tue, 07 Jul 2009 18:25:50 +0200 Message-ID: References: <200907071809.49437.linux@rainbow-software.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id AFB97244B4 for ; Tue, 7 Jul 2009 18:25:51 +0200 (CEST) In-Reply-To: <200907071809.49437.linux@rainbow-software.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Ondrej Zary Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 7 Jul 2009 18:09:48 +0200, Ondrej Zary wrote: > > Adding MPU-401 support to cmi8330 driver could cause a regression (non-working > sound) on a system where there is no free IRQ for the MPU-401 device (which > is not very uncommon as this card requires two separate IRQs plus a third one > for MPU-401). > > > When MPU-401 PnP configuration fails (mostly because of unavailable IRQ), just > ignore MPU-401 and continue without it. > > Signed-off-by: Ondrej Zary Applied now. Thanks. Takashi > > --- linux-test/sound/isa/cmi8330.c 2009-07-06 22:39:24.000000000 +0200 > +++ linux-2.6.30-pentium/sound/isa/cmi8330.c 2009-07-06 22:39:09.000000000 > +0200 > @@ -389,12 +389,12 @@ > pdev = acard->mpu; > > err = pnp_activate_dev(pdev); > - if (err < 0) { > - snd_printk(KERN_ERR "MPU-401 PnP configure failure\n"); > - return -EBUSY; > + if (err < 0) > + snd_printk(KERN_ERR "MPU-401 PnP configure failure: will be disabled\n"); > + else { > + mpuport[dev] = pnp_port_start(pdev, 0); > + mpuirq[dev] = pnp_irq(pdev, 0); > } > - mpuport[dev] = pnp_port_start(pdev, 0); > - mpuirq[dev] = pnp_irq(pdev, 0); > return 0; > } > #endif > > > -- > Ondrej Zary > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >