Skip to content

Commit 19d6837

Browse files
Tiffany Linmchehab
authored andcommitted
[media] vcodec:mediatek: Refine VP8 encoder driver
This patch remove field and function that unused anymore Signed-off-by: Tiffany Lin <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 2d683b6 commit 19d6837

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ enum venc_vp8_vpu_work_buf {
5656

5757
/*
5858
* struct venc_vp8_vpu_config - Structure for vp8 encoder configuration
59+
* AP-W/R : AP is writer/reader on this item
60+
* VPU-W/R: VPU is write/reader on this item
5961
* @input_fourcc: input fourcc
6062
* @bitrate: target bitrate (in bps)
6163
* @pic_w: picture width. Picture size is visible stream resolution, in pixels,
@@ -83,21 +85,23 @@ struct venc_vp8_vpu_config {
8385
};
8486

8587
/*
86-
* struct venc_vp8_vpu_buf -Structure for buffer information
87-
* @align: buffer alignment (in bytes)
88+
* struct venc_vp8_vpu_buf - Structure for buffer information
89+
* AP-W/R : AP is writer/reader on this item
90+
* VPU-W/R: VPU is write/reader on this item
8891
* @iova: IO virtual address
8992
* @vpua: VPU side memory addr which is used by RC_CODE
9093
* @size: buffer size (in bytes)
9194
*/
9295
struct venc_vp8_vpu_buf {
93-
u32 align;
9496
u32 iova;
9597
u32 vpua;
9698
u32 size;
9799
};
98100

99101
/*
100102
* struct venc_vp8_vsi - Structure for VPU driver control and info share
103+
* AP-W/R : AP is writer/reader on this item
104+
* VPU-W/R: VPU is write/reader on this item
101105
* This structure is allocated in VPU side and shared to AP side.
102106
* @config: vp8 encoder configuration
103107
* @work_bufs: working buffer information in VPU side
@@ -138,12 +142,6 @@ struct venc_vp8_inst {
138142
struct mtk_vcodec_ctx *ctx;
139143
};
140144

141-
static inline void vp8_enc_write_reg(struct venc_vp8_inst *inst, u32 addr,
142-
u32 val)
143-
{
144-
writel(val, inst->hw_base + addr);
145-
}
146-
147145
static inline u32 vp8_enc_read_reg(struct venc_vp8_inst *inst, u32 addr)
148146
{
149147
return readl(inst->hw_base + addr);

0 commit comments

Comments
 (0)