]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commit
media: ti-vpe: vip: Create VIP streams based on DTS channel info
authorNikhil Devshatwar <nikhil.nd@ti.com>
Fri, 14 Aug 2015 03:50:08 +0000 (09:20 +0530)
committerNikhil Devshatwar <nikhil.nd@ti.com>
Mon, 17 Aug 2015 07:51:45 +0000 (13:21 +0530)
commit003dcb121237c905e7a7e67bb8aa073821351775
tree91c03c5c47d03ba7dca693cc6ffeaa287ab67f9c
parent7088c87219628e629a6abdf26a7efa52772b7a25
media: ti-vpe: vip: Create VIP streams based on DTS channel info

With support for multi channel capture and multiple subdevices, sometimes,
driver has to choose between available subdevices. e.g. muxed cameras.
This means, the driver cannot preallocate the capture streams before knowing
the subdevice. This won't work great with multichannel capture subdevices.

Create the capture streams after a subdevice of higher priority is matched.
Of couse, cleanup all the streams associated with the old subdev.
Negotiate with the subdevice to find out the supported formats.
Set the port specific endpoint and subdev info accordingly.

With this, sometimes the video devices would get created, deleted and
re-created again. This may be a problem with video_device. Therefore,
as recommended, allocate the video_device instead of using embedded one.

Change-Id: Ia8f27a2f3ac3880dda9f6801081399cd52630d74
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
drivers/media/platform/ti-vpe/vip.c
drivers/media/platform/ti-vpe/vip.h