for (i = 0; i < raw->num_planes; i++) {
pInStr->FrameSize[i] = raw->plane_size[i];
pInStr->FrameAddr[i] = dst_mb->addr[0][i];
+ if (ctx->is_10bit)
+ pInStr->Frame2BitSize[i] = raw->plane_size_2bits[i];
}
mfc_debug(2, "NAL Q: dst addr[0]: 0x%08llx\n",
dst_mb->addr[0][0]);
for (i = 0; i < raw->num_planes; i++) {
MFC_WRITEL(raw->plane_size[i],
- S5P_FIMV_D_FIRST_PLANE_DPB_SIZE + i*4);
+ S5P_FIMV_D_FIRST_PLANE_DPB_SIZE + i * 4);
MFC_WRITEL(dst_mb->addr[0][i],
- S5P_FIMV_D_FIRST_PLANE_DPB0 + (i*0x100 + dst_index*4));
+ S5P_FIMV_D_FIRST_PLANE_DPB0 + (i * 0x100 + dst_index * 4));
+ if (ctx->is_10bit)
+ MFC_WRITEL(raw->plane_size_2bits[i],
+ S5P_FIMV_D_FIRST_PLANE_2BIT_DPB_SIZE + (i * 4));
}
MFC_TRACE_CTX("Set dst[%d] fd: %d, %#llx / avail %#lx used %#x\n",