From: Takashi Iwai <tiwai@suse.de>
To: gdg@zplane.com
Cc: alsa-devel@alsa-project.org, Alex Hung <alex.hung@canonical.com>,
Henrique de Moraes Holschuh <hmh@hmh.eng.br>,
Raymond Yau <superquad.vortex2@gmail.com>,
bruno.mueller@gmail.com,
David Henningsson <david.henningsson@canonical.com>
Subject: Re: [pulseaudio-discuss] ThinkPad T-510 audio output mute LED non-workingness
Date: Mon, 27 Apr 2015 19:12:21 +0200 [thread overview]
Message-ID: <s5ha8xt4hsa.wl-tiwai@suse.de> (raw)
In-Reply-To: <20150427135859.GI550@huh.zplane.com>
[Switched Cc to alsa-devel ML, as it's irrelevant from PA but rather a
driver issue.]
At Mon, 27 Apr 2015 07:58:59 -0600,
Glenn Golden wrote:
>
> Takashi Iwai <tiwai@suse.de> [2015-04-27 08:50:34 +0200]:
> >
> > Gah, I hate reports without alsa-info.sh output (not a link to
> > somewhere else).
> >
> > Glenn, please attach alsa-info.sh outputs (run it with --no-upload
> > option) and the whole dmesg output after boot. 3.19 should already
> > contain the hook to thinkpad_acpi.c. If anything is missing, you
> > should have a warning indicating it.
> >
>
> Apologies for the omissions. Both are attached.
Thanks!
> Fwiw -- perhaps nothing at this point -- a good deal of info has also been
> posted to the kernel bugtracker ticket:
>
> https://bugzilla.kernel.org/show_bug.cgi?id=96171
>
> Re: "...you should have a warning indicating it": I'm an unskilled laboror
> here w.r.t. kernel affairs, and not even sure what sort of warnings to be
> looking for, so may have missed something important without realizing it.
> Just let me know what add'l info you need, I'll be happy to post it. I do
> appreciate your attention to the issue.
I see no such warning in the log you attached, so it's not the issue,
as it seems.
Below is a debug patch, and now you should see messages like "XXX ..."
in kernel log at loading the driver. If there is no such a message,
it means that the thinkpad hook isn't built in at all. Please check
the kernel log again with the patch.
Takashi
---
diff --git a/sound/pci/hda/thinkpad_helper.c b/sound/pci/hda/thinkpad_helper.c
index 0a4ad5feb82e..48ce61e46599 100644
--- a/sound/pci/hda/thinkpad_helper.c
+++ b/sound/pci/hda/thinkpad_helper.c
@@ -34,6 +34,7 @@ static void update_tpacpi_mute_led(void *private_data, int enabled)
if (old_vmaster_hook)
old_vmaster_hook(private_data, enabled);
+ pr_info("XXX mute led updated %d\n", enabled);
if (led_set_func)
led_set_func(TPACPI_LED_MUTE, !enabled);
}
@@ -58,8 +59,10 @@ static void hda_fixup_thinkpad_acpi(struct hda_codec *codec,
bool removefunc = false;
if (action == HDA_FIXUP_ACT_PROBE) {
+ codec_info(codec, "XXX hda_fixup_thinkpad_acpi init...\n");
if (!is_thinkpad(codec))
return;
+ codec_info(codec, "XXX ok, this is thinkpad\n");
if (!led_set_func)
led_set_func = symbol_request(tpacpi_led_set);
if (!led_set_func) {
@@ -70,18 +73,24 @@ static void hda_fixup_thinkpad_acpi(struct hda_codec *codec,
removefunc = true;
if (led_set_func(TPACPI_LED_MUTE, false) >= 0) {
+ codec_info(codec, "XXX ok, mute LED is hooked\n");
old_vmaster_hook = spec->vmaster_mute.hook;
spec->vmaster_mute.hook = update_tpacpi_mute_led;
removefunc = false;
+ } else {
+ codec_err(codec, "XXX mute LED NOT WORKING!\n");
}
if (led_set_func(TPACPI_LED_MICMUTE, false) >= 0) {
if (spec->num_adc_nids > 1)
codec_dbg(codec,
"Skipping micmute LED control due to several ADCs");
else {
+ codec_info(codec, "XXX ok, mic LED is hooked\n");
spec->cap_sync_hook = update_tpacpi_micmute_led;
removefunc = false;
}
+ } else {
+ codec_err(codec, "XXX mic LED NOT WORKING!\n");
}
}
next parent reply other threads:[~2015-04-27 17:12 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20150418131002.GV562@huh.zplane.com>
[not found] ` <CAN8cciZOgTzrTdp2m8Y+vPDrGVdO6y+WpXNfSF+pyuz9GswyqA@mail.gmail.com>
[not found] ` <20150419133733.GA551@huh.zplane.com>
[not found] ` <CAN8cciYqdJ-m+M0+F09115nocy7szAfgdAf834c2bS4=gL7DAA@mail.gmail.com>
[not found] ` <20150425013937.GB550@huh.zplane.com>
[not found] ` <1429974719.3937109.258484493.7D74FAC6@webmail.messagingengine.com>
[not found] ` <20150426152012.GE550@huh.zplane.com>
[not found] ` <s5hvbgiho2o.wl-tiwai@suse.de>
[not found] ` <CAN8cciZQBRz2Ty3YRt2+3KO9v1BWef-_8FU_d_SsE87mLdgY-w@mail.gmail.com>
[not found] ` <s5hh9s2gj45.wl-tiwai@suse.de>
[not found] ` <20150427135859.GI550@huh.zplane.com>
2015-04-27 17:12 ` Takashi Iwai [this message]
2015-04-27 17:52 ` [pulseaudio-discuss] ThinkPad T-510 audio output mute LED non-workingness Glenn Golden
2015-04-27 18:49 ` Takashi Iwai
2015-04-28 0:22 ` Glenn Golden
2015-04-28 0:02 ` Glenn Golden
2015-04-28 6:06 ` Takashi Iwai
2015-04-28 10:16 ` Glenn Golden
2015-04-28 10:30 ` Takashi Iwai
2015-04-28 11:39 ` Glenn Golden
2015-04-28 11:50 ` Takashi Iwai
2015-04-28 17:53 ` Glenn Golden
2015-04-28 19:21 ` Takashi Iwai
2015-04-29 12:46 ` Glenn Golden
2015-04-29 13:09 ` Henrique de Moraes Holschuh
2015-04-29 17:41 ` Glenn Golden
2015-05-01 14:22 ` Raymond Yau
2015-05-02 16:00 ` Glenn Golden
2015-05-04 10:37 ` Henrique de Moraes Holschuh
2015-05-04 12:26 ` Glenn Golden
2015-05-04 13:16 ` Henrique de Moraes Holschuh
2015-05-07 0:15 ` Glenn Golden
2015-05-07 1:03 ` Raymond Yau
2015-05-07 1:47 ` Glenn Golden
2015-05-11 12:56 ` David Henningsson
2015-05-16 20:32 ` Glenn Golden
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=s5ha8xt4hsa.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alex.hung@canonical.com \
--cc=alsa-devel@alsa-project.org \
--cc=bruno.mueller@gmail.com \
--cc=david.henningsson@canonical.com \
--cc=gdg@zplane.com \
--cc=hmh@hmh.eng.br \
--cc=superquad.vortex2@gmail.com \
/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.