From: David Henningsson <david.henningsson@canonical.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org, 1099372@bugs.launchpad.net
Subject: Re: [PATCH] ALSA: hda - mute LEDs on HP: also check PCI SSID
Date: Mon, 14 Jan 2013 14:24:37 +0100 [thread overview]
Message-ID: <50F40715.4080907@canonical.com> (raw)
In-Reply-To: <s5h6230c4is.wl%tiwai@suse.de>
On 01/14/2013 01:50 PM, Takashi Iwai wrote:
> At Mon, 14 Jan 2013 12:59:10 +0100,
> David Henningsson wrote:
>>
>> If the codec subvendor is not set to HP, maybe the PCI SSID is set
>> to HP. If so, there might still be a valid mute LED string in BIOS/UEFI.
>>
>> Cc: stable@vger.kernel.org
>> Buglink: https://bugs.launchpad.net/bugs/1099372
>> Reported-and-tested-by: Tammy Yang <tammy.yang@canonical.com>
>> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
>
> Is there any real machine showing this bug?
Yes, but it is pre-release hardware, so maybe the BIOS/UEFI might not be
the final version. If you like, we can wait and see if the problem is
corrected in later BIOS/UEFI versions.
I was thinking that this patch does not hurt anyway.
> If yes, could you give alsa-info.sh output?
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1099372/+attachment/3482841/+files/alsa-info-hp.txt
>
>
> thanks,
>
> Takashi
>
>> ---
>> sound/pci/hda/patch_sigmatel.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
>> index a86547c..40c74a2 100644
>> --- a/sound/pci/hda/patch_sigmatel.c
>> +++ b/sound/pci/hda/patch_sigmatel.c
>> @@ -4948,7 +4948,8 @@ static int find_mute_led_cfg(struct hda_codec *codec, int default_polarity)
>> &spec->gpio_led_polarity);
>> return 1;
>> }
>> - if ((codec->subsystem_id >> 16) == PCI_VENDOR_ID_HP) {
>> + if ((codec->subsystem_id >> 16) == PCI_VENDOR_ID_HP ||
>> + codec->bus->pci->subsystem_vendor == PCI_VENDOR_ID_HP) {
>> while ((dev = dmi_find_device(DMI_DEV_TYPE_OEM_STRING,
>> NULL, dev))) {
>> if (sscanf(dev->name, "HP_Mute_LED_%d_%x",
>> --
>> 1.7.9.5
>>
>
--
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
next prev parent reply other threads:[~2013-01-14 13:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-14 11:59 [PATCH] ALSA: hda - mute LEDs on HP: also check PCI SSID David Henningsson
2013-01-14 12:50 ` Takashi Iwai
2013-01-14 13:24 ` David Henningsson [this message]
2013-01-14 13:29 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50F40715.4080907@canonical.com \
--to=david.henningsson@canonical.com \
--cc=1099372@bugs.launchpad.net \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.