Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH_RFC_v1 0/4] MC initial changes due to MC workshop
@ 2015-08-04 11:41 Mauro Carvalho Chehab
  2015-08-04 11:41 ` [PATCH_RFC_v1 1/4] media: Add some fields to store graph objects Mauro Carvalho Chehab
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Mauro Carvalho Chehab @ 2015-08-04 11:41 UTC (permalink / raw)
  To: media-workshop, Linux Media Mailing List
  Cc: Mauro Carvalho Chehab, Mauro Carvalho Chehab

This is an initial set of patches showing the approach I'm taking
in order to fulfill all the MC needs that was discussed on the 3
day MC summit in Helsinki.

As suggested, I'll be sending incremental patches and avoiding to
do a large set of changes into one changeset series.

So, this is the first 4 patches of the changes.

Along this patch series, I'll be calling "object" as anything "symbol"
is part of the media graph. Currently: entity, link and pads.

New object types will be needed to represent interfaces. I suspect
we'll also need another type to represent group of objects, but this
will be covered on future patches.

No userspace API changes here, just changes at the internal structs
that contains the media graph objects and some new helper functions.

The goal of this patchset is:

1) to create a common struct that will be embedded on all internal
   structs that represents the comon data that will be used by
   all kinds of objects;

2) to have an unique object ID for each object in the graph. The
   object ID will be needed by the userspace API in the future, as
   discussed during the MC workshop;

3) to be sure that no data used by an entity will be freed too
   early. Latter patches will do similar changes to links and pads.

With regards to (3), this patchset is not complete yet; it currently
changes only the DVB core, as the changes are simpler there.
I'll be working on a similar change for the V4L2 core. Yet, it would
be nice to have a feedback earlier in order to avoid rework.

Mauro Carvalho Chehab (4):
  media: Add some fields to store graph objects
  media: Add a common embeed struct for all media graph objects
  media: add functions to create/remove entities
  dvbdev: Use functions to create/remove media_entity struct

 drivers/media/dvb-core/dvbdev.c | 13 +++---
 drivers/media/media-device.c    |  4 ++
 drivers/media/media-entity.c    | 99 +++++++++++++++++++++++++++++++++++++++++
 include/media/media-device.h    |  4 ++
 include/media/media-entity.h    | 58 ++++++++++++++++++++++++
 5 files changed, 172 insertions(+), 6 deletions(-)

-- 
2.4.3


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-08-05 14:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-04 11:41 [PATCH_RFC_v1 0/4] MC initial changes due to MC workshop Mauro Carvalho Chehab
2015-08-04 11:41 ` [PATCH_RFC_v1 1/4] media: Add some fields to store graph objects Mauro Carvalho Chehab
2015-08-04 11:41 ` [PATCH_RFC_v1 2/4] media: Add a common embeed struct for all media " Mauro Carvalho Chehab
2015-08-04 12:26   ` Hans Verkuil
2015-08-04 13:26     ` Mauro Carvalho Chehab
2015-08-05 11:27       ` Hans Verkuil
2015-08-05 14:58         ` Mauro Carvalho Chehab
2015-08-04 11:41 ` [PATCH_RFC_v1 3/4] media: add functions to create/remove entities Mauro Carvalho Chehab
2015-08-04 11:41 ` [PATCH_RFC_v1 4/4] dvbdev: Use functions to create/remove media_entity struct Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox