From: Aaron Ma <mapengyu@gmail.com>
To: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
marco_giunta@outlook.it
Cc: Zhang Heng <zhangheng@kylinos.cn>,
Kailang Yang <kailang@realtek.com>,
Damien Dagorn <damien.dagorn29@gmail.com>,
Bob Song <songxiebing@kylinos.cn>,
Lei Huang <huanglei@kylinos.cn>,
Sean Rhodes <sean@starlabs.systems>
Subject: [PATCH v2 2/2] ALSA: hda/realtek: Limit Legion AW88399 playback to stereo
Date: Wed, 5 Aug 2026 02:53:25 +0800 [thread overview]
Message-ID: <20260804185325.22861-2-mapengyu@gmail.com> (raw)
In-Reply-To: <20260804185325.22861-1-mapengyu@gmail.com>
The Legion AW88399 speaker routing sends a stereo FL/FR stream
to both speaker pairs. A four-channel stream leaves the front
pair silent, so advertising four channels exposes an unusable
playback mode.
Limit the analogue PCM and the multi-output runtime constraint
to two channels for the affected Legion codec SSIDs. This
exposes the usable stereo configuration and rejects
four-channel playback.
Signed-off-by: Aaron Ma <mapengyu@gmail.com>
---
Changes in v2:
- Based on the original 2/3 (39adb275a45cd "Use quad channel map for
Legion AW88399 speakers"), reworked: instead of advertising a quad
channel map, playback is now limited to stereo because both speaker
pairs carry the same stereo signal.
sound/hda/codecs/realtek/alc269.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
index 30d71575bac3b..1231d9bfeeb16 100644
--- a/sound/hda/codecs/realtek/alc269.c
+++ b/sound/hda/codecs/realtek/alc269.c
@@ -3291,6 +3291,10 @@ static void alc287_fixup_legion_16iax10h_aw88399(struct hda_codec *codec,
spec->gen.suppress_auto_mic = 1;
snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn);
break;
+ case HDA_FIXUP_ACT_BUILD:
+ spec->gen.multiout.max_channels = 2;
+ spec->gen.pcm_rec[0]->stream[SNDRV_PCM_STREAM_PLAYBACK].channels_max = 2;
+ break;
}
}
--
2.53.0
next prev parent reply other threads:[~2026-08-04 18:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 18:53 [PATCH v2 1/2] ALSA: hda/realtek: Fix headset mic on Legion AW88399 laptops Aaron Ma
2026-08-04 18:53 ` Aaron Ma [this message]
2026-08-05 7:45 ` Marco Giunta
2026-08-05 8:11 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260804185325.22861-2-mapengyu@gmail.com \
--to=mapengyu@gmail.com \
--cc=damien.dagorn29@gmail.com \
--cc=huanglei@kylinos.cn \
--cc=kailang@realtek.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=marco_giunta@outlook.it \
--cc=perex@perex.cz \
--cc=sean@starlabs.systems \
--cc=songxiebing@kylinos.cn \
--cc=tiwai@suse.com \
--cc=zhangheng@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox