author | Nikhil Devshatwar <nikhil.nd@ti.com> | |
Fri, 14 Aug 2015 03:50:08 +0000 (09:20 +0530) | ||
committer | Nikhil Devshatwar <nikhil.nd@ti.com> | |
Mon, 17 Aug 2015 07:51:45 +0000 (13:21 +0530) | ||
commit | 003dcb121237c905e7a7e67bb8aa073821351775 | |
tree | 91c03c5c47d03ba7dca693cc6ffeaa287ab67f9c | tree | snapshot (tar.xz tar.gz zip) |
parent | 7088c87219628e629a6abdf26a7efa52772b7a25 | commit | diff |
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>
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 | diff | blob | history | |
drivers/media/platform/ti-vpe/vip.h | diff | blob | history |