Em Tue, 11 Jul 2017 20:12:35 +0200 Ralph Metzler <r...@metzlerbros.de> escreveu:
> Mauro Carvalho Chehab writes: > > Em Mon, 26 Jun 2017 11:45:08 +0200 > > Ralph Metzler <r...@metzlerbros.de> escreveu: > > > > The media controller is generic enough to control all pipelines at > > the hardware level. It can be used to select frontend inputs, to > > dynamically add/remove CAM modules, etc. > > > > If I remember well, in the case of the hardware I was working on that > > time, each frontend had 3 inputs (and the hardware had 2 identical > > sets of tuner/demod), plus 3 MPEG-TS demuxes) and 2 CAM modules. > > > > With the media controller, any arrangement between input, tuner, > > demod, demux and CAM is possible, as long as supported by > > the hardware. > > OK, for such complex arrangements it makes sense. > I just thought it to be overkill for just the input selection The media controller support is handled by the DVB core for the general case. The needed bits that would give the flexibility that ddbridge require shouldn't be hard to add. > and it also has to run on older kernels where th MC stuff is > not yet in the DVB core. The MC DVB support is there since jan/2015 (Kernel 3.20): commit a0246e02f466482a34c8ad94bedbe4efa498662d Author: Mauro Carvalho Chehab <mche...@osg.samsung.com> Date: Fri Jan 2 12:19:51 2015 -0300 [media] dvbdev: add support for media controller 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 <mche...@osg.samsung.com> $ git describe a0246e02f4664 media/v3.20-1-9-ga0246e02f466 For older Kernels, there are a few ways to proceed: 1) use an approach like media_build for the DD tree, where the DVB core is replaced by a newer one. I guess it has support since v2.6.30, at least for the core. 2) Keep use the solution you have already, using ifdefs on your tree to keep it supported with legacy Kernels. 3) you could base DD trees at the backport tree: https://backports.wiki.kernel.org/index.php/Main_Page I never used it myself, but it should be covering the media drivers there too. Thanks, Mauro