aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChirayu Desai <chirayudesai1@gmail.com>2015-01-12 21:48:10 +0530
committerChirayu Desai <chirayudesai1@gmail.com>2015-01-15 18:20:23 +0530
commitb230806de11413a948027833b441f1d783d01c1f (patch)
tree106b7b9bc58c54e396481ee303066c66dcccb20a
parentcf6285d0d59d748ee2ffc7486c056f6d48a1820a (diff)
audio: Use a service to init the TFA amp
Change-Id: I8501c54878302c5caa0a93dbe85bb31815e76d6d
-rw-r--r--BoardConfigCommon.mk2
-rw-r--r--rootdir/init.qcom.rc7
-rw-r--r--shinano.mk3
3 files changed, 10 insertions, 2 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index 16f3ba2..e77f611 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -32,7 +32,7 @@ TARGET_DTB_EXTRA_FLAGS := --force-v2
BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease"
# Audio
-BOARD_AUDIO_AMPLIFIER := device/sony/shinano-common/libaudioamp
+#BOARD_AUDIO_AMPLIFIER := device/sony/shinano-common/libaudioamp
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc
index 5482123..556df05 100644
--- a/rootdir/init.qcom.rc
+++ b/rootdir/init.qcom.rc
@@ -634,6 +634,13 @@ service charger /sbin/healthd -c
class charger
seclabel u:r:healthd:s0
+service tfa9890_amp /system/bin/tfa9890_amp
+ class main
+ user media
+ group audio
+ oneshot
+ ioprio rt 4
+
on property:init.svc.surfaceflinger=running
start ppd
diff --git a/shinano.mk b/shinano.mk
index b67f276..3835e0d 100644
--- a/shinano.mk
+++ b/shinano.mk
@@ -63,7 +63,8 @@ PRODUCT_PACKAGES += \
# Audio
PRODUCT_PACKAGES += \
- libaudioamp
+ tfa9890_amp
+# libaudioamp
# Audio configuration
PRODUCT_COPY_FILES += \