Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19d6837a authored by Tiffany Lin's avatar Tiffany Lin Committed by Mauro Carvalho Chehab
Browse files

[media] vcodec:mediatek: Refine VP8 encoder driver



This patch remove field and function that unused anymore

Signed-off-by: default avatarTiffany Lin <tiffany.lin@mediatek.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 2d683b6d
Loading
Loading
Loading
Loading
+7 −9
Original line number Original line Diff line number Diff line
@@ -56,6 +56,8 @@ enum venc_vp8_vpu_work_buf {


/*
/*
 * struct venc_vp8_vpu_config - Structure for vp8 encoder configuration
 * struct venc_vp8_vpu_config - Structure for vp8 encoder configuration
 *                              AP-W/R : AP is writer/reader on this item
 *                              VPU-W/R: VPU is write/reader on this item
 * @input_fourcc: input fourcc
 * @input_fourcc: input fourcc
 * @bitrate: target bitrate (in bps)
 * @bitrate: target bitrate (in bps)
 * @pic_w: picture width. Picture size is visible stream resolution, in pixels,
 * @pic_w: picture width. Picture size is visible stream resolution, in pixels,
@@ -84,13 +86,13 @@ struct venc_vp8_vpu_config {


/*
/*
 * struct venc_vp8_vpu_buf - Structure for buffer information
 * struct venc_vp8_vpu_buf - Structure for buffer information
 * @align: buffer alignment (in bytes)
 *                           AP-W/R : AP is writer/reader on this item
 *                           VPU-W/R: VPU is write/reader on this item
 * @iova: IO virtual address
 * @iova: IO virtual address
 * @vpua: VPU side memory addr which is used by RC_CODE
 * @vpua: VPU side memory addr which is used by RC_CODE
 * @size: buffer size (in bytes)
 * @size: buffer size (in bytes)
 */
 */
struct venc_vp8_vpu_buf {
struct venc_vp8_vpu_buf {
	u32 align;
	u32 iova;
	u32 iova;
	u32 vpua;
	u32 vpua;
	u32 size;
	u32 size;
@@ -98,6 +100,8 @@ struct venc_vp8_vpu_buf {


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


static inline void vp8_enc_write_reg(struct venc_vp8_inst *inst, u32 addr,
				     u32 val)
{
	writel(val, inst->hw_base + addr);
}

static inline u32 vp8_enc_read_reg(struct venc_vp8_inst *inst, u32 addr)
static inline u32 vp8_enc_read_reg(struct venc_vp8_inst *inst, u32 addr)
{
{
	return readl(inst->hw_base + addr);
	return readl(inst->hw_base + addr);