diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-11-18 13:51:08 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-11-25 12:09:19 +0100 |
commit | 251a79f8f5adfd816de4e052b5e3619a5a1d0910 (patch) | |
tree | a0fbe2c43a495a274de4c083c42a7cc8dc99055b /drivers/media/Makefile | |
parent | [media] vim2m: support expbuf (diff) | |
download | linux-251a79f8f5adfd816de4e052b5e3619a5a1d0910.tar.xz linux-251a79f8f5adfd816de4e052b5e3619a5a1d0910.zip |
[media] vb2: use dma_map_sg_attrs to prevent unnecessary sync
By default dma_map_sg syncs the mapped buffer to the device. But
buf_prepare expects a buffer syncs for the cpu and the buffer
will be synced to the device in the prepare memop.
The reverse is true for dma_unmap_sg, buf_finish and the finish
memop.
To prevent unnecessary syncs we ask dma_(un)map_sg to skip the
sync.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Pawel Osciak <pawel@osciak.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/Makefile')
0 files changed, 0 insertions, 0 deletions