linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2] upon streaming, check that the pipeline starts with a source entity
@ 2019-10-24 14:15 Dafna Hirschfeld
  2019-10-24 14:15 ` [PATCH v5 1/2] media: vimc: move the dev field of each entity to vimc_ent_dev Dafna Hirschfeld
  2019-10-24 14:15 ` [PATCH v5 2/2] media: vimc: upon streaming, check that the pipeline starts with a source entity Dafna Hirschfeld
  0 siblings, 2 replies; 5+ messages in thread
From: Dafna Hirschfeld @ 2019-10-24 14:15 UTC (permalink / raw)
  To: linux-media
  Cc: dafna.hirschfeld, helen.koike, skhan, hverkuil, kernel, dafna3

The first patch in this patchset moves the dev field of each
entity struct to the common struct vimc_ent_device.

The second patch fixes a crashing bug when the pipeline does not start with a
source entity.

Fixes from v4:

- NO changes in the first patch since v4

- The function vimc_streamer_pipeline_init now gets the media_entity
as parameter and I changed the while loop to "while(ent)" since this the
valid behaviour: loop until the source of the pipeline.
All other cases should return from the while loop with "goto err".
Also, after calling v4l2_subdev_call, if  'ret' is ENOIOCTCMD then
it is set to 0 to make sure that ret is 0 when no error occurred.

Dafna Hirschfeld (2):
  media: vimc: move the dev field of each entity to vimc_ent_dev
  media: vimc: upon streaming, check that the pipeline starts with a
    source entity

 drivers/media/platform/vimc/vimc-capture.c  |  7 +-
 drivers/media/platform/vimc/vimc-common.c   | 10 +++
 drivers/media/platform/vimc/vimc-common.h   |  7 ++
 drivers/media/platform/vimc/vimc-debayer.c  | 15 ++---
 drivers/media/platform/vimc/vimc-scaler.c   | 11 ++--
 drivers/media/platform/vimc/vimc-sensor.c   |  5 +-
 drivers/media/platform/vimc/vimc-streamer.c | 73 +++++++++++++--------
 7 files changed, 78 insertions(+), 50 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2019-11-10 10:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-24 14:15 [PATCH v5 0/2] upon streaming, check that the pipeline starts with a source entity Dafna Hirschfeld
2019-10-24 14:15 ` [PATCH v5 1/2] media: vimc: move the dev field of each entity to vimc_ent_dev Dafna Hirschfeld
2019-11-10 10:58   ` Hans Verkuil
2019-10-24 14:15 ` [PATCH v5 2/2] media: vimc: upon streaming, check that the pipeline starts with a source entity Dafna Hirschfeld
2019-10-27 14:13   ` kbuild test robot

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).