summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-07-14 22:00:50 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-07-14 22:00:50 +0000
commitdc051248be106c783da15f41295691095f7c18f2 (patch)
treec885ec1307eada2361af145f07e1eef9b44f23c1 /firmware/target/arm
parenta42a346789bff0d13457d19b22e4e0004be7e479 (diff)
downloadrockbox-dc051248be106c783da15f41295691095f7c18f2.tar.gz
rockbox-dc051248be106c783da15f41295691095f7c18f2.zip
e200: Tuner driver needs to yield alot and also be mutexed. FM debug screen got broken again and was ignoring cancellation and not drawing the lines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13896 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/sandisk/sansa-e200/power-e200.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/firmware/target/arm/sandisk/sansa-e200/power-e200.c b/firmware/target/arm/sandisk/sansa-e200/power-e200.c
index 002dcb8407..2745f0ba50 100644
--- a/firmware/target/arm/sandisk/sansa-e200/power-e200.c
+++ b/firmware/target/arm/sandisk/sansa-e200/power-e200.c
@@ -66,9 +66,11 @@ void ide_power_enable(bool on)
66/** Tuner **/ 66/** Tuner **/
67static bool powered = false; 67static bool powered = false;
68 68
69bool tuner_power(bool status) 69bool tuner_power_nolock(bool status)
70{ 70{
71 bool old_status = powered; 71 bool old_status;
72
73 old_status = powered;
72 74
73 if (status != old_status) 75 if (status != old_status)
74 { 76 {
@@ -115,6 +117,15 @@ bool tuner_power(bool status)
115 return old_status; 117 return old_status;
116} 118}
117 119
120bool tuner_power(bool status)
121{
122 bool old_status;
123 lv24020lp_lock();
124 old_status = tuner_power_nolock(status);
125 lv24020lp_unlock();
126 return old_status;
127}
128
118bool tuner_powered(void) 129bool tuner_powered(void)
119{ 130{
120 return powered; 131 return powered;