pandora-state: increase audio pm and dirty_expire delays
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 12 May 2012 17:42:03 +0000 (20:42 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 12 May 2012 17:42:03 +0000 (20:42 +0300)
recipes/pandora-system/pandora-state.bb
recipes/pandora-system/pandora-state/dirty_expire_centisecs
recipes/pandora-system/pandora-state/rc.pandora-state

index 8542f62..b7027c5 100755 (executable)
@@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 
 RDEPENDS = "pandora-scripts"
 
 
 RDEPENDS = "pandora-scripts"
 
-PR = "r9"
+PR = "r10"
 inherit update-rc.d
 
 INITSCRIPT_NAME = "pandora-state"
 inherit update-rc.d
 
 INITSCRIPT_NAME = "pandora-state"
index e5729fc..c1a1f98 100644 (file)
@@ -73,6 +73,11 @@ d_start() {
        echo "Enabling ZRAM Swap"
        mkswap /dev/zram0
        swapon -p 5 /dev/zram0
        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
 }
 
 case "$1" in