From: Takashi Iwai Subject: Re: RE : [RFC][PATCH] snd-usb-audio and audiophile usb analog capture Date: Tue, 14 Mar 2006 12:47:10 +0100 Message-ID: References: <088c01c64752$77d4c140$a578e4a0@supelec.fr> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <088c01c64752$77d4c140$a578e4a0@supelec.fr> 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: Thibault LE MEUR Cc: alsa-devel@lists.sourceforge.net, smithbone@gmail.com, sander@3v8.net, 'ronny' List-Id: alsa-devel@alsa-project.org At Tue, 14 Mar 2006 11:31:29 +0100, Thibault LE MEUR wrote: > > > Hi Takashi, > > > Could you remove non-ASCII characters as much as possible? > > Of course, shame on me... I didn't see them, I hope there are none left... > > > static is missing still in the definition part. > > > > +int audiophile_skip_setting_quirk(int iface, int altno) { > > > > Also, put the brace to the next line. > > Done. > > > One more thing: > > > > The device_setup should be an array because usb-audio driver > > can have multiple instances. Use device_setup[chip->index] instead. > > Ok, I've patched this in the following way: > > * device_setup is a static array > However, since this is not a "static int" anymore, do I have to initialize > the value to 0x00 (currently not) or is it automatically zero-initialized in > case of static int arrays? > > * I've modified the quirk to have the "chip" as the first parameter, and to > be able to use device_setup[chip->index] instead > > > Also, submit with a proper changelog of the patch and a > > signed-off-by line for merging. > > Summary: Fixes audiophile usb analog capture with the new device_setup > parameter. > > The patch adds the "device_setup" module parameter and a specific quirk to > correctly > initialize the audiophile usb device: this fixes the distorted sound bug on > the > Analog capture port. Backward compatibility is achieved by simply omitting > the new parameter. > > signed-off-by: Thibault LE MEUR OK, applied to CVS now. I modified white spaces a little bit, but essentially it's identical with yours. Thanks! Takashi ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642