add rt713 & rt1318 LED control#512
Conversation
Signed-off-by: Derek Fang <derek.fang@realtek.com>
This patch adds rt712/rt713 FU05 Playback Switch control in the headphone section. Signed-off-by: Derek Fang <derek.fang@realtek.com> Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Derek Fang <derek.fang@realtek.com> Signed-off-by: Shuming Fan <shumingf@realtek.com>
|
Just a note that I've tested this on Fedora 41 on a X1 Carbon G13 (Lunarlake) and can confirm that both Mic and Speaker LEDs are working correctly. (I did pull in upstream kernel commit as well https://patchwork.kernel.org/project/alsa-devel/patch/20250226084728.1889082-1-shumingf@realtek.com/ ) |
|
To add to this, I've also tested on X1 Carbon G13 and an X1 2-in-1 Gen 10 (both LunarLake) and also confirmed that the Mic and speaker LED's are working correctly. @perexg apologies for suddenly pulling you in, may I ask for your help in reviewing this patch? we are trying to get this included on the upcoming SRU cycle on 3/14 if possible. |
Closes: alsa-project#512 Signed-off-by: Derek Fang <derek.fang@realtek.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This patch adds rt712/rt713 FU05 Playback Switch control in the headphone section. Closes: alsa-project#512 Signed-off-by: Derek Fang <derek.fang@realtek.com> Signed-off-by: Shuming Fan <shumingf@realtek.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Closes: alsa-project#512 Signed-off-by: Derek Fang <derek.fang@realtek.com> Signed-off-by: Shuming Fan <shumingf@realtek.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Closes: alsa-project#512 Signed-off-by: Derek Fang <derek.fang@realtek.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This patch adds rt712/rt713 FU05 Playback Switch control in the headphone section. Closes: alsa-project#512 Signed-off-by: Derek Fang <derek.fang@realtek.com> Signed-off-by: Shuming Fan <shumingf@realtek.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Closes: alsa-project#512 Signed-off-by: Derek Fang <derek.fang@realtek.com> Signed-off-by: Shuming Fan <shumingf@realtek.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
| cset "name='rt713 FU05 Playback Switch' off" | ||
| ] | ||
|
|
||
| ConflictingDevice [ |
There was a problem hiding this comment.
I don't like this settings. Is there other reason other than LED control to mark those devices conflicting together?
There was a problem hiding this comment.
@perexg The customer's machine has one speaker mute LED and also wants to mute the output of the headphones.
Therefore, we added device conflicting to avoid the speaker being on while the headphones are plugged.
e.g.
We registered two controls for the speaker mute LED.
attach:rt1318-1 DAC Switch
attach:rt713 FU05 Playback Switch
The kernel driver (control_led.c) will check these two controls. These two controls turn off, LED could turn ON.
Therefore, we set conflicting devices for the speaker and headphones each other.
This patch adds rt712/rt713 FU05 Playback Switch control in the headphone section. Closes: alsa-project#512 Signed-off-by: Derek Fang <derek.fang@realtek.com> Signed-off-by: Shuming Fan <shumingf@realtek.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Closes: alsa-project#512 Signed-off-by: Derek Fang <derek.fang@realtek.com> Signed-off-by: Shuming Fan <shumingf@realtek.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
I tried to improve the LED settings in PR #517 and included those changes (except the ConflictingDevice change). It would be nice, if you can retest those changes, too. |
|
Also, starring at PR #487, we need really define the circumstances when LEDs should follow some inputs or outputs. For me, the logical way is to follow only internal microphone and internal speakers. If you plug USB headset for example, then LEDs are not controlled, too. It should be highly confusing to users. Also see issue #440 . Here user expects different way, but "selected output" is problem for external hw like mentioned USB devices. |
@perexg I tested PR #517 on Lenovo machine (rt713+rt1318). |
Closes: alsa-project#512 Signed-off-by: Derek Fang <derek.fang@realtek.com> Signed-off-by: Shuming Fan <shumingf@realtek.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
As I wrote, we should probably drop the LED bindings for headphones/headsets. I updated my PR #517, so only rt1318 speaker changes (with a little fix for mixer controls) are kept . I am open to any discussion for the explanation in https://github.com/alsa-project/alsa-ucm-conf/blob/4f10a8491fbb1819fe99b926de2ab1ec8befdfc7/ucm2/common/ctl/led.conf . |
Closes: alsa-project#512 Signed-off-by: Derek Fang <derek.fang@realtek.com> Signed-off-by: Shuming Fan <shumingf@realtek.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
As per conversation in [1], let headsets be dropped from LED bindings. [1]: #512 Link: https://lore.kernel.org/alsa-devel/20250328134809.3008238-1-mstrozek@opensource.cirrus.com/ Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Closes: alsa-project#512 Signed-off-by: Derek Fang <derek.fang@realtek.com> Signed-off-by: Shuming Fan <shumingf@realtek.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
As per conversation in [1], let headsets be dropped from LED bindings. [1]: alsa-project#512 Link: https://lore.kernel.org/alsa-devel/20250328134809.3008238-1-mstrozek@opensource.cirrus.com/ Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
add rt713 & rt1318 LED control