diff options
author | Tomasz Moń <desowin@gmail.com> | 2021-06-14 14:44:24 +0200 |
---|---|---|
committer | Tomasz Moń <desowin@gmail.com> | 2021-06-14 12:48:16 +0000 |
commit | 02c4ec294c19115c5d9749971eebedf1769e81ba (patch) | |
tree | 7aff8cf0b64745d02232f478e0768dd460aa8776 /firmware/drivers | |
parent | 756c0d2ac82515ea8389c69f5f87ca395daca63d (diff) |
Sansa Connect: Properly setup internal speaker
Switch to internal speaker when headphones are disconnected.
Change-Id: I7c04ac139ad540d85f960e9dadc2faaf4f856055
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/audio/aic3x.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/audio/aic3x.c b/firmware/drivers/audio/aic3x.c index 9b705db7f5..39576e9f47 100644 --- a/firmware/drivers/audio/aic3x.c +++ b/firmware/drivers/audio/aic3x.c @@ -305,8 +305,8 @@ void aic3x_switch_output(bool stereo) { if (stereo) { - /* mute MONO_LOP/M */ - aic3x_change_reg(AIC3X_MONO_LOP_M_LVL, 0x00, 0xF6); + /* MONO_LOP/M not fully powered up */ + aic3x_change_reg(AIC3X_MONO_LOP_M_LVL, 0x00, 0xFE); /* HPLOUT fully powered up */ aic3x_change_reg(AIC3X_HPLOUT_LVL, 0x01, 0xFF); /* HPROUT fully powered up */ @@ -316,8 +316,8 @@ void aic3x_switch_output(bool stereo) } else { - /* MONO_LOP/M not muted */ - aic3x_change_reg(AIC3X_MONO_LOP_M_LVL, 0x09, 0xFF); + /* MONO_LOP/M fully powered up */ + aic3x_change_reg(AIC3X_MONO_LOP_M_LVL, 0x01, 0xFF); /* HPLOUT not fully powered up */ aic3x_change_reg(AIC3X_HPLOUT_LVL, 0x00, 0xFE); /* HPROUT not fully powered up */ |