From: Takashi Iwai Subject: Re: [pulseaudio-discuss] ThinkPad T-510 audio output mute LED non-workingness Date: Tue, 28 Apr 2015 12:30:19 +0200 Message-ID: References: <20150425013937.GB550@huh.zplane.com> <1429974719.3937109.258484493.7D74FAC6@webmail.messagingengine.com> <20150426152012.GE550@huh.zplane.com> <20150427135859.GI550@huh.zplane.com> <20150428000206.GK550@huh.zplane.com> <20150428101645.GM550@huh.zplane.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 mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 25ACF2604EB for ; Tue, 28 Apr 2015 12:30:20 +0200 (CEST) In-Reply-To: <20150428101645.GM550@huh.zplane.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: gdg@zplane.com Cc: alsa-devel@alsa-project.org, Alex Hung , Henrique de Moraes Holschuh , Raymond Yau , bruno.mueller@gmail.com, David Henningsson List-Id: alsa-devel@alsa-project.org At Tue, 28 Apr 2015 04:16:45 -0600, Glenn Golden wrote: > > Takashi Iwai [2015-04-28 08:06:50 +0200]: > > > > It's the call: > > led_set_func(TPACPI_LED_MUTE, false) > > and this returns an error. led_set_func is a function pointer to > > tpacpi_led_set: > > led_set_func = symbol_request(tpacpi_led_set); > > > > So the above indicates that the call in thinkpad_acpi.c failed. > > > > Could you check what value is returned from > > led_set_func(TPACPI_LED_MUTE, false)? > > > > My wild guess is that it's -ENODEV. > > > > Yep: > > [ 13.379016] sound hdaudioC0D0: XXX hda_fixup_thinkpad_acpi init... > [ 13.392760] sound hdaudioC0D0: XXX ok, this is thinkpad > [ 13.404553] sound hdaudioC0D0: XXX mute LED NOT WORKING! > [ 13.416106] XXX led_set_func(TPACPI_LED_MUTE, false) returned -19 > [ 13.427719] sound hdaudioC0D0: XXX ok, mic LED is hooked Then it's likely an issue in thinkpad_acpi.c. It implies that the driver couldn't get SSMS acpi handle. > Question: To simplify/speed debugging going forward: Is there some > straightforward way to unload/reload all the relevant sound modules as > an alternative to rebooting? I came across some 'recipes', but none > looked straightforward; lots of conditionality on the particular subset > of modules being patched/debugged, but alas I've not enough knowledge > to guess at exactly what that subset should be for what we're doing here.) For HD-audio, you need to unload the codec drivers at first, e.g. modprobe -r snd-hda-codec-conexant modprobe -r snd-hda-codec-hdmi then unload the control driver, snd-hda-intel modprobe -r snd-hda-intel These will unload the whole sound modules, supposing that you have only HD-audio. Takashi