fix(audiod): 安全修复 — dac_vol_mute 写255(真静音),旧版写0=CS43198最大响度,重配/回收瞬间满幅炸耳(真机事故)。772cc3d8 已热跑验证,38/38 PASS

This commit is contained in:
MeowOS committed 2026-09-01 13:50:26 +08:00
1 parent 109d48747f
commit c1353ce28f
1 file changed
+4 -2
+4 -2
View File
@@ -477,8 +477,10 @@ static void dac_vol_set(int pct)
static void dac_vol_mute(void)
{
amixer_set(1, 0, 1);
amixer_set(2, 0, 1);
/* CS43198 寄存器=衰减量(0=最响 255=静音)。⚠️ 写 0 是「最大响度」不是静音——
* 旧版写 0 在闪退/重配瞬间造成满幅炸音(真机事故 2026-09-01)。真静音写 255。 */
amixer_set(1, 255, 1);
amixer_set(2, 255, 1);
}
static const char *port_name(int port)