summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2021-12-10 16:54:41 +0100
committerSolomon Peachy <pizza@shaftnet.org>2022-01-30 12:27:30 -0500
commit76a2a0073222e3c131294f059543306067ad6ecb (patch)
tree7b63a521b3ce8cf1b636f0370784e0d04716ada8
parent68887b4730238ff326130519fb2e64f75bfe1dd6 (diff)
downloadrockbox-76a2a0073222e3c131294f059543306067ad6ecb.tar.gz
rockbox-76a2a0073222e3c131294f059543306067ad6ecb.zip
si4700: optimize RDS cache update a little
use si4700_read() instead of si4700_read_reg() to make it clear we are not interested in the register itself but in the cache update. Also, a tiny bit more efficient as we save a function call and don't request a return value we don't use anyhow. Change-Id: Ibbb66fd9e5ea748ba11ac3c2a0570f5219b72637
-rw-r--r--firmware/drivers/tuner/si4700.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/tuner/si4700.c b/firmware/drivers/tuner/si4700.c
index 57006b4e3c..cce203fde9 100644
--- a/firmware/drivers/tuner/si4700.c
+++ b/firmware/drivers/tuner/si4700.c
@@ -586,7 +586,7 @@ void si4700_rds_process(void)
586 586
587 if (tuner_powered()) 587 if (tuner_powered())
588 { 588 {
589 si4700_read_reg(RDSD); 589 si4700_read(6);
590#if (CONFIG_RDS & RDS_CFG_POLL) 590#if (CONFIG_RDS & RDS_CFG_POLL)
591 /* we need to keep track of the ready bit because it stays set for 80ms 591 /* we need to keep track of the ready bit because it stays set for 80ms
592 * and we must avoid processing it twice */ 592 * and we must avoid processing it twice */