video: rockchip: mpp: Add more common procfs

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I094de11f336a8f1b1b8e125f35ffae7431bf5eea
This commit is contained in:
Herman Chen
2022-08-23 18:22:26 +08:00
committed by Tao Huang
parent 63a566e834
commit 1f0130be9b
7 changed files with 28 additions and 0 deletions

View File

@@ -374,6 +374,10 @@ static int jpgdec_procfs_init(struct mpp_dev *mpp)
dec->procfs = NULL;
return -EIO;
}
/* for common mpp_dev options */
mpp_procfs_create_common(dec->procfs, mpp);
mpp_procfs_create_u32("aclk", 0644,
dec->procfs, &dec->aclk_info.debug_rate_hz);
mpp_procfs_create_u32("session_buffers", 0644,

View File

@@ -1175,6 +1175,10 @@ static int rkvdec_procfs_init(struct mpp_dev *mpp)
dec->procfs = NULL;
return -EIO;
}
/* for common mpp_dev options */
mpp_procfs_create_common(dec->procfs, mpp);
mpp_procfs_create_u32("aclk", 0644,
dec->procfs, &dec->aclk_info.debug_rate_hz);
mpp_procfs_create_u32("clk_core", 0644,

View File

@@ -798,6 +798,10 @@ static int rkvenc_procfs_init(struct mpp_dev *mpp)
enc->procfs = NULL;
return -EIO;
}
/* for common mpp_dev options */
mpp_procfs_create_common(enc->procfs, mpp);
/* for debug */
mpp_procfs_create_u32("aclk", 0644,
enc->procfs, &enc->aclk_info.debug_rate_hz);

View File

@@ -506,6 +506,10 @@ static int vdpu_procfs_init(struct mpp_dev *mpp)
dec->procfs = NULL;
return -EIO;
}
/* for common mpp_dev options */
mpp_procfs_create_common(dec->procfs, mpp);
mpp_procfs_create_u32("aclk", 0644,
dec->procfs, &dec->aclk_info.debug_rate_hz);
mpp_procfs_create_u32("session_buffers", 0644,

View File

@@ -459,6 +459,10 @@ static int vdpu_procfs_init(struct mpp_dev *mpp)
dec->procfs = NULL;
return -EIO;
}
/* for common mpp_dev options */
mpp_procfs_create_common(dec->procfs, mpp);
mpp_procfs_create_u32("aclk", 0644,
dec->procfs, &dec->aclk_info.debug_rate_hz);
mpp_procfs_create_u32("session_buffers", 0644,

View File

@@ -555,6 +555,10 @@ static int vepu_procfs_init(struct mpp_dev *mpp)
enc->procfs = NULL;
return -EIO;
}
/* for common mpp_dev options */
mpp_procfs_create_common(enc->procfs, mpp);
mpp_procfs_create_u32("aclk", 0644,
enc->procfs, &enc->aclk_info.debug_rate_hz);
mpp_procfs_create_u32("session_buffers", 0644,

View File

@@ -677,6 +677,10 @@ static int vepu_procfs_init(struct mpp_dev *mpp)
enc->procfs = NULL;
return -EIO;
}
/* for common mpp_dev options */
mpp_procfs_create_common(enc->procfs, mpp);
mpp_procfs_create_u32("aclk", 0644,
enc->procfs, &enc->aclk_info.debug_rate_hz);
mpp_procfs_create_u32("session_buffers", 0644,