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
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux