video: driver: skip lazy unmap for dec output buffers
- add support to skip lazy unmapping for decoder output buffers only. Map twice for these buffers. - v4l2 client owned RO SMMU mapped buffers are maintained separately in read_only list. - For FBD with RO flag from fw, add buffer to read_only list. Else remove from this list. - During FTB, if buffer present in read_only list, add RO flag to hfi buffer and queue to fw. - During streamoff output, unmap all buffers except those present in read_only list. - During close, unmap completely and clean up read_only list, output list. Change-Id: Iacee7d298dfbff0b9cb6f17dff27ad98574b489b Signed-off-by: Darshana Patil <darshana@codeaurora.org>
This commit is contained in:
@@ -17,6 +17,8 @@ int msm_vidc_memory_map(struct msm_vidc_core *core,
|
||||
struct msm_vidc_map *map);
|
||||
int msm_vidc_memory_unmap(struct msm_vidc_core *core,
|
||||
struct msm_vidc_map *map);
|
||||
int msm_vidc_memory_unmap_completely(struct msm_vidc_core *core,
|
||||
struct msm_vidc_map *map);
|
||||
struct dma_buf *msm_vidc_memory_get_dmabuf(int fd);
|
||||
void msm_vidc_memory_put_dmabuf(void *dmabuf);
|
||||
|
||||
|
Reference in New Issue
Block a user