[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190530211516.1891-2-jernej.skrabec@siol.net>
Date: Thu, 30 May 2019 23:15:10 +0200
From: Jernej Skrabec <jernej.skrabec@...l.net>
To: paul.kocialkowski@...tlin.com, maxime.ripard@...tlin.com
Cc: wens@...e.org, mchehab@...nel.org, gregkh@...uxfoundation.org,
linux-media@...r.kernel.org, devel@...verdev.osuosl.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH 1/7] media: cedrus: Disable engine after each slice decoding
libvdpau-sunxi always disables engine after each decoded slice.
Do same in Cedrus driver.
Presumably this also lowers power consumption which is always nice.
Signed-off-by: Jernej Skrabec <jernej.skrabec@...l.net>
---
drivers/staging/media/sunxi/cedrus/cedrus_hw.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_hw.c b/drivers/staging/media/sunxi/cedrus/cedrus_hw.c
index c34aec7c6e40..9c5819def186 100644
--- a/drivers/staging/media/sunxi/cedrus/cedrus_hw.c
+++ b/drivers/staging/media/sunxi/cedrus/cedrus_hw.c
@@ -123,6 +123,7 @@ static irqreturn_t cedrus_irq(int irq, void *data)
dev->dec_ops[ctx->current_codec]->irq_disable(ctx);
dev->dec_ops[ctx->current_codec]->irq_clear(ctx);
+ cedrus_engine_disable(dev);
src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx);
dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx);
--
2.21.0
Powered by blists - more mailing lists