From b230806de11413a948027833b441f1d783d01c1f Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Mon, 12 Jan 2015 21:48:10 +0530 Subject: audio: Use a service to init the TFA amp Change-Id: I8501c54878302c5caa0a93dbe85bb31815e76d6d --- BoardConfigCommon.mk | 2 +- rootdir/init.qcom.rc | 7 +++++++ shinano.mk | 3 ++- 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 += \ -- cgit v1.2.3