Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757238AbcLBCiq (ORCPT ); Thu, 1 Dec 2016 21:38:46 -0500 Received: from mail-pg0-f45.google.com ([74.125.83.45]:34693 "EHLO mail-pg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752147AbcLBCip (ORCPT ); Thu, 1 Dec 2016 21:38:45 -0500 From: Wu-Cheng Li To: tiffany.lin@mediatek.com, andrew-ct.chen@mediatek.com, mchehab@kernel.org, matthias.bgg@gmail.com Cc: linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, djkurtz@chromium.org, pawel@osciak.com, Wu-Cheng Li Subject: [PATCH v1] mtk-vcodec: use V4L2_DEC_CMD_STOP to implement flush Date: Fri, 2 Dec 2016 10:38:33 +0800 Message-Id: <1480646314-75478-1-git-send-email-wuchengli@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 596 Lines: 16 From: Wu-Cheng Li This patch uses V4L2_DEC_CMD_STOP to implement flush -- requesting the remaining images to be returned to userspace. The old unofficial way was to use a size-0 input buffer and the code is removed. Tiffany Lin (1): mtk-vcodec: use V4L2_DEC_CMD_STOP to implement flush drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 151 ++++++++++++++------- .../media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 14 ++ drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h | 2 + 3 files changed, 117 insertions(+), 50 deletions(-) -- 2.8.0.rc3.226.g39d4020