From 007c1185a2cfb3b11110f4deb20ddd6d5df14ad3 Mon Sep 17 00:00:00 2001 From: Daniel Hillenbrand Date: Thu, 25 Jul 2013 17:18:20 +0200 Subject: i9300: audio: play silence on boot workaround for dead incall audio if no sound got played after boot Change-Id: I1ee26e438cf980afdb618539aa0377453b730abe --- audio/silence.wav | Bin 0 -> 326686 bytes i9300.mk | 6 ++++-- init.smdk4x12.rc | 7 +++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 audio/silence.wav diff --git a/audio/silence.wav b/audio/silence.wav new file mode 100644 index 0000000..5fe31d2 Binary files /dev/null and b/audio/silence.wav 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 -- cgit v1.1