diff options
| -rw-r--r-- | uisimulator/common/fmradio.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/uisimulator/common/fmradio.c b/uisimulator/common/fmradio.c index d7acaa5..851c11b 100644 --- a/uisimulator/common/fmradio.c +++ b/uisimulator/common/fmradio.c @@ -26,6 +26,10 @@ static int frequency = 0; static bool mono = false; +#ifdef HAVE_TUNER_PWR_CTRL +static bool powered = false; +#endif + int radio_set(int setting, int value) { switch(setting) @@ -81,4 +85,13 @@ int radio_get(int setting) return val; } +#ifdef HAVE_TUNER_PWR_CTRL +bool radio_power(bool status) +{ + bool oldstatus = powered; + powered = status; + return oldstatus; +} +#endif + #endif |