]> git.baikalelectronics.ru Git - kernel.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)
commit898720679cd013506e8bd10a942b7dbc2e884faf
treed7371833516627fb6d9678f1ded25bb41cd58b87
parentff03c3a43de312ecaca3aa84bec0031850bbbcbd
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