[PATCHv2 7/9] dvb core: add support for DVB net node at the media controller

2015-01-03 Thread Mauro Carvalho Chehab
Make the dvb core network support aware of the media controller and register the corresponding devices. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/dvb-core/dvb_net.c b/drivers/media/dvb-core/dvb_net.c index e4041f074909..cbb50da6b35f 100644 --- a/drivers/media/dvb-core/dvb_n

[PATCHv2 1/9] media: Fix DVB representation at media controller API

2015-01-03 Thread Mauro Carvalho Chehab
The DVB devices are identified via a (major, minor) tuple, and not by a random id. Fix it, before we start using it. Signed-off-by: Mauro Carvalho Chehab diff --git a/include/media/media-entity.h b/include/media/media-entity.h index e00459185d20..de333cc8261b 100644 --- a/include/media/media-ent

[PATCHv2 6/9] dvb core: add support for CA node at the media controller

2015-01-03 Thread Mauro Carvalho Chehab
Make the dvb core CA support aware of the media controller and register the corresponding devices. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/dvb-core/dvb_ca_en50221.c b/drivers/media/dvb-core/dvb_ca_en50221.c index 0aac3096728e..011cb2bc04e1 100644 --- a/drivers/media/dvb-

[PATCHv2 2/9] media: add new types for DVB devnodes

2015-01-03 Thread Mauro Carvalho Chehab
Most of the DVB subdevs have already their own devnode. Add support for them at the media controller API. Signed-off-by: Mauro Carvalho Chehab diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 7902e800f019..707db275f92b 100644 --- a/include/uapi/linux/media.h +++ b/incl

[PATCHv2 3/9] dvb core: add support for media controller at dvbdev

2015-01-03 Thread Mauro Carvalho Chehab
Provide a way to register media controller device nodes at the DVB core. Please notice that the dvbdev callers also require changes for the devices to be registered via the media controller. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-co

[PATCHv2 5/9] dvb core: add support for demux/dvr nodes at media controller

2015-01-03 Thread Mauro Carvalho Chehab
Make the dvb core demux support aware of the media controller and register the corresponding devices. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/dvb-core/dmxdev.c b/drivers/media/dvb-core/dmxdev.c index abff803ad69a..9071636534db 100644 --- a/drivers/media/dvb-core/dmxdev.c

[PATCHv2 8/9] cx231xx: add media controller support

2015-01-03 Thread Mauro Carvalho Chehab
Let's add media controller support for this driver and register it for both V4L and DVB. The media controller on this driver is not mandatory, as it can fully work without it. So, if the media controller register fails, just print an error message, but proceed with device registering. Signed-off-

[PATCHv2 4/9] dvb core: add media controller support for DVB frontend

2015-01-03 Thread Mauro Carvalho Chehab
Now that the dvb core is capable of registering devices via the media controller, add support for the DVB frontend devices. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c index 2cf30576bf39..e34c47de1135 100644 ---

[PATCHv2 0/9] dvb core: add basic support for the media controller

2015-01-03 Thread Mauro Carvalho Chehab
This patch series adds basic support for the media controller at the DVB core: it creates one media entity per DVB devnode, if the media device is passed as an argument to the DVB structures. The cx231xx driver was modified to pass such argument for DVB NET, DVB frontend and DVB demux. - version

[PATCHv2 9/9] dvbdev: add pad for the DVB devnodes

2015-01-03 Thread Mauro Carvalho Chehab
We want to represent the links between the several DVB devnodes, so let's create PADs for them. The DVB net devnode is a different matter, as it is not related to the media stream, but with network. So, at least for now, let's not add any pad for it. Signed-off-by: Mauro Carvalho Chehab diff --

[PATCH 7/7] cx231xx: create DVB graph

2015-01-03 Thread Mauro Carvalho Chehab
cx231xx is simple with regards to DVB: all boards have just one DVB adapter. So, we can use the default DVB helper function to create the DVB media graph. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/usb/cx231xx/cx231xx-dvb.c b/drivers/media/usb/cx231xx/cx231xx-dvb.c index 1c

[PATCH 6/7] dvbdev: add a function to create DVB media graph

2015-01-03 Thread Mauro Carvalho Chehab
We need to create a DVB graph, linking the several DVB devnodes. Add such function. Please notice that this helper function doesn't take into account devices with multiple DVB adapters and frontends. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/med

[PATCH 5/7] dvbdev: represent frontend with two pads

2015-01-03 Thread Mauro Carvalho Chehab
While on some devices the tuner is bound inside the frontend, other devices use a separate subdevice for it. So, in order to be more generic, better to map it with two pads. That will allows to use the media controller to lock the tuner between the DVB and the V4L2 sub-drivers, on hybrid devices.

[PATCH 1/7] tuner-core: properly initialize media controller subdev

2015-01-03 Thread Mauro Carvalho Chehab
Properly initialize tuner core subdev at the media controller. That requires a new subtype at the media controller API. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/v4l2-core/tuner-core.c b/drivers/media/v4l2-core/tuner-core.c index 559f8372e2eb..114715ed0110 100644 --- a/dr

[PATCH 3/7] cx231xx: initialize video/vbi pads

2015-01-03 Thread Mauro Carvalho Chehab
Both video and vbi are sink pads. Initialize them as such. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/usb/cx231xx/cx231xx-video.c b/drivers/media/usb/cx231xx/cx231xx-video.c index ecea76fe07f6..f3d1a488dfa7 100644 --- a/drivers/media/usb/cx231xx/cx231xx-video.c +++ b/driver

[PATCH 4/7] cx231xx: create media links for analog mode

2015-01-03 Thread Mauro Carvalho Chehab
Now that we have entities and pads, let's create media links between them, for analog setup. We may not have all the links for digital yet, as the dvb extention may not be loaded yet. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/usb/cx231xx/cx231xx-cards.c b/drivers/media/us

[PATCH 0/7] add link graph to cx231xx using the media controller

2015-01-03 Thread Mauro Carvalho Chehab
This patch series depends on the patch media controller patch series sent previously. The full set of patches are at: http://git.linuxtv.org/cgit.cgi/mchehab/experimental.git/log/?h=dvb-media-ctl It adds the logic needed to create the remaining media PADs and the links to represent the me

[PATCH 2/7] cx25840: fill the media controller entity

2015-01-03 Thread Mauro Carvalho Chehab
Instead of keeping the media controller entity not initialized, fill it and create the pads for cx25840. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/i2c/cx25840/cx25840-core.c b/drivers/media/i2c/cx25840/cx25840-core.c index 573e08826b9b..831c74b97798 100644 --- a/drivers/me

Re: [PATCH 2/7] cx25840: fill the media controller entity

2015-01-03 Thread Joe Perches
On Sat, 2015-01-03 at 18:09 -0200, Mauro Carvalho Chehab wrote: > Instead of keeping the media controller entity not initialized, > fill it and create the pads for cx25840. Won't you get an unused variable for ret without CONFIG_MEDIA_CONTROLLER? > diff --git a/drivers/media/i2c/cx25840/cx25840-c

Re: [PATCH 1/7] tuner-core: properly initialize media controller subdev

2015-01-03 Thread Sakari Ailus
Hi Mauro, Mauro Carvalho Chehab wrote: Properly initialize tuner core subdev at the media controller. That requires a new subtype at the media controller API. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/v4l2-core/tuner-core.c b/drivers/media/v4l2-core/tuner-core.c index

cron job: media_tree daily build: ERRORS

2015-01-03 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Sun Jan 4 04:00:09 CET 2015 git branch: test git hash: 99f3cd52aee21091ce62442285a68873e3be833f gcc versio