summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-07-25 17:18:20 +0200
committerDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-07-25 17:18:20 +0200
commit007c1185a2cfb3b11110f4deb20ddd6d5df14ad3 (patch)
tree2e7015e8e3470d8e29930ac819e71a02bdb9ee10
parent23d5fdee99f40be22caf31c6925caedbca83a5c0 (diff)
downloaddevice_samsung_i9300-007c1185a2cfb3b11110f4deb20ddd6d5df14ad3.zip
device_samsung_i9300-007c1185a2cfb3b11110f4deb20ddd6d5df14ad3.tar.gz
device_samsung_i9300-007c1185a2cfb3b11110f4deb20ddd6d5df14ad3.tar.bz2
i9300: audio: play silence on boot
workaround for dead incall audio if no sound got played after boot Change-Id: I1ee26e438cf980afdb618539aa0377453b730abe
-rw-r--r--audio/silence.wavbin0 -> 326686 bytes
-rw-r--r--i9300.mk6
-rwxr-xr-xinit.smdk4x12.rc7
3 files changed, 11 insertions, 2 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/i9300.mk b/i9300.mk
index 0ece998..f6b0fc7 100644
--- a/i9300.mk
+++ b/i9300.mk
@@ -36,7 +36,8 @@ PRODUCT_COPY_FILES += \
# Audio
PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/configs/tiny_hw.xml:system/etc/sound/m0
+ $(LOCAL_PATH)/configs/tiny_hw.xml:system/etc/sound/m0 \
+ $(LOCAL_PATH)/audio/silence.wav:system/etc/sound/silence.wav
# Gps
PRODUCT_COPY_FILES += \
@@ -47,7 +48,8 @@ PRODUCT_PACKAGES += \
DeviceSettings \
libsecril-client \
libsecril-client-sap \
- SamsungServiceMode
+ SamsungServiceMode \
+ tinyplay
# NFC
PRODUCT_PACKAGES += \
diff --git a/init.smdk4x12.rc b/init.smdk4x12.rc
index 4e695db..d451609 100755
--- a/init.smdk4x12.rc
+++ b/init.smdk4x12.rc
@@ -508,3 +508,10 @@ service TvoutService_C /system/bin/bintvoutservice
on property:ro.tvout.enable=false
stop TvoutService_C
+
+# 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