Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp534756rwb; Mon, 26 Sep 2022 02:24:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7pBmI1EeTUlEpEh4ZDQTQwL6Z9MqY+Q8hesqgi354hpZAPNeoKzW95xewYBmR7hsAFZn56 X-Received: by 2002:a17:90b:4d8f:b0:202:6634:997e with SMTP id oj15-20020a17090b4d8f00b002026634997emr24227601pjb.237.1664184282835; Mon, 26 Sep 2022 02:24:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664184282; cv=none; d=google.com; s=arc-20160816; b=rT1Iquzvo51mgzWC+gRnsfuiPbVba6CHytbsaljZ0nzgf1u0dVvNrJ15BOiLrl7b/f jSN+uXItuTfq5Cj9NNZCoCCAP2gobWYCZ5i3THGmukWfp0oUXMLmZS1idWtP/8tALs41 t578X7vQus1oRcW4kKZEnMkjBLYNXFvzrT1N2jUDv3kAqKv7D1B8gZp3JsCwNZoW/Wgd FLA3eLISzC+6EgY7pWPw96R/rIVCWCzp8+dAmZQmQwnizmqykd7ZIbdSbJAzIGt0YgTy fFmO8rsL/jLjAzWVP7kx9NZaHuHbZQScM6jAUEaRbD5QqnZHkCXjXLmBN9wkweBVuaNo tyrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=05M3M7J7kDkTRDSeF5O8eaR0ZRr7az9EUbdWM6vT2FA=; b=x/k9D38u1XowUoERb+MqCAdv9lW1k60Nt9TYt3UjiTz7ucUOw7NhSKj6QBqt4XHYG7 fCcoiCEI5KfnbjOKyqtmh0kqF94q1uDc1crLpE4gWRclWXi0mY/ZKHqh2S7mlbROEdMT gVt2TEWaWIbU1k1gIbse/QA7Rm1tSES3RhNPjtQ//Tmm5YpatvI0l6mdcfMIZ5S4bw0c UpVfMLpFmUQsHwZLYSVadw1LjGMzP7DZfKJ1e2tkD0ztNUns/cWRJp5cEl/LkbyzRZnc E7TixCrBWPjR+3rzkMED9zE3ztk9hCTAjNC2n0NeWs4WZQnAs4EK2IfFbcpB567H4LPi kbnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="Z3P+/mUU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a6545c2000000b0043a1cd44b60si16534472pgr.402.2022.09.26.02.24.30; Mon, 26 Sep 2022 02:24:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="Z3P+/mUU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234908AbiIZJQv (ORCPT + 99 others); Mon, 26 Sep 2022 05:16:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234892AbiIZJPU (ORCPT ); Mon, 26 Sep 2022 05:15:20 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86B59178AE; Mon, 26 Sep 2022 02:14:59 -0700 (PDT) X-UUID: b88a332d74034fe690f8d956b9bb5fd5-20220926 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=05M3M7J7kDkTRDSeF5O8eaR0ZRr7az9EUbdWM6vT2FA=; b=Z3P+/mUUoTMNyDfBQyOAMMhVom7bLQ0vYWXNTlb9hlucTF6+Ssh0ShsKRvDYJveKh2MW/Joaa1LHdgr128RKx3iTx3v3z8WP6m1oJvabUE/ywcOj4dfX/hqp1Sq/fpfk/RU5CUhagC6QrGzwEiPS1y1C22hQvcKuTCrbCKPT0aI=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.11,REQID:d462bf40-709f-4fbf-8d0b-2de1ff70310b,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.11,REQID:d462bf40-709f-4fbf-8d0b-2de1ff70310b,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:39a5ff1,CLOUDID:ec513ce4-87f9-4bb0-97b6-34957dc0fbbe,B ulkID:220926171458V9UNIAI2,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: b88a332d74034fe690f8d956b9bb5fd5-20220926 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 319312319; Mon, 26 Sep 2022 17:14:57 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Mon, 26 Sep 2022 17:14:55 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Mon, 26 Sep 2022 17:14:54 +0800 From: Irui Wang To: Hans Verkuil , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Krzysztof Kozlowski , Tzung-Bi Shih , , , , kyrie wu CC: , , , , , , Tomasz Figa , , , irui wang Subject: [V15,15/15] mtk-jpegdec: add stop cmd interface for jpgdec Date: Mon, 26 Sep 2022 17:14:33 +0800 Message-ID: <20220926091433.18633-16-irui.wang@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220926091433.18633-1-irui.wang@mediatek.com> References: <20220926091433.18633-1-irui.wang@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY,URIBL_CSS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kyrie wu Add stop cmd interface for jpgdec to stop stream Signed-off-by: kyrie wu Signed-off-by: irui wang --- drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c index 2fe0e2a1c127..79a8f1b1965c 100644 --- a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c +++ b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c @@ -667,6 +667,9 @@ static const struct v4l2_ioctl_ops mtk_jpeg_dec_ioctl_ops = { .vidioc_streamoff = v4l2_m2m_ioctl_streamoff, .vidioc_unsubscribe_event = v4l2_event_unsubscribe, + + .vidioc_decoder_cmd = v4l2_m2m_ioctl_decoder_cmd, + .vidioc_try_decoder_cmd = v4l2_m2m_ioctl_try_decoder_cmd, }; static int mtk_jpeg_queue_setup(struct vb2_queue *q, -- 2.18.0