media: imx: queue subdev events to reachable video devices
authorSteve Longerbeam <slongerbeam@gmail.com>
Tue, 15 Jan 2019 19:15:46 +0000 (17:15 -0200)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 21 Jan 2019 18:43:41 +0000 (16:43 -0200)
commit958f047a250ae9000308de050e4285ecff5089cf
tree47404ece3aa2779bfabdaace0fda70df0a266244
parent451a7b7815d0b9c6e46d005a40d4b07b721fbef4
media: imx: queue subdev events to reachable video devices

In order to receive events generated by subdevices on the video capture
nodes, those events need to be forwarded to the subdevice's list of
reachable video capture devices.

Note this will queue the event to a video device even if there is
no actual _enabled_ media path from the sub-device to the video device.
So a future improvement is to skip the video device if there is no enabled
path to it from the sub-device. The entity->pipe pointer can't be
used for this check because in imx-media a sub-device can be a
member to more than one streaming pipeline at a time.

Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx-media-dev.c