Re: [PATCH 3/4] iio: mxs-lradc: make ADC reads not unschedule touchscreen conversions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19/01/15 09:57, Marek Vasut wrote:
> On Monday, January 19, 2015 at 08:20:31 AM, Juergen Borleis wrote:
>> On Saturday 17 January 2015 01:22:10 Kristina Martšenko wrote:
>>> Reading a channel through sysfs, or starting a buffered capture, can
>>> occasionally turn off the touchscreen.
>>> [...]
>>
>> I have my old ChumbyOne around (i.MX23). How to test this buffered capture
>> while using the touchscreen part of the ADC (I have never used the IIO
>> before).

That's great, thanks for offering to test this.

> Last time I checked there was drivers/staging/iio/Documentation/generic_buffer.c 
> , but you can also wait for a more precise advice from Kristina . Hope it helps
> at least a bit ;-)

Yeah, I used generic_buffer.c for testing.

You can enable some channels like this:

echo 1 >/sys/bus/iio/devices/iio\:device0/scan_elements/in_voltage7_en
echo 1 >/sys/bus/iio/devices/iio\:device0/scan_elements/in_voltage10_en
echo 1 >/sys/bus/iio/devices/iio\:device0/scan_elements/in_voltage12_en
echo 1 >/sys/bus/iio/devices/iio\:device0/scan_elements/in_voltage13_en
echo 1 >/sys/bus/iio/devices/iio\:device0/scan_elements/in_voltage14_en
echo 1 >/sys/bus/iio/devices/iio\:device0/scan_elements/in_voltage15_en

And then start the capture and read 10 samples with generic_buffer:

./generic_buffer -n 80050000.lradc -c 10

And using the touchscreen at the same time should work now. Let me know
if it doesn't :)

Kristina
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux