]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/media/media-entity.h
[media] media: Move media graph state for streamon/off to the pipeline
authorSakari Ailus <sakari.ailus@iki.fi>
Wed, 16 Dec 2015 13:32:21 +0000 (11:32 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:18 +0000 (12:19 -0200)
commit5dd8775dc6b480f67be11108d7cd798fba724cab
treea98e42430cc8bfd4c1c68ae485b9b8f6f24d6db3
parent434257f19ce0a6b635a84882257034ae79d2f274
[media] media: Move media graph state for streamon/off to the pipeline

The struct media_entity_graph was allocated in the stack, limiting the
number of entities that could be reasonably allocated. Instead, move the
struct to struct media_pipeline which is typically allocated using
kmalloc() instead.

The intent is to keep the enumeration around for later use for the
duration of the streaming. As streaming is eventually stopped, an
unfortunate memory allocation failure would prevent stopping the
streaming. As no memory will need to be allocated, the problem is avoided
altogether.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-entity.c
include/media/media-entity.h