media: staging/imx: Pass device to alloc/free_dma_buf
Allocate and free a DMA coherent buffer in imx_media_alloc/free_dma_buf() from the given device. This allows DMA alloc and free using a device that is backed by real hardware, which for the imx5/6/7 CSI is the CSI unit, and for the internal IPU sub-devices, is the parent IPU. Signed-off-by:Steve Longerbeam <slongerbeam@gmail.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by:
Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Showing
- drivers/staging/media/imx/imx-ic-prpencvf.c 9 additions, 9 deletionsdrivers/staging/media/imx/imx-ic-prpencvf.c
- drivers/staging/media/imx/imx-media-csi.c 3 additions, 3 deletionsdrivers/staging/media/imx/imx-media-csi.c
- drivers/staging/media/imx/imx-media-utils.c 6 additions, 7 deletionsdrivers/staging/media/imx/imx-media-utils.c
- drivers/staging/media/imx/imx-media.h 2 additions, 2 deletionsdrivers/staging/media/imx/imx-media.h
- drivers/staging/media/imx/imx7-media-csi.c 2 additions, 2 deletionsdrivers/staging/media/imx/imx7-media-csi.c
Please register or sign in to comment