public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* MEDIA_IOC_G_TOPOLOGY and pad indices
@ 2018-02-04 13:06 Hans Verkuil
  2018-02-04 13:13 ` Laurent Pinchart
  2018-02-05 11:15 ` Mauro Carvalho Chehab
  0 siblings, 2 replies; 12+ messages in thread
From: Hans Verkuil @ 2018-02-04 13:06 UTC (permalink / raw)
  To: Linux Media Mailing List, Mauro Carvalho Chehab; +Cc: Laurent Pinchart

Hi Mauro,

I'm working on adding proper compliance tests for the MC but I think something
is missing in the G_TOPOLOGY ioctl w.r.t. pads.

In several v4l-subdev ioctls you need to pass the pad. There the pad is an index
for the corresponding entity. I.e. an entity has 3 pads, so the pad argument is
[0-2].

The G_TOPOLOGY ioctl returns a pad ID, which is > 0x01000000. I can't use that
in the v4l-subdev ioctls, so how do I translate that to a pad index in my application?

It seems to be a missing feature in the API. I assume this information is available
in the core, so then I would add a field to struct media_v2_pad with the pad index
for the entity.

Next time we add new public API features I want to see compliance tests before
accepting it. It's much too easy to overlook something, either in the design or
in a driver or in the documentation, so this is really, really needed IMHO.

Regards,

	Hans

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

end of thread, other threads:[~2018-02-05 14:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-04 13:06 MEDIA_IOC_G_TOPOLOGY and pad indices Hans Verkuil
2018-02-04 13:13 ` Laurent Pinchart
2018-02-04 13:16   ` Hans Verkuil
2018-02-04 13:20     ` Laurent Pinchart
2018-02-05 12:27       ` Mauro Carvalho Chehab
2018-02-05 11:15 ` Mauro Carvalho Chehab
2018-02-05 11:38   ` Hans Verkuil
2018-02-05 13:34     ` Mauro Carvalho Chehab
2018-02-05 11:55   ` Hans Verkuil
2018-02-05 13:17     ` Mauro Carvalho Chehab
2018-02-05 13:47       ` Hans Verkuil
2018-02-05 14:13         ` 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