diff options
author | Arun Murthy <arun.murthy@stericsson.com> | 2012-01-10 15:23:49 +0530 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:07:24 +0200 |
commit | 5c509223e311766d48f03e1be403cf33ddd526de (patch) | |
tree | f3eb68aed33da2d25ad0f9ef3289cd33d319b451 /drivers | |
parent | a14e91b4908c66917b2653179db226587ae6b874 (diff) |
u8500-shrm: inactivity timer
change the inactivity timer of audio and common messages to 25ms.
Since there is audio patch every 20ms, the inactivity timer can be 25ms.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 410076
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I9c66012b7283bcf60786ef3475111ce398cf9044
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45200
Reviewed-by: Bibek BASU <bibek.basu@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Tested-by: Bibek BASU <bibek.basu@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/modem/shrm/shrm_fifo.c | 4 | ||||
-rw-r--r-- | drivers/modem/shrm/shrm_protocol.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/modem/shrm/shrm_fifo.c b/drivers/modem/shrm/shrm_fifo.c index 1804c1be69e..5fe9f3c5724 100644 --- a/drivers/modem/shrm/shrm_fifo.c +++ b/drivers/modem/shrm/shrm_fifo.c @@ -30,8 +30,8 @@ #define MASK_8_16_BIT 0x0000FF00 #define MSG_LEN_OFFSET 16 #define SHRM_VER 2 -#define ca_ist_inactivity_timer 100 /*100ms */ -#define ca_csc_inactivity_timer 100 /*100ms */ +#define ca_ist_inactivity_timer 25 /*25ms */ +#define ca_csc_inactivity_timer 25 /*25ms */ static u8 msg_audio_counter; static u8 msg_common_counter; diff --git a/drivers/modem/shrm/shrm_protocol.c b/drivers/modem/shrm/shrm_protocol.c index cfa65cda18f..dfb8f14f0e2 100644 --- a/drivers/modem/shrm/shrm_protocol.c +++ b/drivers/modem/shrm/shrm_protocol.c @@ -400,7 +400,7 @@ void shm_ac_read_notif_0_tasklet(unsigned long tasklet_data) dev_err(shrm->dev, "Invalid boot state\n"); } /* start timer here */ - hrtimer_start(&timer, ktime_set(0, 10*NSEC_PER_MSEC), + hrtimer_start(&timer, ktime_set(0, 25*NSEC_PER_MSEC), HRTIMER_MODE_REL); atomic_dec(&ac_sleep_disable_count); @@ -438,7 +438,7 @@ void shm_ac_read_notif_1_tasklet(unsigned long tasklet_data) shrm_audio_tx_state = SHRM_IDLE; } /* start timer here */ - hrtimer_start(&timer, ktime_set(0, 10*NSEC_PER_MSEC), + hrtimer_start(&timer, ktime_set(0, 25*NSEC_PER_MSEC), HRTIMER_MODE_REL); atomic_dec(&ac_sleep_disable_count); atomic_dec(&ac_msg_pend_1); |