Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp167342rwe; Fri, 26 Aug 2022 02:52:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR4INFz10M6Isl340Fld8v9FohF2X4uZnN0sNPaTiVdM4f9ZBs9GsLgitgs6A3czBAQnQbuk X-Received: by 2002:a17:903:244c:b0:171:59be:6762 with SMTP id l12-20020a170903244c00b0017159be6762mr3016333pls.20.1661507550711; Fri, 26 Aug 2022 02:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661507550; cv=none; d=google.com; s=arc-20160816; b=DiVN62mj86ERNTuYv8eAdbh/GJ3w7RnfH+55LET05PPmfr8k2uj0OlI6RXmEKfvhNg r71Jua27yAVhpqW4n1W1lPYQb9mD25smudx+RGb9KK54TIXZGQOp1RCZLU3QACqISWZc xdg/dAcVEMy2fVPt/JkMhHnmxccOB5ZN4faE94aqzKrn0u6TUTX7f9+LxChn0dm1Mrnd Imx2v45rFxqVYx7ov2PpfQKKsfcLThufsVKCKs3ADMEu6nMRuo6aT99jEd2BRjS5RWgh 1AGru1pn5PECqms4xuCQl48uqfk2aYNPB5qo3q734i4QwU6qG7cA5EOynlwFWnAuXyph W9CA== 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=aLMHFGizRiBKWg7jehygc+rixSUWvATqXRb/wSQf7G4=; b=Qj1WsWvxP0AaBOv4ct/BCBBWwU8q6z6lMGf4Y9w5OsOT/Go+eatfydlv6ZhrbjdA0B Vs8MUeVRoOS+A/IsBa+iR/VGM2UE4RJo/EkxqMQBqwc7/3gZUbUIZq6M8cfhVFoSSeOz o5dPGW8sSVm4JgdQaAughAkm853I1zz9TcYYP+uSaFILUYjKyjjb7d8aUmUnmdssoV0G oOWL8OrRtNjXDngBUn3qwM1BXe9Sr4jZQfayuOQgwiz10wRt7zrbysHm3OJiJeqStLpO gTtF5Z+f4ZHiFb7vdNT/tn89is6nPdRX06oj8NpF/OTLrKA5I9GCGx72OsncUZtNY5jB +eUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="Lm/0B4N7"; 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 g23-20020a170902869700b0016f9420a15asi1247634plo.168.2022.08.26.02.52.20; Fri, 26 Aug 2022 02:52:30 -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="Lm/0B4N7"; 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 S1343926AbiHZJ34 (ORCPT + 99 others); Fri, 26 Aug 2022 05:29:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343803AbiHZJ3Z (ORCPT ); Fri, 26 Aug 2022 05:29:25 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9490FD7CE4; Fri, 26 Aug 2022 02:29:24 -0700 (PDT) X-UUID: a14454061aa14d71829754cbbe26971c-20220826 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=aLMHFGizRiBKWg7jehygc+rixSUWvATqXRb/wSQf7G4=; b=Lm/0B4N7biE5HIdKGOT8oSql45Yq7qHs3W6RK/w8VtJh/b8Vgbwg6O/uCgANhTPyJAsiCUtFFlNsymKEhfHzswbTgAKbJ9MILsv5ppLuK4LqUkhM4Zw4IMx+qKT/XsYMfrawQBoHxIwPTUv+8xZdvXnOjEFx9DyuvWeYeb1NOMI=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.10,REQID:a98720a5-f45b-4b5d-bf4e-952de0323804,OB:0,L OB:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_ Ham,ACTION:release,TS:0 X-CID-META: VersionHash:84eae18,CLOUDID:534ab4cf-20bd-4e5e-ace8-00692b7ab380,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:11|1,File: nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: a14454061aa14d71829754cbbe26971c-20220826 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 515368348; Fri, 26 Aug 2022 17:29:18 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Fri, 26 Aug 2022 17:29:16 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Fri, 26 Aug 2022 17:29:15 +0800 From: Irui Wang To: Hans Verkuil , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tzung-Bi Shih , , , , kyrie wu CC: , , , , , , Tomasz Figa , , , irui wang Subject: [V7,8/8] mtk-jpegdec: add stop cmd interface for jpgdec Date: Fri, 26 Aug 2022 17:29:04 +0800 Message-ID: <20220826092904.10283-9-irui.wang@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220826092904.10283-1-irui.wang@mediatek.com> References: <20220826092904.10283-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,T_SCC_BODY_TEXT_LINE,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 cfdf94b8a2cd..4fa346b9ec01 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