From 1bbcbb4980ec718e92debb7da31a9747cbd1b7ae Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Sat, 12 May 2012 20:42:03 +0300 Subject: [PATCH] pandora-state: increase audio pm and dirty_expire delays --- recipes/pandora-system/pandora-state.bb | 2 +- recipes/pandora-system/pandora-state/dirty_expire_centisecs | 2 +- recipes/pandora-system/pandora-state/rc.pandora-state | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/recipes/pandora-system/pandora-state.bb b/recipes/pandora-system/pandora-state.bb index 8542f62..b7027c5 100755 --- a/recipes/pandora-system/pandora-state.bb +++ b/recipes/pandora-system/pandora-state.bb @@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora" RDEPENDS = "pandora-scripts" -PR = "r9" +PR = "r10" inherit update-rc.d INITSCRIPT_NAME = "pandora-state" diff --git a/recipes/pandora-system/pandora-state/dirty_expire_centisecs b/recipes/pandora-system/pandora-state/dirty_expire_centisecs index 5113faf..d157d28 100644 --- a/recipes/pandora-system/pandora-state/dirty_expire_centisecs +++ b/recipes/pandora-system/pandora-state/dirty_expire_centisecs @@ -1 +1 @@ -20 +200 diff --git a/recipes/pandora-system/pandora-state/rc.pandora-state b/recipes/pandora-system/pandora-state/rc.pandora-state index e5729fc..c1a1f98 100644 --- a/recipes/pandora-system/pandora-state/rc.pandora-state +++ b/recipes/pandora-system/pandora-state/rc.pandora-state @@ -73,6 +73,11 @@ d_start() { echo "Enabling ZRAM Swap" mkswap /dev/zram0 swapon -p 5 /dev/zram0 + + # set audio powerdown delay (ms) + if [ -e /sys/devices/platform/soc-audio/PCM1773/pmdown_time ]; then + echo 60000 > /sys/devices/platform/soc-audio/PCM1773/pmdown_time + fi } case "$1" in -- 2.39.2