From patchwork Thu Jan 14 14:50:07 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: 8032501 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 8D13E9F8AA for ; Thu, 14 Jan 2016 14:52:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BE74220295 for ; Thu, 14 Jan 2016 14:52:32 +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 B07992044B for ; Thu, 14 Jan 2016 14:52:31 +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 1aJjF8-0006h0-3H; Thu, 14 Jan 2016 14:51:18 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aJjEb-0006Nh-RM for linux-arm-kernel@lists.infradead.org; Thu, 14 Jan 2016 14:50:47 +0000 Received: by mail-pa0-x233.google.com with SMTP id uo6so362486851pac.1 for ; Thu, 14 Jan 2016 06:50:24 -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=5A0JU46LXPvLzCuqT1Xm9BIqWhICSKzFViiJH62tRd4=; b=cW6Qwqj8Mqlz1YxXwJ4mOk17o1gdOd3T0oQRLkiD+2X784TceCbGhtONDLgao44utW 47pMY3o8jSbnM5JEUcILMAe6WUEzxWEM9Gc1QRwR4I2+vWUpaQN/fZc9JdbkpQWFJsUn NUhRh5Nh7GILk49PaxZuSkDetp6SUeMAJo8+g= 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=5A0JU46LXPvLzCuqT1Xm9BIqWhICSKzFViiJH62tRd4=; b=bYLB/W93fnUBuVh3UIUYzzEpeBf2JXmLIiLGfPzWr52vWw7eajWACPZkeC8nz/p5Z4 blqtT7jK7hqkLYFpQY2gnhQPYBO1bwZcKY25R3LbYdeBVuQj2Rml6Bc6B/tEpyFvbW65 HexEN2M4NjTLG0PJHIyN29lEBKhbbP/84FXj0Uk6TdK428veUU/embJDvxW9A4H7/ARk 8+9OnLtAeHbjMX0HZnz5ccmmt+4PbVs1qBSvUGRqlCoyUnKY8RZ0p9yG2U9ikXG927z1 r9SYA5jmzazIjpC5WfJ9ZlmVc8hH2/+Q4KVLTQ330ZogEReFrO50/oAs3I3+n7S0LwsT gYYQ== X-Gm-Message-State: ALoCoQldh2QO9Xis5ahf/DDfSLM9LyHdMeeeYHwwMVu06HVB0QA8snGL0NseJCWJYZy/IzTnjo0yHHm6SX8Wn2E27xKnhfcUFg== X-Received: by 10.66.163.231 with SMTP id yl7mr6237785pab.141.1452783024149; Thu, 14 Jan 2016 06:50:24 -0800 (PST) Received: from wuchengli-z840.tpe.corp.google.com ([172.30.210.26]) by smtp.gmail.com with ESMTPSA id n84sm9915567pfa.45.2016.01.14.06.50.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jan 2016 06:50:23 -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 v3 2/2] s5p-mfc: add the support of V4L2_CID_MPEG_VIDEO_FORCE_I_FRAME. Date: Thu, 14 Jan 2016 22:50:07 +0800 Message-Id: <1452783007-80883-3-git-send-email-wuchengli@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1452783007-80883-1-git-send-email-wuchengli@chromium.org> References: <1452783007-80883-1-git-send-email-wuchengli@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160114_065046_224388_9CE4FB41 X-CRM114-Status: UNSURE ( 9.89 ) X-CRM114-Notice: Please train this message. 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 | 12 ++++++++++++ 1 file changed, 12 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..974b4c5 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c @@ -212,6 +212,14 @@ static struct mfc_control controls[] = { .menu_skip_mask = 0, }, { + .id = V4L2_CID_MPEG_VIDEO_FORCE_I_FRAME, + .type = V4L2_CTRL_TYPE_BUTTON, + .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 +1431,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;