summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uisimulator/common/fmradio.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/uisimulator/common/fmradio.c b/uisimulator/common/fmradio.c
index d7acaa513b..851c11bcb5 100644
--- a/uisimulator/common/fmradio.c
+++ b/uisimulator/common/fmradio.c
@@ -26,6 +26,10 @@
26static int frequency = 0; 26static int frequency = 0;
27static bool mono = false; 27static bool mono = false;
28 28
29#ifdef HAVE_TUNER_PWR_CTRL
30static bool powered = false;
31#endif
32
29int radio_set(int setting, int value) 33int radio_set(int setting, int value)
30{ 34{
31 switch(setting) 35 switch(setting)
@@ -81,4 +85,13 @@ int radio_get(int setting)
81 return val; 85 return val;
82} 86}
83 87
88#ifdef HAVE_TUNER_PWR_CTRL
89bool radio_power(bool status)
90{
91 bool oldstatus = powered;
92 powered = status;
93 return oldstatus;
94}
95#endif
96
84#endif 97#endif