]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: ov08x40: Select mode based on mipi lane count
authorJason Chen <jason.z.chen@intel.com>
Wed, 23 Apr 2025 17:56:36 +0000 (01:56 +0800)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 6 May 2025 11:06:30 +0000 (13:06 +0200)
commita21e0a8941eaeb253fd64c516c4ea39bdf4db1c6
treeef48cd78c949e67411f2bd03c452c6d6d9e9da9e
parent55eac5a4becc374c3b47376a852a20d77f4eb2d2
media: ov08x40: Select mode based on mipi lane count

Use the v4l2_find_nearest_size_conditional() helper to figure out which
drive-supported lane can be used on a given system.
Also avoid exposing duplicate frame sizes to userspace when multiple
modes share the same resolution but differ in lane count.

Signed-off-by: Jason Chen <jason.z.chen@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/ov08x40.c