summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2014-05-18 17:40:50 +0000
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2014-05-18 17:40:50 +0000
commit60fff3489ba5ac717cb78a1855c0ef7c03fcaf18 (patch)
tree6b42322639a3ff5f44b5dffa0de79896bb90d1e7
parent32ed0f56bc77bf5817e5cdc9d40f7a4082cc9544 (diff)
downloaddevice_samsung_smdk4412-common-60fff3489ba5ac717cb78a1855c0ef7c03fcaf18.zip
device_samsung_smdk4412-common-60fff3489ba5ac717cb78a1855c0ef7c03fcaf18.tar.gz
device_samsung_smdk4412-common-60fff3489ba5ac717cb78a1855c0ef7c03fcaf18.tar.bz2
Revert "smdk4412-common: audio: remove old workaround for call audio issues"
This reverts commit 32ed0f56bc77bf5817e5cdc9d40f7a4082cc9544. There are reports of cases in which this still is happening. Change-Id: I0e49a3ff8476ef6212233a38f0d96642710e991e
-rw-r--r--audio/silence.wavbin0 -> 326686 bytes
-rw-r--r--common.mk3
-rwxr-xr-xrootdir/init.smdk4x12.rc7
3 files changed, 9 insertions, 1 deletions
diff --git a/audio/silence.wav b/audio/silence.wav
new file mode 100644
index 0000000..5fe31d2
--- /dev/null
+++ b/audio/silence.wav
Binary files differ
diff --git a/common.mk b/common.mk
index 1a87d7b..a8d8072 100644
--- a/common.mk
+++ b/common.mk
@@ -37,7 +37,8 @@ PRODUCT_COPY_FILES := \
# Audio
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/configs/audio_effects.conf:system/etc/audio_effects.conf \
- $(COMMON_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf
+ $(COMMON_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf \
+ $(COMMON_PATH)/audio/silence.wav:system/etc/sound/silence.wav
# Camera FW
PRODUCT_COPY_FILES += \
diff --git a/rootdir/init.smdk4x12.rc b/rootdir/init.smdk4x12.rc
index 25012b1..aa6e570 100755
--- a/rootdir/init.smdk4x12.rc
+++ b/rootdir/init.smdk4x12.rc
@@ -500,3 +500,10 @@ service iprenew_bt-pan /system/bin/dhcpcd -n
service macloader /system/bin/macloader
class main
oneshot
+
+# Workaround for broken incall audio
+service bootsnd /system/bin/tinyplay /system/etc/sound/silence.wav -D 0 -d 0 -p 880
+ class late_start
+ user root
+ group audio
+ oneshot