diff options
| author | Rafael Medina <rafael@gexdigital.net> | 2026-11-02 16:57:23 -0600 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-11-05 08:54:46 +0100 |
| commit | f13964de5ee38be8af3cdcbe143cb17431ba3c0d (patch) | |
| tree | e9947b06ff6b409d7c6cb3171c7343f580c7a897 /scripts | |
| parent | 8dbab764f1e0a92c3fac0ce070ce30c0c33c2692 (diff) | |
ALSA: hda/ca0132: Restore AE-5 audio registers after LED strip send
The AE-5 LED strip transport added by commit c3e35f355fad ("ALSA:
hda/ca0132: Add Sound BlasterX AE-5 external RGB LED strip support")
reprograms the CA0113 audio serializer block in BAR2 to clock out the
WS2812 data, and at the end clears only the stream routing register.
The format and channel enable register at 0x100 is left at 0x3000ff8f
instead of the 0x00000700 it reads after a normal codec init, and the
analog outputs stay silent until the codec is initialised again.
The strip control is marked volatile, but alsactl still stores it, and
the udev rule runs "alsactl restore" for every card probe. The saved
state of a card that never had a strip attached contains "AE-5 LED
Strip" and "AE-5 LED Strip Count" with access "read write volatile".
ae5_strip_ctl_put() sent a frame even when the colors were unchanged,
so every boot of an AE-5 or AE-5 Plus ended with a silent card.
Save the registers that the transmit touches before programming them
and write them back at the end of ae5_strip_send_frame(), and do not
transmit from ae5_strip_ctl_put() when the colors did not change.
Fixes: c3e35f355fad ("ALSA: hda/ca0132: Add Sound BlasterX AE-5 external RGB LED strip support")
Cc: Devin Christensen <dchristensen8@proton.me>
Signed-off-by: Rafael Medina <rafael@gexdigital.net>
Link: https://patch.msgid.link/20261102225723.123266-1-rafael@gexdigital.net
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
