summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2017-02-12 00:15:40 -0500
committerMichael Sevakis <jethead71@rockbox.org>2017-02-12 00:21:09 -0500
commiteaf6aad690927ab0abfaae5276ef6561b334f803 (patch)
tree28d5a77b5f7a6f3ee0e891d2a55f4f735515e38d
parent523ef4edbdccf8198fbb7787afba2fe3f46f1ca8 (diff)
downloadrockbox-eaf6aad.tar.gz
rockbox-eaf6aad.tar.bz2
rockbox-eaf6aad.zip
Forgot to remove unused RDS buffers from the ipod remote tuner.
Also, use rds_reset() now to clear data on station change since the rds driver internal buffers are used. Change-Id: I043b09d661eeec21617381015347f0bcead4f7d4
-rw-r--r--firmware/drivers/tuner/ipod_remote_tuner.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/firmware/drivers/tuner/ipod_remote_tuner.c b/firmware/drivers/tuner/ipod_remote_tuner.c
index e283ddfb68..9595939f1d 100644
--- a/firmware/drivers/tuner/ipod_remote_tuner.c
+++ b/firmware/drivers/tuner/ipod_remote_tuner.c
@@ -42,9 +42,6 @@ static int tuner_frequency = 0;
static int tuner_signal_power = 0;
static bool radio_tuned = false;
-static char rds_radioname[9];
-static char rds_radioinfo[65];
-
static void rmt_tuner_signal_power(unsigned char value)
{
tuner_signal_power = (int)(value);
@@ -68,9 +65,8 @@ static void rmt_tuner_set_freq(int curr_freq)
{
radio_tuned = false;
tuner_signal_power = 0;
- /* clear rds name and info */
- memset(rds_radioname,' ',sizeof(rds_radioname));
- memset(rds_radioinfo,' ',sizeof(rds_radioinfo));
+ /* clear rds data */
+ rds_reset();
/* ex: 00 01 63 14 = 90.9MHz */
unsigned char data[] = {0x07, 0x0B, 0x00, 0x01, 0x63, 0x14};