The vim2m was laking care for a long time. It had several issues. Several were already fixed and are merged for Kernel 5.1, but there are still some pending things. This patch series complement the work, making it do the right thing with regards to different resolutions at capture and output buffers. Although it contains some improvements (like the addition of Bayer), I'm tempted to do a late merge for it, in order for the entire set of changes to go to Kernel 5.1, specially since: a) It contains a fix at the buffer filling routine. At least this one should go to 5.1 anyway; b) while the other patches could eventually go to 5.2, they also do significant changes at the buffer handling logic; c) It disables YUYV as output format (due to the horizontal scaler). It would be good that such change would go together with the changes for 5.1 with actually implements YUYV support; d) This is a test driver anyway and shouldn't affect systems in production. e) As we're using it also to properly implement/fix Bayer support for M2M transform drivers at Gstreamer, it would be better to have everything altogether. So, if nobody complains, I'll likely merge this series later today or along the weekend for Kernel 5.1. Mauro Carvalho Chehab (10): media: vim2m: add bayer capture formats media: vim2m: improve debug messages media: vim2m: ensure that width is multiple of two media: vim2m: add support for VIDIOC_ENUM_FRAMESIZES media: vim2m: use different framesizes for bayer formats media: vim2m: better handle cap/out buffers with different sizes media: vim2m: add vertical linear scaler media: vim2m: don't accept YUYV anymore as output format media: vim2m: add an horizontal scaler media: vim2m: speedup passthrough copy drivers/media/platform/vim2m.c | 415 +++++++++++++++++++++++---------- 1 file changed, 287 insertions(+), 128 deletions(-) -- 2.20.1