summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemant Gupta <hemant.gupta@stericsson.com>2011-05-06 13:40:01 +0530
committerPhilippe LANGLAIS <philippe.langlais@stericsson.com>2011-06-10 15:00:49 +0200
commite77a33b652d5d86b2597f5ebe10041333fc99c8d (patch)
tree0fe18865eb99ef99254f618a120b50bd860b8100
parente5ac32d8b85ef761e3ffb094167b349b94a87430 (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>
-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) {