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: 8032411 Return-Path: X-Original-To: patchwork-linux-media@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 42F269F6FA for ; Thu, 14 Jan 2016 14:51:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DE4FD20453 for ; Thu, 14 Jan 2016 14:51:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 14A0220411 for ; Thu, 14 Jan 2016 14:51:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755376AbcANOu3 (ORCPT ); Thu, 14 Jan 2016 09:50:29 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35875 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755372AbcANOuY (ORCPT ); Thu, 14 Jan 2016 09:50:24 -0500 Received: by mail-pa0-f43.google.com with SMTP id yy13so285355330pab.3 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=gjsFotdT30c5WhtEa8Gmsj672R9pa57oRcvwUybMSljojN5DPw/+4aFr+xXWberwVk HNujoKnOaT1jLLqajfMUNRkIIUd9kHMKtgoKTQE3/mo20q3/It9fkqymoq7YfryQC2O4 vcHGIqQVRNYpX8Am00wmFvv0NuI0UGkZAjp7IKcOcvS2CQ2LLNPnMolK9dmlZIrhI77+ dBpKZ17dWzzVlzhpSAwFTQicl9gNjSzxzftzttn8sf2wmt1uoJKh25ilIN9IfGWlK0Co GcAuNeby2Ee5Dcjh+c/p5ProX6u4gZEzgzFM9gtJ0mU4TxUPxPJPzqyvJWVtrRnW1fa7 7NFQ== X-Gm-Message-State: ALoCoQl8XzhTxYh8nO/vYNqDq0pM6B7C+JWspym2QdnkRSilQ+yEEjtm9l3WfaXXyGw/xostf7+MkicpE4dfpvjn+wBJ+vyGwg== 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 Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tiffany.lin@mediatek.com, djkurtz@chromium.org 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> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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;