MLK-23263 mxc: vpu_malone: correct vpu decoder used bits of fuse
Malone decoder used bits of fuse are 14-15 bits Signed-off-by: Shijie Qin <shijie.qin@nxp.com> Reviewed-by: ming_qian <ming.qian@nxp.com> (cherry picked from commit 8d34c1d1ce31048316da88448f8eecbed885fc44)5.4-rM2-2.2.x-imx-squashed
parent
ab78041aca
commit
f4fa087e78
|
@ -510,6 +510,8 @@ struct vpu_ctx {
|
|||
#define V4L2_NXP_FRAME_VERTICAL_ALIGN 512
|
||||
#define V4L2_NXP_FRAME_HORIZONTAL_ALIGN 512
|
||||
|
||||
#define VPU_IMX_DECODER_FUSE_OFFSET 14
|
||||
|
||||
pSTREAM_BUFFER_DESCRIPTOR_TYPE get_str_buffer_desc(struct vpu_ctx *ctx);
|
||||
u_int32 got_free_space(u_int32 wptr, u_int32 rptr, u_int32 start, u_int32 end);
|
||||
int copy_buffer_to_stream(struct vpu_ctx *ctx, void *buffer, uint32_t length);
|
||||
|
|
|
@ -222,7 +222,7 @@ int vpu_sc_check_fuse(struct vpu_dev *dev, struct vpu_v4l2_fmt *pformat_table,
|
|||
return ret;
|
||||
}
|
||||
|
||||
val = (fuse >> 2) & 0x3UL;
|
||||
val = (fuse >> VPU_IMX_DECODER_FUSE_OFFSET) & 0x3UL;
|
||||
if (val == 0x1UL) {
|
||||
for (i = 0; i < table_size; i++)
|
||||
if (pformat_table[i].fourcc == VPU_PIX_FMT_HEVC)
|
||||
|
|
Loading…
Reference in New Issue