linux/drivers/media
Hans Verkuil 6ec1cbf6b1 media: cec: improve CEC pin event handling
It turns out that the struct cec_fh event buffer size of 64 events
(64 for CEC_EVENT_PIN_CEC_LOW and 64 for _HIGH) is too small. It's
about 160 ms worth of events and if the Raspberry Pi is busy, then it
might take too long for the application to be scheduled so that it can
drain the pending events. Increase these buffers to 800 events which
is at least 2 seconds worth of events.

There is also a FIFO in between the interrupt and the cec-pin thread.
The thread passes the events on to the CEC core. It is important that
should this FIFO fill up the cec core will be informed that events
have been lost so this can be communicated to the user by setting
CEC_EVENT_FL_DROPPED_EVENTS.

It is very hard to debug CEC problems if events were lost without
informing the user of that fact.

If events were dropped due to the FIFO filling up, then the debugfs
status file will let you know how many events were dropped.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-03-22 08:16:52 -04:00
..
cec media: cec: improve CEC pin event handling 2018-03-22 08:16:52 -04:00
common media: siano: Fix coherent memory allocation failure on arm64 2018-03-06 12:46:15 -05:00
dvb-core media: dvbdev: fix building on ia64 2018-03-07 04:11:50 -05:00
dvb-frontends media: af9013: add pid filter support 2018-03-21 14:11:54 -04:00
firewire vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
i2c media: i2c: mt9t112: Remove soc_camera dependencies 2018-03-21 15:29:07 -04:00
mmc media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
pci media: ngene: avoid unused variable warning 2018-03-22 06:17:40 -04:00
platform media: cec: improve CEC pin event handling 2018-03-22 08:16:52 -04:00
radio media: radio: Critical interrupt bugfix for si470x over i2c 2018-03-21 12:00:02 -04:00
rc media: rc: mceusb: pid 0x0609 vid 0x031d does not under report carrier cycles 2018-03-21 14:03:03 -04:00
spi media: cxd2880: Add all Makefile, Kconfig files and Update MAINTAINERS file for the driver 2018-03-07 05:02:57 -05:00
tuners media: add tuner standby op, use where needed 2018-03-21 12:05:39 -04:00
usb media: af9015: correct some coding style issues 2018-03-21 14:16:32 -04:00
v4l2-core media: v4l2: Add v4l2 control IDs for HEVC encoder 2018-03-22 06:32:15 -04:00
Kconfig media: Kconfig: fix DVB dependencies 2018-03-08 06:06:49 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
media-device.c media: zero reservedX fields in media_v2_topology 2018-02-26 09:47:53 -05:00
media-devnode.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
media-entity.c media: media.h: reorganize header to make it easier to understand 2018-02-26 10:14:46 -05:00