Re: [PATCH] media: i2c: imx219: Implement .get_frame_desc()

Sakari Ailus <[email protected]>
Newsgroups org.kernel.vger.linux-media,org.kernel.vger.linux-kernel
Organization Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo
Message-ID <[email protected]>
Hi Yamike, Mattijs,

On Thu, Aug 13, 2026 at 09:12:03PM +0530, Yemike Abhilash Chandra wrote:
> Hi Mattijs,
> Thanks for the patch.
> 
> On 13/08/26 20:41, Mattijs Korpershoek wrote:
> > From: Vaishnav Achath <[email protected]>
> > 
> > The next subdev in the media graph may want to enquire information such
> > as bus format, virtual channel, bus data type to route the stream from
> > this sensor correctly.
> > 
> > Add support for sharing this information using the .get_frame_desc()
> > callback.
> > 
> > Signed-off-by: Vaishnav Achath <[email protected]>
> > Signed-off-by: Jai Luthra <[email protected]>
> > Signed-off-by: Yemike Abhilash Chandra <[email protected]>
> > Signed-off-by: Mattijs Korpershoek <[email protected]>
> > ---
> 
> FYI, similar variant of this is already posted by Tomi recently [1].
> 
> On that patch, quoting Sakari [2]:
> 
> "I've been recently working on
> <URL:https://lore.kernel.org/linux-media/[email protected]/>.
> In other words, drivers that have a single stream don't need this. We could
> probably extend that further by making use of the routing information but I
> think that should be left for later."
> 
> I don't really know the status of that series. I will let Sakari to comment.

Good question. I think it'd be nice to have it merged. Laurent's opinion
was the frame descriptors should be part of sub-device state. I don't
really disagree, but moving them there is again an overhaul of that
patchset. If the set isn't merged in the near future, we'll see a large
number of driver specific implementations of both different frame
descriptor functions in sensor drivers as well as receiver drivers
preparing for sensor drivers not supporting get_frame_desc().

The current implementation has issues especially in cases where frame
descriptor has dependencies to upstream frame descriptors. There aren't
many drivers that do that though, but in these cases it has potential for
re-requesting the same frame descriptors rather many times. I wonder if
that's something that could be addressed later though.

-- 
Kind regards,

Sakari Ailus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.