linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFCv2 PATCH 00/14] davinci: clean up input/output/subdev config
@ 2012-09-20 12:06 Hans Verkuil
  2012-09-20 12:06 ` [RFCv2 PATCH 01/14] vpif_capture: remove unused data structure Hans Verkuil
  2012-09-22 15:58 ` [RFCv2 PATCH 00/14] davinci: clean up input/output/subdev config Prabhakar Lad
  0 siblings, 2 replies; 19+ messages in thread
From: Hans Verkuil @ 2012-09-20 12:06 UTC (permalink / raw)
  To: linux-media; +Cc: Prabhakar Lad, DLOS

Hi Prabhakar,

This is the second patch series for a vpif driver cleanup.

The first version can be found here:

http://www.mail-archive.com/linux-media@vger.kernel.org/msg52136.html

Changes since RFCv1:

- rebased to a newer git repo:
  http://git.linuxtv.org/mhadli/v4l-dvb-davinci_devices.git/shortlog/refs/heads/da850_vpif_machine

- fixed probe() cleanup code in both display and capture that was seriously
  broken.

- fixed a broken s_routing implementation in the tvp514x driver: if there
  is no incoming video signal, then s_routing would return EINVAL and
  leave the driver with an inconsistent internal state. This has always
  been a problem, but with this patch series it suddenly became really
  noticable. s_routing shouldn't try to wait for a valid signal, that's
  not what s_routing should do.

This patch series does some driver cleanup and reorganizes the config
structs that are used to set up subdevices.

The current driver associates an input or output with a subdev, but multiple
inputs may use the same subdev and some inputs may not use a subdev at all
(this is the case for our hardware).

Several other things were also configured in the wrong structure. For
example the vpif_interface struct is really part of the channel config
and has nothing to do with the subdev.

What is missing here is that the output doesn't have the same flexibility
as the input when it comes to configuration. It would be good if someone
can pick this up as a follow-up since it's unlikely I'll be working on
that.

What would also be nice is that by leaving the inputs or outputs for the
second channel empty (NULL) in the configuration you can disable the second
video node, e.g. trying to use it will always result in ENODEV or something.

This patch series will at least make things more flexible.

Regards,

        Hans


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

end of thread, other threads:[~2012-10-03  8:55 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-20 12:06 [RFCv2 PATCH 00/14] davinci: clean up input/output/subdev config Hans Verkuil
2012-09-20 12:06 ` [RFCv2 PATCH 01/14] vpif_capture: remove unused data structure Hans Verkuil
2012-09-20 12:06   ` [RFCv2 PATCH 02/14] vpif_display: remove unused data structures Hans Verkuil
2012-09-20 12:06   ` [RFCv2 PATCH 03/14] vpif_capture: move input_idx to channel_obj Hans Verkuil
2012-09-20 12:06   ` [RFCv2 PATCH 04/14] vpif_display: move output_id " Hans Verkuil
2012-09-20 12:06   ` [RFCv2 PATCH 05/14] vpif_capture: remove unnecessary can_route flag Hans Verkuil
2012-10-03  8:43     ` Sekhar Nori
2012-09-20 12:06   ` [RFCv2 PATCH 06/14] vpif_capture: move routing info from subdev to input Hans Verkuil
2012-10-03  8:46     ` Sekhar Nori
2012-09-20 12:06   ` [RFCv2 PATCH 07/14] vpif_capture: first init subdevs, then register device nodes Hans Verkuil
2012-09-20 12:06   ` [RFCv2 PATCH 08/14] vpif_display: " Hans Verkuil
2012-09-20 12:06   ` [RFCv2 PATCH 09/14] vpif_display: fix cleanup code Hans Verkuil
2012-09-20 12:06   ` [RFCv2 PATCH 10/14] vpif_capture: " Hans Verkuil
2012-09-20 12:06   ` [RFCv2 PATCH 11/14] vpif_capture: separate subdev from input Hans Verkuil
2012-09-20 12:06   ` [RFCv2 PATCH 12/14] vpif_display: use a v4l2_subdev pointer to call a subdev Hans Verkuil
2012-09-20 12:06   ` [RFCv2 PATCH 13/14] davinci: move struct vpif_interface to chan_cfg Hans Verkuil
2012-10-03  8:55     ` Sekhar Nori
2012-09-20 12:06   ` [RFCv2 PATCH 14/14] tvp514x: s_routing should just change routing, not try to detect a signal Hans Verkuil
2012-09-22 15:58 ` [RFCv2 PATCH 00/14] davinci: clean up input/output/subdev config Prabhakar Lad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).