mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
input: sensors: increase sampling frequency.
for android-10.0: increase the sampling frequency to pass the vts test. Change-Id: I2d68b51e5697a576acebff03b5b1e92b1c90a7d8 Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
This commit is contained in:
@@ -491,10 +491,10 @@ static int sensor_reset_rate(struct i2c_client *client, int rate)
|
||||
dev_info(&client->dev, "set sensor poll time to %dms\n", rate);
|
||||
|
||||
/* work queue is always slow, we need more quickly to match hal rate */
|
||||
if (sensor->pdata->poll_delay_ms == (rate - 2))
|
||||
if (sensor->pdata->poll_delay_ms == (rate - 4))
|
||||
return 0;
|
||||
|
||||
sensor->pdata->poll_delay_ms = rate - 2;
|
||||
sensor->pdata->poll_delay_ms = rate - 4;
|
||||
|
||||
if (sensor->status_cur == SENSOR_ON) {
|
||||
if (!sensor->pdata->irq_enable) {
|
||||
|
||||
Reference in New Issue
Block a user