mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
media: m2m-deinterlace: replace direct ->device_prep*() calls with standard DMA engine API
DMA engine consumers must not call the channel's device_prep_*() function pointers directly. Use the standard dmaengine wrapper APIs instead. Assisted-by: LLM Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
1b6d63de87
commit
fed2e02a12
|
|
@ -211,7 +211,6 @@ static void deinterlace_issue_dma(struct deinterlace_ctx *ctx, int op,
|
|||
struct vb2_v4l2_buffer *src_buf, *dst_buf;
|
||||
struct deinterlace_dev *pcdev = ctx->dev;
|
||||
struct dma_chan *chan = pcdev->dma_chan;
|
||||
struct dma_device *dmadev = chan->device;
|
||||
struct dma_async_tx_descriptor *tx;
|
||||
unsigned int s_width, s_height;
|
||||
unsigned int s_size;
|
||||
|
|
@ -330,7 +329,7 @@ static void deinterlace_issue_dma(struct deinterlace_ctx *ctx, int op,
|
|||
ctx->xt->dst_sgl = true;
|
||||
flags = DMA_CTRL_ACK | DMA_PREP_INTERRUPT;
|
||||
|
||||
tx = dmadev->device_prep_interleaved_dma(chan, ctx->xt, flags);
|
||||
tx = dmaengine_prep_interleaved_dma(chan, ctx->xt, flags);
|
||||
if (tx == NULL) {
|
||||
v4l2_warn(&pcdev->v4l2_dev, "DMA interleaved prep error\n");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user