]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: adc: sc27xx: Change to polling mode to read data
authorFreeman Liu <freeman.liu@unisoc.com>
Thu, 25 Jul 2019 06:33:50 +0000 (14:33 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 18 Aug 2019 19:26:47 +0000 (20:26 +0100)
commit8de877d2bba5c3b83f6fce48965fbd89677be097
treed7371833516627fb6d9678f1ded25bb41cd58b87
parent473d12f7638c93acbd9296a8cd455b203d5eb528
iio: adc: sc27xx: Change to polling mode to read data

On Spreadtrum platform, the headphone will read one ADC channel multiple
times to identify the headphone type, and the headphone identification is
sensitive of the ADC reading time. And we found it will take longer time
to reading ADC data by using interrupt mode comparing with the polling
mode, thus we should change to polling mode to improve the efficiency
of reading data, which can identify the headphone type successfully.

Signed-off-by: Freeman Liu <freeman.liu@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/sc27xx_adc.c