From: Takashi Iwai Subject: Re: 1.0.15rc3 patch_analog.s bug + fix Date: Mon, 15 Oct 2007 13:29:50 +0200 Message-ID: References: <20071015025303.GA17664@jay.phy.queensu.ca> 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 mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 0BC0F24658 for ; Mon, 15 Oct 2007 13:57:11 +0200 (CEST) In-Reply-To: <20071015025303.GA17664@jay.phy.queensu.ca> 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: Peter Skensved Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Sun, 14 Oct 2007 22:53:03 -0400, Peter Skensved wrote: > > Hi, > I've come across a problem with the 1.0.15rc3 alsa driver on my Lenovo 3000 N100 laptop using > the auto mute feature - it appears to work backwards ! Plugging in the headphones unmutes the > external speakers and unplugging the heaphones mutes them ... > > Changing the if statement in line ~600 in patch_analog.c in ad1986a_update_hp to > > if (!spec->jack_preset) > > makes it work the intended way. ( spec->jack_present changes state _before_ the call to > ad1986a_hp_automute ) Hmm, the code logic looks correct to me. If HP jack is present, the internal speaker should be muted. Otherwise it follows the state of HP jack (muted/unmuted, that acts as a master switch). Is jack_present set/reset correctly when HP jack is plugged/unplugged at all? Or, the pin NID is swapped, or any other reason? Thanks, Takashi