fix(audio): CS43198 音量寄存器=衰减量(0最响255静音),四路(launcher/audio.c+audiod+watchdog+SDK vol)统一反转映射 dac=255-pct*255/100 — 修「0档炸50档最低」。真机 audiod 热修版实测 L/R 值方向正确
This commit is contained in:
1 parent
84fd0a87aa
commit
109d48747f
11 files changed
+7
-7
No files matched your search
Binary file not shown.
@@ -467,7 +467,7 @@ static int amixer_get(int numid, int card)
|
||||
|
||||
static void dac_vol_set(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;
|
||||
amixer_set(1, dac, 1);
|
||||
|
||||
Reference in new issue
Block a user