radio-iris: Adding offset to the search mode for RDS search command
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
diff --git a/drivers/media/radio/radio-iris.c b/drivers/media/radio/radio-iris.c
index 47e23e5..347b113 100644
--- a/drivers/media/radio/radio-iris.c
+++ b/drivers/media/radio/radio-iris.c
@@ -1654,6 +1654,7 @@
case RDS_SEEK_PTY:
case RDS_SCAN_PTY:
case RDS_SEEK_PI:
+ srch = srch - SEARCH_RDS_STNS_MODE_OFFSET;
radio->srch_rds.srch_station.srch_mode = srch;
radio->srch_rds.srch_station.srch_dir = dir;
radio->srch_rds.srch_station.scan_time =
diff --git a/include/media/radio-iris.h b/include/media/radio-iris.h
index 5499754..c482fec 100644
--- a/include/media/radio-iris.h
+++ b/include/media/radio-iris.h
@@ -549,6 +549,8 @@
#define SRCH_DIR_UP (0)
#define SRCH_DIR_DOWN (1)
+/*Search RDS stations*/
+#define SEARCH_RDS_STNS_MODE_OFFSET 4
/* control options */
#define CTRL_ON (1)
#define CTRL_OFF (0)