diff options
| author | Alberto97 <albertop2197@gmail.com> | 2018-12-07 22:45:31 +0100 |
|---|---|---|
| committer | Marcos Tolcachir <marcostolcachir@gmail.com> | 2022-01-08 00:05:14 +0100 |
| commit | a31276bd1014e1538e8bb7bb4dec75eb0528e7fc (patch) | |
| tree | 655e7bf6193c6161da89801718b8519722a0f1b7 | |
| parent | 6e57d45ec17bff61d3bcaae34312199107614a57 (diff) | |
addison: audio: mixer_paths: Make sure Opalum speaker protection is always on
In certain conditions speaker protection turns off itself (observed when
locking the screen or pausing a video) causing low volume issues.
This is not a problem with the stock audio HAL because the speaker gets
calibrated whenever it has to be used. As effect it enables back speaker protection.
Here in the OSS world we don't have a proprer implementation for this specific speaker protection
and I'm too lazy to fork and maintain a custom audio HAL (and it would make difficult a port to another custom rom).
Enable speaker protection every time "speaker" gets used to make sure it is always on when using the speaker.
Of course this isn't calibrating the speaker unlike the HAL does but it seems already good enough for a custom rom.
Also invert the default value to apply the correct settings every time.
Signed-off-by: Alberto97 <albertop2197@gmail.com>
Change-Id: I1a1aad6733661a98b164932c3b84a64aba62e0be
| -rw-r--r-- | audio/mixer_paths.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/mixer_paths.xml b/audio/mixer_paths.xml index 0b13e02..5c0f198 100644 --- a/audio/mixer_paths.xml +++ b/audio/mixer_paths.xml @@ -148,7 +148,7 @@ <ctl name="OSPL Ext TxConfig" value="NONE" /> <ctl name="OSPL Int RxConfig" value="NONE" /> <ctl name="OSPL Int TxConfig" value="NONE" /> - <ctl name="OSPL Rx" value="Enable" /> + <ctl name="OSPL Rx" value="Disable" /> <ctl name="OSPL Tx" value="Enable" /> <ctl name="AFE_PCM_RX_Voice Mixer VoiceMMode1" value="0" /> <ctl name="AFE_PCM_RX_Voice Mixer VoiceMMode2" value="0" /> @@ -792,6 +792,7 @@ <ctl name="SLIMTX5 Input 1" value="AIF1RX1" /> <ctl name="SLIMTX6 Input 1" value="AIF1RX2" /> <ctl name="AMP Gain" value="15dB" /> + <ctl name="OSPL Rx" value="Enable" /> </path> <path name="speaker-reverse"> |
