From patchwork Mon Jun 18 07:58:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keiichi Watanabe X-Patchwork-Id: 10469515 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 25A806020C for ; Mon, 18 Jun 2018 08:04:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1530F285FF for ; Mon, 18 Jun 2018 08:04:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01BD22894B; Mon, 18 Jun 2018 08:04:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7EAD7285FF for ; Mon, 18 Jun 2018 08:04:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=DTuo1hqfCij3vaZRsYgvXogitiX0sI2+SXKB5Jqkk1k=; b=Argzv7QxEm4JujLFQ+GF9gTLPR Ec4Hq2Uip1PePg4pqt94HUc+tBBBFInfDbVuSJIGAeuOch86iy6t+n2AJ48MVVhtiBWHRvaLZSVpK g0w8Oiwzs8j8uWl94joOBTABLeVoABAUMbgKxLefmXEXidwMO59cIKQOy1NPcTGe3ZMPt22/luMNO eF02b6j4ibTYt1PizlF7BmqTCWwVH7hpjNbKWASkdD/UXpbX1uf/G2UOc+rQfijJmHpJ4KMiKuRLJ 14SRTX0MM26WqbovuM/xwSIrqBXO1xq2dVmOGtMd8y6hcz1xkGtFCwRW2MXIY1+h+Y8+bDw9t72xc eS72LMMA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUp94-0003As-Ac; Mon, 18 Jun 2018 08:04:14 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUp64-0001FW-S6 for linux-mediatek@lists.infradead.org; Mon, 18 Jun 2018 08:01:19 +0000 Received: by mail-pf0-x243.google.com with SMTP id y8-v6so7752537pfm.10 for ; Mon, 18 Jun 2018 01:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=19t9Afaz9F095eSpm9L0iD1w+YdH1VBIYtySLCVLpyk=; b=oPgcYR6+OslLH5YOBfquhkSXLh7r5IcHo/s/Z1qeCXRcmAKd0/Ph1HBcnLKaRCeTsH ejQeZngvzyhqzy4m9Z/J885lVNhf3tkFqZO99/I82/nHUqzo1pLNmVlRFEI7VDuBIvot hFTYT6L/NkTEt9C0gYYCuSGlQJx+prQw7Z6eI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=19t9Afaz9F095eSpm9L0iD1w+YdH1VBIYtySLCVLpyk=; b=qr6coqQNgpxY70+jcM4zyFDN+HLzpxZNCnyMcIfLhherbZu7CJ11m0ALWa0sSDbD/2 6FDeskvYKDgMbwPLkgC54lQOTY1FG3r7VYfzc6gyq3zvWPwajV1cWkVucaZ2xBGw2d8F V6a2IaEMSIHFis9hkPPU4eVH6Fr4+fB5ZufGKNyn4FrSuw8bb0yLAdeA+N6j7JZU96Vl Fp6VpyKh7NkwV52ZGRrhfy8yXmmFJ44840yzhmqDp/XTryEkBE5qwuIiEJhE5iBjX57i gMRbW9Mp+YXGnG0/i6OzW7l7QITPHz27Dw3t3Fxcs4rRLpEiVwj4jNXESp6695JUcerz dkEg== X-Gm-Message-State: APt69E3IYcKsqgZVOajuwAZ42Feg3etvO+m542eInP4n3zOItm7NuTmA mGPYsG0eTOxZ36bna3iCiKJsCw== X-Google-Smtp-Source: ADUXVKIPYly8RsZrzpK/kE6x1Ib1n2p2KmbbhpWlYY7T8l5GGRWiDjZTFu1PNVArKHWqjvHlXPzY6g== X-Received: by 2002:a65:660a:: with SMTP id w10-v6mr9878623pgv.366.1529308857942; Mon, 18 Jun 2018 01:00:57 -0700 (PDT) Received: from keiichiw1.tok.corp.google.com ([2401:fa00:4:4:968c:de0d:27a3:4bef]) by smtp.gmail.com with ESMTPSA id d9-v6sm23543236pfg.183.2018.06.18.01.00.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jun 2018 01:00:56 -0700 (PDT) From: Keiichi Watanabe To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 3/3] media: mtk-vcodec: Support VP9 profile in decoder Date: Mon, 18 Jun 2018 16:58:54 +0900 Message-Id: <20180618075854.12881-4-keiichiw@chromium.org> X-Mailer: git-send-email 2.18.0.rc1.244.gcf134e6275-goog In-Reply-To: <20180618075854.12881-1-keiichiw@chromium.org> References: <20180618075854.12881-1-keiichiw@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180618_010108_959371_FFF92FD8 X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew-CT Chen , Tom Saeger , Stanimir Varbanov , Hans Verkuil , Andrzej Hajda , Sylwester Nawrocki , Ricardo Ribalda Delgado , Andy Shevchenko , Keiichi Watanabe , linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org, Smitha T Murthy , Mauro Carvalho Chehab , Kamil Debski , Jeongtae Park , linux-mediatek@lists.infradead.org, Matthias Brugger , Tiffany Lin , linux-kernel@vger.kernel.org, Tomasz Figa , Kyungmin Park , Sakari Ailus MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add V4L2_CID_MPEG_VIDEO_VP9_PROFILE control in MediaTek decoder's driver. MediaTek decoder only supports profile 0 for now. Signed-off-by: Keiichi Watanabe --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.18.0.rc1.244.gcf134e6275-goog diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c index 86f0a7134365..ba986232b953 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c @@ -1400,6 +1400,11 @@ int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_ctx *ctx) V4L2_CID_MIN_BUFFERS_FOR_CAPTURE, 0, 32, 1, 1); ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE; + v4l2_ctrl_new_std_menu(&ctx->ctrl_hdl, + &mtk_vcodec_dec_ctrl_ops, + V4L2_CID_MPEG_VIDEO_VP9_PROFILE, + V4L2_MPEG_VIDEO_VP9_PROFILE_0, + 0, V4L2_MPEG_VIDEO_VP9_PROFILE_0); if (ctx->ctrl_hdl.error) { mtk_v4l2_err("Adding control failed %d",