From: Takashi Iwai Subject: Re: [alsa-cvslog] alsa-kernel: emu10k1: Fix outl() in snd_emu10k1_resume_regs() Date: Wed, 04 Oct 2006 18:26:24 +0200 Message-ID: References: <4523DFF2.4020105@superbug.co.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4523DFF2.4020105@superbug.co.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: James Courtier-Dutton Cc: alsa-devel List-Id: alsa-devel@alsa-project.org At Wed, 04 Oct 2006 17:23:14 +0100, James Courtier-Dutton wrote: > > Takashi Iwai wrote: > > - outl(emu->port + A_IOCFG, emu->saved_a_iocfg); > > - outl(emu->port + HCFG, emu->saved_hcfg); > > + outl(emu->saved_a_iocfg, emu->port + A_IOCFG); > > + outl(emu->saved_hcfg, emu->port + HCFG); > > > Is there any tool to find out who got this wrong in the first place? One could check whether the argument is long or not. The long is likely an i/o port while the data is int or unsigned int. But, C allows implicit conversion, so the compiler would never complain... Takashi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV