Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setting the l_effect_tdm_framework_enable=true parameter enables the quad speakers. However, the sound quality is unusable, probably because on stock it's configured by lib_SoundBooster_TDM_ver100.so which is missing here as I can't find a way to make it load on LineageOS.
- Loading branch information
1 parent
f5c3bf4
commit 96560d1
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright (C) 2018 The LineageOS Project | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
LOCAL_PATH:= $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_SRC_FILES:= audioloader.cpp | ||
|
||
LOCAL_SHARED_LIBRARIES := \ | ||
libutils \ | ||
libaudioclient | ||
|
||
LOCAL_MODULE:= audioloader | ||
LOCAL_MODULE_TAGS:= optional | ||
|
||
LOCAL_INIT_RC := audioloader.rc | ||
|
||
include $(BUILD_EXECUTABLE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* Copyright (C) 2018 The LineageOS Project | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <media/AudioSystem.h> | ||
|
||
int main(int, char**) | ||
{ | ||
android::AudioSystem::setParameters(0, android::String8("l_effect_tdm_framework_enable=true")); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
service audioloader /system/bin/audioloader | ||
user system | ||
group audio | ||
disabled | ||
oneshot | ||
|
||
on property:init.svc.audioserver=running | ||
# start audioloader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters