From: Kunal Gangakhedkar Subject: Re: [PATCH v2] ALSA: Fix mute led GPIO on HP dv-series notebooks. Date: Fri, 15 Jan 2010 19:10:44 +0530 Message-ID: <201001151910.44582.kunal.gangakhedkar@gmail.com> References: <201001151902.17260.kunal.gangakhedkar@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-yx0-f196.google.com (mail-yx0-f196.google.com [209.85.210.196]) by alsa0.perex.cz (Postfix) with ESMTP id 4427624471 for ; Fri, 15 Jan 2010 14:40:52 +0100 (CET) Received: by yxe34 with SMTP id 34so381862yxe.16 for ; Fri, 15 Jan 2010 05:40:51 -0800 (PST) In-Reply-To: <201001151902.17260.kunal.gangakhedkar@gmail.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: Takashi Iwai Cc: ALSA Devel List , Goldwyn Rodrigues List-Id: alsa-devel@alsa-project.org On Friday 15 Jan 2010 7:02:17 pm Kunal Gangakhedkar wrote: > On Friday 15 Jan 2010 6:51:30 pm Takashi Iwai wrote: > > At Fri, 15 Jan 2010 18:35:19 +0530, > > Kunal Gangakhedkar wrote: > > > > > > On my laptop (HP dv6-1110ax), there are no OEM strings in SMBIOS of type > > > "HP_Mute_LED*". Hence, the GPIO for the mute button LED doesn't get set > > > properly. I didn't find the strings in my cousin's laptop (HP dv9500t CTO) > > > either. > > > > > > As per the documentation of find_mute_led_gpio(), these strings occur > > > in HP B-series systems - so, before scanning the SMBIOS strings, we need to > > > check if we're dealing with a B-series system. > > > Need to get confirmation from HP if this logic takes care of all the > > > systems. I'm trying to poke a friend there. > > > > > > Please let me know if this looks OK or needs changes. > > > > Well, the open switch() for blike-system should be replaced with > > set_hp_led_gpio(). That's the very purpose I proposed to create a > > function. > > > > I don't think you can do that since both cases (b-like and non-b-like) have > different ways of setting the gpio. > Argh, sorry, my mistake - understood what you mean here after taking another look at the code. My bad that I replied even before verifying it :( Making the changes right away. Thanks, Kunal