From patchwork Thu Jan 14 08:33:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu-Cheng Li X-Patchwork-Id: 8030601 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E89B19F6FA for ; Thu, 14 Jan 2016 08:39:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1A38820444 for ; Thu, 14 Jan 2016 08:39:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 44BC220443 for ; Thu, 14 Jan 2016 08:39:01 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aJdPQ-0001JJ-2F; Thu, 14 Jan 2016 08:37:32 +0000 Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aJdPM-0001CP-6O for linux-arm-kernel@lists.infradead.org; Thu, 14 Jan 2016 08:37:29 +0000 Received: by mail-pf0-x231.google.com with SMTP id 65so96240423pff.2 for ; Thu, 14 Jan 2016 00:37:07 -0800 (PST) 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=yw4dJJL5zvakdxV4CTRpkmB3iLJFQEQ8iIS37vJWG9E=; b=EWXoUVk/kOa2houGqE8+kyPgTGj4w7kVS33SNZxk4JITk7zqvU6dNRVd3f23AxLc1o 5ia3nThq3mI/CMohW3Dws8SPJV3ZnzVU2JDi9wXcE6ZNoqGInr7aD7DBzNw68cTyN7qm rDFoNPQLSc61O1xWctcn7BYyDE1LC7L3Kgsvc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yw4dJJL5zvakdxV4CTRpkmB3iLJFQEQ8iIS37vJWG9E=; b=QFYj1nG2gB2jPNgkuha+TjKCs3gYuCTIYg6WlLRzbTdbQgiWuIVeD2tpGTY2D0N0VT 3jogHN09EiKAe83S/sE9AK9y9nEB1oJM2RQ48SvE8xtKZ1PXFNteeAH2IsTkL5DK2igg tiUP8/O//xhqf2NhEokSlNq3QYBRnCCuFvWA68RiWs3KceqJM2EQADOvRIP4tzWAGUuq UDI7mijS9GfB1KLgtaRIzDYKM7k3AfXlSEr2JWPlrPE3oqXfEzAes6b0uDwUVLnbwPjq 2AicwEoCQKiwCfJQXEy53ieq4z6ne6Zjw4aMi/DsOX87bmbVbJGToj6+Mygaoog/USIt 9WRg== X-Gm-Message-State: ALoCoQl4bWInndcsWfDt5AkZi4TAquxiDHmwpgu6EW+c18ZXEYZF5wI7bub+tgdTT3Sy1l5bxcddfM7UEtqvShSBMNDA3wxkxw== X-Received: by 10.98.80.135 with SMTP id g7mr4149238pfj.132.1452760627550; Thu, 14 Jan 2016 00:37:07 -0800 (PST) Received: from wuchengli-z840.tpe.corp.google.com ([172.30.210.26]) by smtp.gmail.com with ESMTPSA id 17sm7512449pfq.51.2016.01.14.00.37.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jan 2016 00:37:07 -0800 (PST) From: Wu-Cheng Li To: pawel@osciak.com, mchehab@osg.samsung.com, hverkuil@xs4all.nl, k.debski@samsung.com, crope@iki.fi, standby24x7@gmail.com, wuchengli@chromium.org, nicolas.dufresne@collabora.com, ricardo.ribalda@gmail.com, ao2@ao2.it, bparrot@ti.com, kyungmin.park@samsung.com, jtp.park@samsung.com Subject: [PATCH v2 2/2] s5p-mfc: add the support of V4L2_CID_MPEG_VIDEO_FORCE_I_FRAME. Date: Thu, 14 Jan 2016 16:33:59 +0800 Message-Id: <1452760439-35564-3-git-send-email-wuchengli@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1452760439-35564-1-git-send-email-wuchengli@chromium.org> References: <1452760439-35564-1-git-send-email-wuchengli@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160114_003728_384583_77F67DF3 X-CRM114-Status: GOOD ( 10.14 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, djkurtz@chromium.org, tiffany.lin@mediatek.com, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Wu-Cheng Li --- drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c index 0434f02..de1d68d 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c @@ -212,6 +212,15 @@ static struct mfc_control controls[] = { .menu_skip_mask = 0, }, { + .id = V4L2_CID_MPEG_VIDEO_FORCE_I_FRAME, + .type = V4L2_CTRL_TYPE_BUTTON, + .name = "Force an I frame", + .minimum = 0, + .maximum = 0, + .step = 0, + .default_value = 0, + }, + { .id = V4L2_CID_MPEG_VIDEO_VBV_SIZE, .type = V4L2_CTRL_TYPE_INTEGER, .minimum = 0, @@ -1423,6 +1432,10 @@ static int s5p_mfc_enc_s_ctrl(struct v4l2_ctrl *ctrl) case V4L2_CID_MPEG_MFC51_VIDEO_FORCE_FRAME_TYPE: ctx->force_frame_type = ctrl->val; break; + case V4L2_CID_MPEG_VIDEO_FORCE_I_FRAME: + ctx->force_frame_type + = V4L2_MPEG_MFC51_VIDEO_FORCE_FRAME_TYPE_I_FRAME; + break; case V4L2_CID_MPEG_VIDEO_VBV_SIZE: p->vbv_size = ctrl->val; break;