media: rockchip: fec: add module parameter user_debug

Signed-off-by: Xu Hongfei <xuhf@rock-chips.com>
Change-Id: I1bd315aff2ee527241a29afff557e23531cbc440
This commit is contained in:
Xu Hongfei
2025-04-17 19:59:36 +08:00
committed by Tao Huang
parent 6609d45ac5
commit 4719bd6e80
2 changed files with 8 additions and 0 deletions

View File

@@ -21,6 +21,10 @@ static int rkfec_cache_linesize = 2;
module_param_named(cache_linesize, rkfec_cache_linesize, int, 0644);
MODULE_PARM_DESC(cache_linesize, "Cache linesize (0-3)");
static int rkfec_user_debug;
module_param_named(user_debug, rkfec_user_debug, int, 0644);
MODULE_PARM_DESC(user_debug, "Debug level (0-6)");
#if IS_LINUX_VERSION_AT_LEAST_6_1
#define GET_SG_TABLE(mem_ops, off_buf) mem_ops->cookie(&(off_buf)->vb, (off_buf)->mem)
#else

View File

@@ -18,6 +18,10 @@
#include "stream.h"
#include "common.h"
static int rkfec_user_debug;
module_param_named(user_debug, rkfec_user_debug, int, 0644);
MODULE_PARM_DESC(user_debug, "Debug level (0-6)");
struct rkispp_fec_buf {
struct list_head list;
struct file *file;