* [PATCH] Revert "ALSA: hda - Add mute-LED mode control to Thinkpad"
@ 2015-05-24 6:34 Takashi Iwai
2015-05-25 6:44 ` Raymond Yau
2015-06-24 13:10 ` Pali Rohár
0 siblings, 2 replies; 4+ messages in thread
From: Takashi Iwai @ 2015-05-24 6:34 UTC (permalink / raw)
To: alsa-devel; +Cc: Martin Steigerwald, Pali Rohár
This reverts commit 7290006d8c0900c56d8c58428134f02c35109d17.
Through the regression report, it was revealed that the
tpacpi_led_set() call to thinkpad_acpi helper doesn't only toggle the
mute LED but actually mutes the sound. This is contradiction to the
expectation, and rather confuses user.
According to Henrique, it's not trivial to judge which TP model
behaves "LED-only" and which model does whatever more intrusive, as
Lenovo's implementations vary model by model. So, from the safety
reason, we should revert the patch for now.
Reported-by: Martin Steigerwald <martin@lichtvoll.de>
Cc: Pali Rohár <pali.rohar@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/pci/hda/thinkpad_helper.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/pci/hda/thinkpad_helper.c b/sound/pci/hda/thinkpad_helper.c
index d51703e30523..0a4ad5feb82e 100644
--- a/sound/pci/hda/thinkpad_helper.c
+++ b/sound/pci/hda/thinkpad_helper.c
@@ -72,7 +72,6 @@ static void hda_fixup_thinkpad_acpi(struct hda_codec *codec,
if (led_set_func(TPACPI_LED_MUTE, false) >= 0) {
old_vmaster_hook = spec->vmaster_mute.hook;
spec->vmaster_mute.hook = update_tpacpi_mute_led;
- spec->vmaster_mute_enum = 1;
removefunc = false;
}
if (led_set_func(TPACPI_LED_MICMUTE, false) >= 0) {
--
2.4.1
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] Revert "ALSA: hda - Add mute-LED mode control to Thinkpad"
2015-05-24 6:34 [PATCH] Revert "ALSA: hda - Add mute-LED mode control to Thinkpad" Takashi Iwai
@ 2015-05-25 6:44 ` Raymond Yau
2015-05-25 6:53 ` Takashi Iwai
2015-06-24 13:10 ` Pali Rohár
1 sibling, 1 reply; 4+ messages in thread
From: Raymond Yau @ 2015-05-25 6:44 UTC (permalink / raw)
To: Takashi Iwai
Cc: Martin Steigerwald, ALSA Development Mailing List,
Pali Rohár
>
> This reverts commit 7290006d8c0900c56d8c58428134f02c35109d17.
>
> Through the regression report, it was revealed that the
> tpacpi_led_set() call to thinkpad_acpi helper doesn't only toggle the
> mute LED but actually mutes the sound. This is contradiction to the
> expectation, and rather confuses user.
>
> According to Henrique, it's not trivial to judge which TP model
> behaves "LED-only" and which model does whatever more intrusive, as
> Lenovo's implementations vary model by model. So, from the safety
> reason, we should revert the patch for now
Are there any ThinkPad which known to support mute led through ACPI SSMS ?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Revert "ALSA: hda - Add mute-LED mode control to Thinkpad"
2015-05-25 6:44 ` Raymond Yau
@ 2015-05-25 6:53 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2015-05-25 6:53 UTC (permalink / raw)
To: Raymond Yau
Cc: Martin Steigerwald, ALSA Development Mailing List,
Pali Rohár
At Mon, 25 May 2015 14:44:04 +0800,
Raymond Yau wrote:
>
> >
> > This reverts commit 7290006d8c0900c56d8c58428134f02c35109d17.
> >
> > Through the regression report, it was revealed that the
> > tpacpi_led_set() call to thinkpad_acpi helper doesn't only toggle the
> > mute LED but actually mutes the sound. This is contradiction to the
> > expectation, and rather confuses user.
> >
> > According to Henrique, it's not trivial to judge which TP model
> > behaves "LED-only" and which model does whatever more intrusive, as
> > Lenovo's implementations vary model by model. So, from the safety
> > reason, we should revert the patch for now
>
> Are there any ThinkPad which known to support mute led through ACPI SSMS ?
The answer is "yes, but..."
There are known Thinkpads that do the audio mute together with LED.
And judging the difference isn't trivial. It'd need a huge
black/white list, which we want to avoid.
Takashi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Revert "ALSA: hda - Add mute-LED mode control to Thinkpad"
2015-05-24 6:34 [PATCH] Revert "ALSA: hda - Add mute-LED mode control to Thinkpad" Takashi Iwai
2015-05-25 6:44 ` Raymond Yau
@ 2015-06-24 13:10 ` Pali Rohár
1 sibling, 0 replies; 4+ messages in thread
From: Pali Rohár @ 2015-06-24 13:10 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Martin Steigerwald, alsa-devel
On Sunday 24 May 2015 08:34:35 Takashi Iwai wrote:
> This reverts commit 7290006d8c0900c56d8c58428134f02c35109d17.
>
> Through the regression report, it was revealed that the
> tpacpi_led_set() call to thinkpad_acpi helper doesn't only toggle the
> mute LED but actually mutes the sound. This is contradiction to the
> expectation, and rather confuses user.
>
> According to Henrique, it's not trivial to judge which TP model
> behaves "LED-only" and which model does whatever more intrusive, as
> Lenovo's implementations vary model by model. So, from the safety
> reason, we should revert the patch for now.
>
> Reported-by: Martin Steigerwald <martin@lichtvoll.de>
> Cc: Pali Rohár <pali.rohar@gmail.com>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
> sound/pci/hda/thinkpad_helper.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/sound/pci/hda/thinkpad_helper.c b/sound/pci/hda/thinkpad_helper.c
> index d51703e30523..0a4ad5feb82e 100644
> --- a/sound/pci/hda/thinkpad_helper.c
> +++ b/sound/pci/hda/thinkpad_helper.c
> @@ -72,7 +72,6 @@ static void hda_fixup_thinkpad_acpi(struct hda_codec *codec,
> if (led_set_func(TPACPI_LED_MUTE, false) >= 0) {
> old_vmaster_hook = spec->vmaster_mute.hook;
> spec->vmaster_mute.hook = update_tpacpi_mute_led;
> - spec->vmaster_mute_enum = 1;
> removefunc = false;
> }
> if (led_set_func(TPACPI_LED_MICMUTE, false) >= 0) {
Hello,
what about adding option to "do not touch led" like if thinkpad_helper.c
cannot resolve symbol from kernel? It would at least allow us to disable
led when mute is ON (when thinkpad_acpi.ko module is loaded).
--
Pali Rohár
pali.rohar@gmail.com
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-24 13:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-24 6:34 [PATCH] Revert "ALSA: hda - Add mute-LED mode control to Thinkpad" Takashi Iwai
2015-05-25 6:44 ` Raymond Yau
2015-05-25 6:53 ` Takashi Iwai
2015-06-24 13:10 ` Pali Rohár
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox