From: Takashi Iwai Subject: Re: [PATCH] HDA/Realtek: multiple input mux definitions and pin mode additions Date: Tue, 28 Mar 2006 12:47:58 +0200 Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <200603272354.k2RNsXiT009308@auster.physics.adelaide.edu.au> 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: Jonathan Woithe Cc: Rimas Kudelis , Lee Revell , ALSA devel List-Id: alsa-devel@alsa-project.org At Tue, 28 Mar 2006 09:24:33 +0930 (CST), Jonathan Woithe wrote: > > Hi Takashi > > > > The following patch relative to CVS from 20060324 adds the following > > > features to the Realtek HDA codec. > > > > > > 1) Define two new pin modes: ALC_PIN_DIR_IN_NOMICBIAS and > > > ALC_PIN_DIR_INOUT_NOMICBIAS. These can be used with jack mode switch > > > definitions in mixers to prevent the user being offered the mic bias > > > options if the hardware doesn't support it. > > > > > > 2) Add the ability to have different input mux definitions for different > > > ADCs. This is needed because the ALC260 chip uses different mux layouts > > > for the two onboard ADCs. A new field (num_mux_defs) was added to the > > > alc_spec and alc_config_preset structures to support this. > > > > I'd use num_mux_defs = 0 as if = 1 if input_mux is defined. > > Then we don't have to patch all over places (and avoid carelessness). > > > > Otherwise the patch looks OK. Could you fix the above and repost? > > I'd like to put this into 1.0.11-final, too. > > The original patch would do the right thing with num_mux_defs = 0. The > attached revised patch simply removes the unnecessary initialisation of > num_mux_defs in the presets. This is untested since I don't have the laptop > with me at present, but given the trivial nature of the change I don't > foresee a problem. > > I've left the initialisations in the alc*_parse_auto_config() functions for > the moment since it's not clear to me that it will otherwise be initialised > to something sensible in this context. Thanks, I applied it to CVS with a minor change (the explicit initialization to num_mux_defs = 1 if it's zero, and white space fixes). 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