[media] v4l: vsp1: Allocate pipelines on demand
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sun, 17 Jan 2016 21:53:56 +0000 (19:53 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 13 Apr 2016 22:03:21 +0000 (19:03 -0300)
commita0cdac5610ea900dcf6a78d4d0216aef2bca7b80
tree970a24dc99e7eba62b5011f546b916f2788d9dc5
parent76c29755960c911b4e1bec3da90d4d5f6b44d3f3
[media] v4l: vsp1: Allocate pipelines on demand

Instead of embedding pipelines in the vsp1_video objects allocate them
on demand when they are needed. This fixes the streamon race condition
where pipelines objects from different video nodes could be used for the
same pipeline.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vsp1/vsp1_bru.c
drivers/media/platform/vsp1/vsp1_drv.c
drivers/media/platform/vsp1/vsp1_pipe.c
drivers/media/platform/vsp1/vsp1_pipe.h
drivers/media/platform/vsp1/vsp1_rpf.c
drivers/media/platform/vsp1/vsp1_video.c
drivers/media/platform/vsp1/vsp1_video.h
drivers/media/platform/vsp1/vsp1_wpf.c