summaryrefslogtreecommitdiff
path: root/firmware/drivers/tuner/rda5802.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/tuner/rda5802.c')
-rw-r--r--firmware/drivers/tuner/rda5802.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/drivers/tuner/rda5802.c b/firmware/drivers/tuner/rda5802.c
index 7b9bea721d..377bdd1e6f 100644
--- a/firmware/drivers/tuner/rda5802.c
+++ b/firmware/drivers/tuner/rda5802.c
@@ -30,6 +30,8 @@
30#include "tuner.h" /* tuner abstraction interface */ 30#include "tuner.h" /* tuner abstraction interface */
31#include "fmradio.h" 31#include "fmradio.h"
32#include "fmradio_i2c.h" /* physical interface driver */ 32#include "fmradio_i2c.h" /* physical interface driver */
33#include "audio.h"
34#include "backlight.h"
33 35
34#define SEEK_THRESHOLD 0x16 36#define SEEK_THRESHOLD 0x16
35 37
@@ -328,15 +330,15 @@ int rda5802_get(int setting)
328 break; 330 break;
329 331
330 case RADIO_TUNED: 332 case RADIO_TUNED:
331 val = rda5802_tuned(); 333 val = ((audio_status() & AUDIO_STATUS_RECORD) || !is_backlight_on(true)) ? 1 : rda5802_tuned();
332 break; 334 break;
333 335
334 case RADIO_STEREO: 336 case RADIO_STEREO:
335 val = rda5802_st(); 337 val = ((audio_status() & AUDIO_STATUS_RECORD) || !is_backlight_on(true)) ? 1 : rda5802_st();
336 break; 338 break;
337 339
338 case RADIO_RSSI: 340 case RADIO_RSSI:
339 val = rda5802_rssi(); 341 val = ((audio_status() & AUDIO_STATUS_RECORD) || !is_backlight_on(true)) ? RSSI_MAX : rda5802_rssi();
340 break; 342 break;
341 343
342 case RADIO_RSSI_MIN: 344 case RADIO_RSSI_MIN: