Loading drivers/media/platform/msm/vidc/msm_vidc_common.c +11 −4 Original line number Diff line number Diff line Loading @@ -5683,7 +5683,7 @@ int msm_comm_qbuf_cache_operations(struct msm_vidc_inst *inst, handle = msm_smem_get_handle(inst->mem_client, dma_buf); offset = b->m.planes[i].data_offset; size = b->m.planes[i].length; size = b->m.planes[i].length - offset; cache_ops = SMEM_CACHE_INVALIDATE; skip = false; Loading Loading @@ -5752,7 +5752,7 @@ int msm_comm_dqbuf_cache_operations(struct msm_vidc_inst *inst, handle = msm_smem_get_handle(inst->mem_client, dma_buf); offset = b->m.planes[i].data_offset; size = b->m.planes[i].length; size = b->m.planes[i].length - offset; cache_ops = SMEM_CACHE_INVALIDATE; skip = false; Loading @@ -5772,8 +5772,15 @@ int msm_comm_dqbuf_cache_operations(struct msm_vidc_inst *inst, skip = true; } else if (b->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { if (!i) /* bitstream */ skip = true; if (!i) { /* bitstream */ /* * Include vp8e header bytes as well * by making offset equal to zero */ offset = 0; size = b->m.planes[i].bytesused + b->m.planes[i].data_offset; } } } Loading Loading
drivers/media/platform/msm/vidc/msm_vidc_common.c +11 −4 Original line number Diff line number Diff line Loading @@ -5683,7 +5683,7 @@ int msm_comm_qbuf_cache_operations(struct msm_vidc_inst *inst, handle = msm_smem_get_handle(inst->mem_client, dma_buf); offset = b->m.planes[i].data_offset; size = b->m.planes[i].length; size = b->m.planes[i].length - offset; cache_ops = SMEM_CACHE_INVALIDATE; skip = false; Loading Loading @@ -5752,7 +5752,7 @@ int msm_comm_dqbuf_cache_operations(struct msm_vidc_inst *inst, handle = msm_smem_get_handle(inst->mem_client, dma_buf); offset = b->m.planes[i].data_offset; size = b->m.planes[i].length; size = b->m.planes[i].length - offset; cache_ops = SMEM_CACHE_INVALIDATE; skip = false; Loading @@ -5772,8 +5772,15 @@ int msm_comm_dqbuf_cache_operations(struct msm_vidc_inst *inst, skip = true; } else if (b->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { if (!i) /* bitstream */ skip = true; if (!i) { /* bitstream */ /* * Include vp8e header bytes as well * by making offset equal to zero */ offset = 0; size = b->m.planes[i].bytesused + b->m.planes[i].data_offset; } } } Loading