Re: [PATCH 1/2] iio: adc: sc27xx: Add raw data support

2018-08-27 Thread Baolin Wang
Hi Jonathan, On 25 August 2018 at 16:38, Jonathan Cameron wrote: > On Fri, 24 Aug 2018 17:53:15 +0800 > Baolin Wang wrote: > >> The headset device will use channel 20 of ADC controller to detect events, >> but it needs the raw ADC data to do conversion according to its own formula. >> >> Thus

Re: [PATCH 1/2] iio: adc: sc27xx: Add raw data support

2018-08-27 Thread Baolin Wang
Hi Jonathan, On 25 August 2018 at 16:38, Jonathan Cameron wrote: > On Fri, 24 Aug 2018 17:53:15 +0800 > Baolin Wang wrote: > >> The headset device will use channel 20 of ADC controller to detect events, >> but it needs the raw ADC data to do conversion according to its own formula. >> >> Thus

Re: [PATCH 1/2] iio: adc: sc27xx: Add raw data support

2018-08-25 Thread Jonathan Cameron
On Fri, 24 Aug 2018 17:53:15 +0800 Baolin Wang wrote: > The headset device will use channel 20 of ADC controller to detect events, > but it needs the raw ADC data to do conversion according to its own formula. > > Thus we should configure the channel mask separately and configure channel > 20

Re: [PATCH 1/2] iio: adc: sc27xx: Add raw data support

2018-08-25 Thread Jonathan Cameron
On Fri, 24 Aug 2018 17:53:15 +0800 Baolin Wang wrote: > The headset device will use channel 20 of ADC controller to detect events, > but it needs the raw ADC data to do conversion according to its own formula. > > Thus we should configure the channel mask separately and configure channel > 20

[PATCH 1/2] iio: adc: sc27xx: Add raw data support

2018-08-24 Thread Baolin Wang
The headset device will use channel 20 of ADC controller to detect events, but it needs the raw ADC data to do conversion according to its own formula. Thus we should configure the channel mask separately and configure channel 20 as IIO_CHAN_INFO_RAW, as well as adding raw data read support.

[PATCH 1/2] iio: adc: sc27xx: Add raw data support

2018-08-24 Thread Baolin Wang
The headset device will use channel 20 of ADC controller to detect events, but it needs the raw ADC data to do conversion according to its own formula. Thus we should configure the channel mask separately and configure channel 20 as IIO_CHAN_INFO_RAW, as well as adding raw data read support.