]> 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)
commit90426680e4ff22e5d4a4d763574d2bc87c05248a
treed7371833516627fb6d9678f1ded25bb41cd58b87
parentc5d9da871f9c8b246d6213d6e44dfe7fecad861c
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