diff options
Diffstat (limited to 'firmware/target/arm/as3525/fmradio-i2c-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/fmradio-i2c-as3525.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/fmradio-i2c-as3525.c b/firmware/target/arm/as3525/fmradio-i2c-as3525.c index 5b629f5ad4..7f6cb8366b 100644 --- a/firmware/target/arm/as3525/fmradio-i2c-as3525.c +++ b/firmware/target/arm/as3525/fmradio-i2c-as3525.c | |||
@@ -185,6 +185,11 @@ int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count) | |||
185 | } | 185 | } |
186 | 186 | ||
187 | #ifdef HAVE_RDS_CAP | 187 | #ifdef HAVE_RDS_CAP |
188 | /* On the Sansa Clip Zip, the tuner interrupt line is routed to the SoC so we | ||
189 | * can use to detect when a RDS packet is ready. On the Clip+, we have to | ||
190 | * regularly poll. */ | ||
191 | |||
192 | #if !(CONFIG_RDS & RDS_CFG_POLL) | ||
188 | /* Low-level RDS Support */ | 193 | /* Low-level RDS Support */ |
189 | static struct semaphore rds_sema; | 194 | static struct semaphore rds_sema; |
190 | static uint32_t rds_stack[DEFAULT_STACK_SIZE/sizeof(uint32_t)]; | 195 | static uint32_t rds_stack[DEFAULT_STACK_SIZE/sizeof(uint32_t)]; |
@@ -231,4 +236,5 @@ void si4700_rds_init(void) | |||
231 | create_thread(rds_thread, rds_stack, sizeof(rds_stack), 0, "rds" | 236 | create_thread(rds_thread, rds_stack, sizeof(rds_stack), 0, "rds" |
232 | IF_PRIO(, PRIORITY_REALTIME) IF_COP(, CPU)); | 237 | IF_PRIO(, PRIORITY_REALTIME) IF_COP(, CPU)); |
233 | } | 238 | } |
239 | #endif /* !(CONFIG_RDS & RDS_CFG_POLL) */ | ||
234 | #endif /* HAVE_RDS_CAP */ | 240 | #endif /* HAVE_RDS_CAP */ |