diff options
author | Daniel Hillenbrand <codeworkx@cyanogenmod.org> | 2013-07-25 17:18:20 +0200 |
---|---|---|
committer | Daniel Hillenbrand <codeworkx@cyanogenmod.org> | 2013-07-25 17:18:20 +0200 |
commit | 007c1185a2cfb3b11110f4deb20ddd6d5df14ad3 (patch) | |
tree | 2e7015e8e3470d8e29930ac819e71a02bdb9ee10 | |
parent | 23d5fdee99f40be22caf31c6925caedbca83a5c0 (diff) | |
download | device_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.wav | bin | 0 -> 326686 bytes | |||
-rw-r--r-- | i9300.mk | 6 | ||||
-rwxr-xr-x | init.smdk4x12.rc | 7 |
3 files changed, 11 insertions, 2 deletions
diff --git a/audio/silence.wav b/audio/silence.wav Binary files differnew file mode 100644 index 0000000..5fe31d2 --- /dev/null +++ b/audio/silence.wav @@ -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 |