]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: vim2m: Add parametized support for multiplanar API
authorMatthew Majewski <mattwmajewski@gmail.com>
Tue, 4 Mar 2025 19:17:01 +0000 (14:17 -0500)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 25 Apr 2025 13:14:26 +0000 (15:14 +0200)
commitc09acbbfff2037fe594396388e0c28eeeca79012
treedc58ab2368bbc6e7bf68b6dff2dae62c86b636af
parentbbd0df9bfe1c085bf9b0a315dd5fb58e491dfa5b
media: vim2m: Add parametized support for multiplanar API

Add support for the mulitiplaner API. The device can now act as
either a multi-planar or a single-planar device depending on a module
parameter, similar to the way vivid behaves.

Multiplanar support was added by implementing the appropate
try/get/set mplane functions, and by modifying the queue_setup() and
buf_prepare() functions to handle multiple planes. Implementation
was inspired by vivid.

Signed-off-by: Matthew Majewski <mattwmajewski@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/test-drivers/vim2m.c