Re: [PATCH v4 3/5] media: hi846: fix modes handling for different lane cases

From: Sakari Ailus

Date: Wed May 13 2026 - 11:06:34 EST


Hi Pengyu,

On Mon, May 11, 2026 at 06:39:25PM +0800, Pengyu Luo wrote:
> When using 4-lane, v4l2_find_nearest_size may return an unsupported
> mode, 640x480 mode, and it is set to the default mode.

Could you use v4l2_find_nearest_size_conditional()?

Ideally we should get rid of the cur_mode field altogether.

--
Regards,

Sakari Ailus