From: Takashi Iwai Subject: Re: 2.6.28-rc5 broke ALSA headphone output for my Toughbooks. Date: Thu, 08 Jan 2009 18:54:03 +0100 Message-ID: References: <20081223154450.GA8339@lairds.com> <20090101145730.GA6290@lairds.com> <20090108171026.GO802@lairds.com> 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 mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 64FAF1037F5 for ; Thu, 8 Jan 2009 18:54:04 +0100 (CET) In-Reply-To: <20090108171026.GO802@lairds.com> 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: Kyler Laird Cc: alsa-devel@alsa-project.org, mporter@embeddedalley.com List-Id: alsa-devel@alsa-project.org At Thu, 8 Jan 2009 12:10:27 -0500, Kyler Laird wrote: > > On Thu, Jan 08, 2009 at 04:52:59PM +0100, Takashi Iwai wrote: > > > > There appears to be no difference in output between headphones plugged > > > and unplugged. > > > > Thanks. So, it implies that the device actually doesn't need > > the headphone detection but rather does on hardware by itself. > > > > How about the patch below? > > It's against the latest git but should work with 2.6.28, too. > > The patch applied alright but did not seem to help. I applied my patch > on top of it and it did work again. That surprised me. It seems that > your patch just disables hp_detect but apparently STAC_HP_EVENT is still > being received by stac92xx_unsol_event() and that's calling > stac92xx_hp_detect(). > > I added a printk() to stac92xx_unsol_event() and see that it's called > only once, right as the module is loaded (res=3221225472). It is not > called again when I plug or unplug the headphones. > > I agree that there does not seem to be headphone detection but it does > seem that another audio pathway needs to be enabled in order for the > headphones to work. Could you add dump_stack() in stac92xx_unsol_event() and check the code path? You are using 2.6.28, not the latest git tree, right? thanks, Takashi