From d31057b1b1d457bec0259306145bbdbd6e58ba3e Mon Sep 17 00:00:00 2001 From: MeowOS Date: Tue, 1 Sep 2026 13:34:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(audio):=20CS43198=20=E9=9F=B3=E9=87=8F?= =?UTF-8?q?=E5=AF=84=E5=AD=98=E5=99=A8=3D=E8=A1=B0=E5=87=8F=E9=87=8F(0?= =?UTF-8?q?=E6=9C=80=E5=93=8D255=E9=9D=99=E9=9F=B3),=E5=9B=9B=E8=B7=AF(lau?= =?UTF-8?q?ncher/audio.c+audiod+watchdog+SDK=20vol)=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E5=8F=8D=E8=BD=AC=E6=98=A0=E5=B0=84=20dac=3D255-pct*255/100=20?= =?UTF-8?q?=E2=80=94=20=E4=BF=AE=E3=80=8C0=E6=A1=A3=E7=82=B850=E6=A1=A3?= =?UTF-8?q?=E6=9C=80=E4=BD=8E=E3=80=8D=E3=80=82=E7=9C=9F=E6=9C=BA=20audiod?= =?UTF-8?q?=20=E7=83=AD=E4=BF=AE=E7=89=88=E5=AE=9E=E6=B5=8B=20L/R=20?= =?UTF-8?q?=E5=80=BC=E6=96=B9=E5=90=91=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meow_ui_vol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meow_ui_vol.c b/meow_ui_vol.c index fdcff49..6269bad 100644 --- a/meow_ui_vol.c +++ b/meow_ui_vol.c @@ -110,7 +110,7 @@ int meow_ui_vol_step(const char *path, int dir) * 与 launcher meow_dac_vol_write / watchdog wd_vol_write 完全同路径(语义同源)。 */ void meow_ui_vol_dac_write(int pct) { - int dac = pct * 255 / 100; + int dac = 255 - pct * 255 / 100; /* CS43198 寄存器=衰减量(0=最响 255=静音),用户 pct 越大越响 → 反转映射 */ if (dac < 0) dac = 0; if (dac > 255) dac = 255; char cmd[160];