* [PATCH] ALSA: hda/cirrus: Control SPDIF out pin on MacBookPro 11,1
@ 2026-11-26 16:41 Felipe Pesce via B4 Relay
2026-11-27 17:33 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Felipe Pesce via B4 Relay @ 2026-11-26 16:41 UTC (permalink / raw)
To: Takashi Iwai, Jaroslav Kysela; +Cc: linux-sound, linux-kernel, Felipe Pesce
From: Felipe Pesce <coding@fpesce.com>
The MacBookPro 11,1 (CS4208, codec SSID 0x106b5d00) has the same
combo headphone / mini-TOSLINK jack as the MacBookPro 11,2, but is
missing from cs4208_mac_fixup_tbl, so it only gets the default GPIO0
fixup. As a result the "IEC958 Playback Switch" does not touch the
SPDIF pin (0x21), whose pin control stays at PIN_OUT, and the red
optical light in the jack turns on whenever the codec is powered up,
even with no optical cable plugged in.
Apply the CS4208_MBP11 fixup to this model as well. Tested with
model=mbp11 on a MacBookPro11,1: turning off the IEC958 switch now
clears the pin control and the light stays off across runtime
suspend/resume, while analog headphone, speaker and mic are
unaffected.
Signed-off-by: Felipe Pesce <coding@fpesce.com>
---
The codec SSID was read from /sys/class/sound/hwC1D0/subsystem_id on a
MacBookPro11,1 (DMI product_name) running Debian 6.12.
---
sound/hda/codecs/cirrus/cs420x.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/hda/codecs/cirrus/cs420x.c b/sound/hda/codecs/cirrus/cs420x.c
index 85c2ecf46d3834984d17bc8c67b274ac1938502c..160c4e10714e81fb4de0a25e4835c4387f184c39 100644
--- a/sound/hda/codecs/cirrus/cs420x.c
+++ b/sound/hda/codecs/cirrus/cs420x.c
@@ -576,6 +576,7 @@ static const struct hda_quirk cs4208_fixup_tbl[] = {
/* codec SSID matching */
static const struct hda_quirk cs4208_mac_fixup_tbl[] = {
+ SND_PCI_QUIRK(0x106b, 0x5d00, "MacBookPro 11,1", CS4208_MBP11),
SND_PCI_QUIRK(0x106b, 0x5e00, "MacBookPro 11,2", CS4208_MBP11),
SND_PCI_QUIRK(0x106b, 0x6c00, "MacMini 7,1", CS4208_MACMINI),
SND_PCI_QUIRK(0x106b, 0x7100, "MacBookAir 6,1", CS4208_MBA6),
---
base-commit: 40212b29a6f718d4e7fb3275cede181cb8e137cf
change-id: 20261126-macbookpro11-1-spdif-63b5d75ea57f
Best regards,
--
Felipe Pesce <coding@fpesce.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ALSA: hda/cirrus: Control SPDIF out pin on MacBookPro 11,1
2026-11-26 16:41 [PATCH] ALSA: hda/cirrus: Control SPDIF out pin on MacBookPro 11,1 Felipe Pesce via B4 Relay
@ 2026-11-27 17:33 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2026-11-27 17:33 UTC (permalink / raw)
To: coding; +Cc: Takashi Iwai, Jaroslav Kysela, linux-sound, linux-kernel
On Thu, 26 Nov 2026 17:41:46 +0100,
Felipe Pesce via B4 Relay wrote:
>
> From: Felipe Pesce <coding@fpesce.com>
>
> The MacBookPro 11,1 (CS4208, codec SSID 0x106b5d00) has the same
> combo headphone / mini-TOSLINK jack as the MacBookPro 11,2, but is
> missing from cs4208_mac_fixup_tbl, so it only gets the default GPIO0
> fixup. As a result the "IEC958 Playback Switch" does not touch the
> SPDIF pin (0x21), whose pin control stays at PIN_OUT, and the red
> optical light in the jack turns on whenever the codec is powered up,
> even with no optical cable plugged in.
>
> Apply the CS4208_MBP11 fixup to this model as well. Tested with
> model=mbp11 on a MacBookPro11,1: turning off the IEC958 switch now
> clears the pin control and the light stays off across runtime
> suspend/resume, while analog headphone, speaker and mic are
> unaffected.
>
> Signed-off-by: Felipe Pesce <coding@fpesce.com>
Applied now. Thanks.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-27 17:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 16:41 [PATCH] ALSA: hda/cirrus: Control SPDIF out pin on MacBookPro 11,1 Felipe Pesce via B4 Relay
2026-11-27 17:33 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®