From a314ff44d83e0944df82508e99536c6a4492b5bc Mon Sep 17 00:00:00 2001 From: win2kgamer <47463859+win2kgamer@users.noreply.github.com> Date: Sat, 20 Sep 2025 00:57:46 -0500 Subject: [PATCH] AD1848: I23 register on CS4231 is read-only, fixes codec misdetection on Linux --- src/sound/snd_ad1848.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sound/snd_ad1848.c b/src/sound/snd_ad1848.c index ff9d36318..ef6f38041 100644 --- a/src/sound/snd_ad1848.c +++ b/src/sound/snd_ad1848.c @@ -488,6 +488,8 @@ readonly_x: ad1848_log("AD1848: write(X%d, %02X)\n", ad1848->xindex, val); return; } + if (ad1848->type == AD1848_TYPE_CS4231) /* I23 is reserved and read-only on CS4231 non-A */ + goto readonly_i; break; case 24: