mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 23:36:23 +09:00
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)
This commit is contained in:
parent
c6db5ca1ee
commit
7d04b6ad27
|
@ -508,6 +508,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);
|
||||
|
|
|
@ -156,7 +156,7 @@ int vpu_sc_check_fuse(struct vpu_dev *dev,
|
|||
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
Block a user