public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/4] Better handle pads for tuning/decoder part of the devices
@ 2018-07-31 17:02 Mauro Carvalho Chehab
  2018-07-31 17:02 ` [PATCH RFC 1/4] media: v4l2: remove VBI output pad Mauro Carvalho Chehab
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2018-07-31 17:02 UTC (permalink / raw)
  To: Linux Media Mailing List
  Cc: Mauro Carvalho Chehab, Mauro Carvalho Chehab, Kees Cook,
	Brian Warner, Hans Verkuil, Antti Palosaari, Sakari Ailus,
	Laurent Pinchart, Shuah Khan, Michael Krufky, Pravin Shedge

At PC consumer devices, it is very common that the bridge same driver 
to be attached to different types of tuners and demods. We need a way
for the Kernel to properly identify what kind of signal is provided by each
PAD, in order to properly setup the pipelines.

The previous approach were to hardcode a fixed number of PADs for all
elements of the same type. This is not good, as different devices may 
actually have a different number of pads.

It was acceptable in the past, as there were a promisse of adding "soon"
a properties API that would allow to identify the type for each PADs, but
this was never merged (or even a patchset got submitted).

So, replace this approach by another one: add a "taint" mark to pads that
contain different types of signals.

I tried to minimize the number of signals, in order to make it simpler to
convert from the past way. However, I'm not inspired today to give
names to the signals each pad contain. So, feel free to give better
suggestions if this one doesn't fit too well.

For now, this is just a RFC, compile-tested only, as the main goal here is to
discuss about an approach. Once I get enough feedback, I'll do some
tests.


Mauro Carvalho Chehab (4):
  media: v4l2: remove VBI output pad
  media: v4l2: taint pads with the signal types for consumer devices
  v4l2-mc: switch it to use the new approach to setup pipelines
  media: dvb: use signals to discover pads

 drivers/media/dvb-core/dvbdev.c              | 37 ++++++++-
 drivers/media/dvb-frontends/au8522_decoder.c |  4 +-
 drivers/media/i2c/msp3400-driver.c           |  2 +
 drivers/media/i2c/saa7115.c                  |  3 +-
 drivers/media/i2c/tvp5150.c                  |  3 +-
 drivers/media/pci/saa7134/saa7134-core.c     |  3 +-
 drivers/media/tuners/si2157.c                |  3 +
 drivers/media/usb/dvb-usb-v2/mxl111sf.c      |  2 +
 drivers/media/v4l2-core/tuner-core.c         |  5 ++
 drivers/media/v4l2-core/v4l2-mc.c            | 87 ++++++++++++++++----
 include/media/media-entity.h                 | 33 ++++++++
 include/media/v4l2-mc.h                      |  2 -
 12 files changed, 158 insertions(+), 26 deletions(-)

-- 
2.17.1

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

end of thread, other threads:[~2018-07-31 18:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-31 17:02 [PATCH RFC 0/4] Better handle pads for tuning/decoder part of the devices Mauro Carvalho Chehab
2018-07-31 17:02 ` [PATCH RFC 1/4] media: v4l2: remove VBI output pad Mauro Carvalho Chehab
2018-07-31 17:02 ` [PATCH RFC 2/4] media: v4l2: taint pads with the signal types for consumer devices Mauro Carvalho Chehab
2018-07-31 17:02 ` [PATCH RFC 3/4] v4l2-mc: switch it to use the new approach to setup pipelines Mauro Carvalho Chehab
2018-07-31 17:02 ` [PATCH RFC 4/4] media: dvb: use signals to discover pads 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