From: Takashi Iwai Subject: Re: [PATCH] Reduce interrupt latency in sound/pci/via82xx.c Date: Tue, 18 Oct 2005 14:54:52 +0200 Message-ID: References: <200509121418.05184.annabellesgarden@yahoo.de> <200509262052.38990.annabellesgarden@yahoo.de> <200510181442.11185.annabellesgarden@yahoo.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <200510181442.11185.annabellesgarden@yahoo.de> 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: Karsten Wiese Cc: James Courtier-Dutton , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 18 Oct 2005 14:42:10 +0200, Karsten Wiese wrote: > > > > > Also, could you use tabs instead of spaces, as mentioned in > > CodingStyle? > > KMail fooled me once again. Better now? Yep. > Interrupt return macro for 2.4 compatibility is also there. Well.... > -static irqreturn_t snd_via82xx_interrupt(int irq, void *dev_id, struct pt_regs *regs) > +static irqreturn_t snd_via686_interrupt(int irq, void *dev_id, struct pt_regs *regs) > { (snip) > - return IRQ_HANDLED; > + return IRQ_RETVAL(IRQ_HANDLED); This change is useless. > +} > + > +/* > + * Interrupt handler > + */ > +static irqreturn_t snd_via8233_interrupt(int irq, void *dev_id, struct pt_regs *regs) > +{ > + via82xx_t *chip = dev_id; > + unsigned int status; > + unsigned int i; > + irqreturn_t irqreturn = IRQ_NONE; It should be just an int: int irqreturn = 0; (snip) > + outb(c_status, VIADEV_REG(viadev, OFFSET_STATUS)); /* ack */ > + irqreturn = IRQ_HANDLED; And irqreturn = 1; Others look fine. I'll commit your patch with these fixes. Thanks! Takashi ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl