diff options
Diffstat (limited to 'drivers/media/radio/CG2900/cg2900_fm_api.c')
-rw-r--r-- | drivers/media/radio/CG2900/cg2900_fm_api.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/media/radio/CG2900/cg2900_fm_api.c b/drivers/media/radio/CG2900/cg2900_fm_api.c index b7f5f9867d6..c636f2fe8a9 100644 --- a/drivers/media/radio/CG2900/cg2900_fm_api.c +++ b/drivers/media/radio/CG2900/cg2900_fm_api.c @@ -26,6 +26,8 @@ #define FW_FILE_PARAM_LEN 3 /* RDS Tx PTY set to Other music */ #define OTHER_MUSIC 15 +#define DEFAULT_AUDIO_DEVIATION 0x1AA9 +#define DEFAULT_NOTIFICATION_HOLD_OFF_TIME 0x000A static bool fm_rds_status; static bool fm_prev_rds_status; @@ -1262,6 +1264,20 @@ int cg2900_fm_set_tx_default_settings( goto error; } + /* Sets the Limiter Values */ + FM_DEBUG_REPORT("cg2900_fm_set_tx_default_settings: " + "Sending fmd_limiter_setcontrol"); + result = fmd_limiter_setcontrol( + DEFAULT_AUDIO_DEVIATION, + DEFAULT_NOTIFICATION_HOLD_OFF_TIME); + if (0 != result) { + FM_ERR_REPORT("cg2900_fm_set_tx_default_settings: " + "fmd_limiter_setcontrol failed %x", + (unsigned int)result); + result = -EINVAL; + goto error; + } + /* Set the Grid */ FM_DEBUG_REPORT("cg2900_fm_set_tx_default_settings: " "Sending fmd_tx_set_grid "); |