From 3dc03fc707b82196957bf697f997d2409ee827f4 Mon Sep 17 00:00:00 2001 From: Julian Arango <95070226+ja-818@users.noreply.github.com> Date: Mon, 23 Nov 2026 02:45:29 +0000 Subject: [PATCH] ASoC: apple: macaudio: add the J716 (16-inch M5 Pro), jack only The J716s's AOP-fed card is the J714s's: the J716sAP 27.2 (26B123) ADT describes the same CS42L84 jack codec, AOP audio service and six SN012776 amps. No speaker protection has played on this board yet, so its entry has speakers disabled and no safe level, as the J873's, and macaudio_speakers_allowed() refuses a speaker link whatever the device tree says. The jack frame is the J714s's. Seen on one J716s (27.2 stub, omarchy-m5 v272-17 kernel with this entry as a module and a jack-only card in its tree): the card registers, the jack reports a plug and PipeWire shows Headphones and the headset microphone. Playback through the jack was not listened to (no working wired headphones at hand). The device tree card follows once the AOP (#2285) and jack codec (#2277) descriptions for the J716s land. Signed-off-by: Julian Arango <95070226+ja-818@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 --- sound/soc/apple/macaudio.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/sound/soc/apple/macaudio.c b/sound/soc/apple/macaudio.c index b05d60bc0451a..3ce1dc7cd57b5 100644 --- a/sound/soc/apple/macaudio.c +++ b/sound/soc/apple/macaudio.c @@ -4147,6 +4147,28 @@ struct macaudio_platform_cfg macaudio_j714_cfg = { .tweeter_hpf_granted = true, }; +/* + * J716s (T6050, MacBook Pro 16" M5 Pro): the J714s's AOP-fed card for the + * headphone jack only. Its ADT describes the same jack codec, AOP audio + * service and six SN012776 as the J714s's, but its speakers have no + * protection profile that has played on this board, so they stay off as on + * the J873: no safe level and speakers disabled, so + * macaudio_speakers_allowed() refuses a speaker link however the DT is + * written. The jack frame is the J714s's. + */ +struct macaudio_platform_cfg macaudio_j716_cfg = { + .enable_speakers = false, + .amp = AMP_SN012776, + .speakers = SPKR_2W1T, + .stereo = true, + .safe_vol = 0, + .fe_dai_names = { "j873-pcm-0", "j873-pcm-1", "j873-pcm-2" }, + .dai_fmt = SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_CBC_CFC | SND_SOC_DAIFMT_IB_NF, + .spk_dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBC_CFC | + SND_SOC_DAIFMT_GATED | SND_SOC_DAIFMT_NB_IF, + .spk_secondary_only = true, +}; + /* * J815 (T8142, MacBook Air M5 15"): J813's AOP-fed card with six SN012776, * two woofers and a tweeter per side, in ADT speaker-config order (left @@ -4458,6 +4480,8 @@ static const struct of_device_id macaudio_snd_device_id[] = { { .compatible = "apple,j714-macaudio", .data = &macaudio_j714_cfg }, /* k116 - sn012776 15 2x 2W+1T (AOP-fed, V/I sense; the 16" PROLED chassis, J714's amps and frame) */ { .compatible = "apple,k116-macaudio", .data = &macaudio_j714_cfg }, + /* j716 - sn012776 15 2x 2W+1T (AOP-fed; jack only, speakers off until bring-up) */ + { .compatible = "apple,j716-macaudio", .data = &macaudio_j716_cfg }, /* j713 - sn012776 15 2x 1W+1T (AOP-fed, one serializer) */ { .compatible = "apple,j713-macaudio", .data = &macaudio_j713_cfg }, /* The J713 jack runs on the AOP like the J616s one. */