[Mjpeg-users] [PATCH v2 09/10] staging: media: zoran: move config select on primary kconfig

2021-10-13 Thread Corentin Labbe
Since all kconfigs for card selection are bool, this causes all selected modules to be always built-in. Prevent this by moving selects to the main tristate kconfig. By doing this, remove also all "if MEDIA_SUBDRV_AUTOSELECT" which are wrong, since zoran always need them to work. Signed-off-by: Co

[Mjpeg-users] [PATCH v2 03/10] staging: media: zoran: rename debug module parameter

2021-10-13 Thread Corentin Labbe
All zoran module will be merged, so to prevent conflict, the debug module parameter need to be renamed Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/videocodec.c | 8 drivers/staging/media/zoran/zr36016.c| 12 ++-- drivers/staging/media/zoran/zr36050.c|

[Mjpeg-users] [PATCH v2 06/10] staging: media: zoran: fusion all modules

2021-10-13 Thread Corentin Labbe
The zoran driver is split in many modules, but this lead to some problems. One of them is that load order is incorrect when everything is built-in. Having more than one module is useless, so fusion all zoran modules in one. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/Kconfig

[Mjpeg-users] [PATCH v2 07/10] staging: media: zoran: remove vidmem

2021-10-13 Thread Corentin Labbe
The vidmem parameter is no longer necessary since we removed framebuffer support. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran

[Mjpeg-users] [PATCH v2 05/10] staging: media: zoran: videocode: remove procfs

2021-10-13 Thread Corentin Labbe
Now we have a debugfs, we can remove all PROCFS stuff. We keep videocodec_debugfs_show(), it will be used later Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/videocodec.c | 24 ++-- drivers/staging/media/zoran/videocodec.h | 5 + 2 files changed, 7 insert

[Mjpeg-users] [PATCH v2 00/10] staging: media: zoran: fusion in one module

2021-10-13 Thread Corentin Labbe
Hello The main change of this serie is to fusion all zoran related modules in one. This fixes the load order problem when everything is built-in. Regards Changes since v1: - add missing debugfs cleaning - clean some remaining module_get/put functions which made impossible to remove the zoran m

[Mjpeg-users] [PATCH v2 02/10] staging: media: zoran: use module_pci_driver

2021-10-13 Thread Corentin Labbe
Simplify code by using module_pci_driver() Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_card.c b/drivers/staging/media/zoran/zoran_card.c ind

[Mjpeg-users] [PATCH v2 10/10] staging: media: zoran: introduce zoran_i2c_init

2021-10-13 Thread Corentin Labbe
Reduces the size of the probe function by adding zoran_i2c_init/zoran_i2c_exit functions. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 67 ++-- 1 file changed, 51 insertions(+), 16 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_ca

[Mjpeg-users] [PATCH v2 04/10] staging: media: zoran: add debugfs

2021-10-13 Thread Corentin Labbe
Add debugfs for displaying zoran debug and stats information. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/Kconfig | 9 ++ drivers/staging/media/zoran/zoran.h | 4 +++ drivers/staging/media/zoran/zoran_card.c | 41 3 files changed, 54 ins

[Mjpeg-users] [PATCH v2 01/10] staging: media: zoran: move module parameter checks to zoran_probe

2021-10-13 Thread Corentin Labbe
We need to empty zoran_init() for removing it later. Furthermore, this permit to use pci_xxx instead of pr_xxx for prettier printing. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_card.c | 64 1 file changed, 33 insertions(+), 31 deletions(-) diff

[Mjpeg-users] [PATCH v2 08/10] staging: media: zoran: move videodev alloc

2021-10-13 Thread Corentin Labbe
Move some code out of zr36057_init() and create new functions for handling zr->video_dev. This permit to ease code reading and fix a zr->video_dev memory leak. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran.h| 2 +- drivers/staging/media/zoran/zoran_card.c | 80 +