summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHemant Gupta <hemant.gupta@stericsson.com>2011-05-06 13:40:01 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:06:01 +0200
commitea3500f7b5e6f419ddc5552e2ff7c7d6909ab725 (patch)
treea19749cb8bb311c461d783da87da03cc48a92834 /drivers
parent85ea020c25f08b83a27edda791616d0258de8766 (diff)
CG2900 FM Radio: RDS decoding time is too long.
This patch fixes the problem of long time taken to send RDS Data to user space application when RDS is enabled first time. ST-Ericsson ID: 338036 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: If29ea6c9dcab730ad794067a26b76fb8a1927137 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24896 Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com> Reviewed-by: Said BAGHERI <said.m.bagheri@stericsson.com> Tested-by: Said BAGHERI <said.m.bagheri@stericsson.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/radio/CG2900/cg2900_fm_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/radio/CG2900/cg2900_fm_driver.c b/drivers/media/radio/CG2900/cg2900_fm_driver.c
index 3c6675cab4c..6ac380409c1 100644
--- a/drivers/media/radio/CG2900/cg2900_fm_driver.c
+++ b/drivers/media/radio/CG2900/cg2900_fm_driver.c
@@ -4619,6 +4619,8 @@ void fmd_stop_rds_thread(void)
FM_INFO_REPORT("fmd_stop_rds_thread");
/* In case thread is waiting, set the rds sem */
fmd_set_rds_sem();
+ /* Re-initialize RDS Semaphore to zero */
+ sema_init(&rds_sem, 0);
cb_rds_func = NULL;
rds_thread_required = false;
if (rds_thread_task) {