fix(audiod): 安全修复 — dac_vol_mute 写255(真静音),旧版写0=CS43198最大响度,重配/回收瞬间满幅炸耳(真机事故)。772cc3d8 已热跑验证,38/38 PASS
This commit is contained in:
1 parent
109d48747f
commit
c1353ce28f
1 file changed
+4
-2
@@ -477,8 +477,10 @@ static void dac_vol_set(int pct)
|
|||||||
|
|
||||||
static void dac_vol_mute(void)
|
static void dac_vol_mute(void)
|
||||||
{
|
{
|
||||||
amixer_set(1, 0, 1);
|
/* CS43198 寄存器=衰减量(0=最响 255=静音)。⚠️ 写 0 是「最大响度」不是静音——
|
||||||
amixer_set(2, 0, 1);
|
* 旧版写 0 在闪退/重配瞬间造成满幅炸音(真机事故 2026-09-01)。真静音写 255。 */
|
||||||
|
amixer_set(1, 255, 1);
|
||||||
|
amixer_set(2, 255, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *port_name(int port)
|
static const char *port_name(int port)
|
||||||
|
|||||||
Reference in new issue
Block a user