Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp521684ybh; Tue, 21 Jul 2020 00:52:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuFo8XJ4eG4J3Xy91hmdqMTfChenzholhb0PrBmreIT90I0fShIZM2zstlOu3nj3j9OKxB X-Received: by 2002:a17:906:2641:: with SMTP id i1mr25448971ejc.380.1595317970337; Tue, 21 Jul 2020 00:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595317970; cv=none; d=google.com; s=arc-20160816; b=X4vgV+J0VZOVg/9aICiZWov/jolRUVMKWBMfkYBYfmQYbG+pXru7lP0dChlZGqudwm sqX10uINiN4gpozrIP40c/l8yoCHm/57qAjzNyY7gjai19SivmpIbiC/1lmZh2WHOoim JsGdOopDCHmW2kyeHR/HQjAgCtrVIrRNOCJEQl0mRM52qbUXS12j3mhaJL8ocxAzjCUZ SggbGv3ZfysjEPH3Gp2rtaPRXb5JUbzNSGXrowUhw5Uj53H3LDxG7mAY4aJEzwZj6vgr XmAbDlGUY4UpisZ7YBZYJDRTGacEpmowgTx4FSePq76LlmS9RyEsbDXCyml5cAdi6wiY qpOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=PCNLmGR8sMtBYV74iVoiny++gKyFU6QKve9J6ft8KaU=; b=ygdGdA3hgRBMPyJRpluuslc3CZqmfHGcFLQgd4PtzlOstRUU96fn0jRVAMMhFb8uDP IR3AUhLXr++LHxJLtiewLaGWebLGqSNZr/f3RhGn0F2IF0gXKvpx3UxZ1dq3NMieUJN7 xv3nVQ8ytWRwygQZiwq+OJhrSWuwMRri4UN3KbpcQbbCPe+OTtwHN1MCAlRi/PgoDx5Z d6/JQGx3fIir4BIFgWkeTogArGKnBwKhQMBvVJG6ULclMxurp4Yx955zWvwPWvKvZSZ1 JnRTY3NIya8XCKkUYwBM5OAJIjQhs5URNSIU/sgjf28s7zo0VoA5prxnAZZScBDZEjsI T/Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ajU56Grs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si12657530edm.463.2020.07.21.00.52.28; Tue, 21 Jul 2020 00:52:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ajU56Grs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728502AbgGUHwJ (ORCPT + 99 others); Tue, 21 Jul 2020 03:52:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728487AbgGUHwG (ORCPT ); Tue, 21 Jul 2020 03:52:06 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79DF7C0619D7 for ; Tue, 21 Jul 2020 00:52:06 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id i80so11134732lfi.13 for ; Tue, 21 Jul 2020 00:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PCNLmGR8sMtBYV74iVoiny++gKyFU6QKve9J6ft8KaU=; b=ajU56GrsuzhVrOlNfLRWp8gS9xgN5nLCwulEk19YM/GaWszzUOzXZsUttzaFR+kYBd a3WblZS8HsXjcOC+06HIMV/LfkYXcZpbGarrKZegHGsFyAEj/801vqo3iMBEB/GbSAfu 5G8PlNSKeeoRAyWoCTQUtqRvvOpPsdyur+CMiLPDYZyvMhtv9uWYiDmN756EBkuZADpN 2Kyo38Mvtv/2H8ivHQdBv83rtP1KNSTNZwjTHa0dNZqyXHixtKsGNiZc7WycJks8M/Xe Kng05ZGPmPIK/PAuxYzSmLffC8oh+0kR8WmHRM6j5HJg+pSXYsO/xDEvgGfhr+4Xf1tC 09tg== 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=PCNLmGR8sMtBYV74iVoiny++gKyFU6QKve9J6ft8KaU=; b=WsDqEezxoTY/ueMzmHo4FMucza/T1t2DNElPddaWclZ8G30Ka25DmcNuQbYAPvJNhD S1Aegz969BA1hyTqIwb/ePSZovEgYR3ieeFki/UrQtBy7LwEN8gi4YJcF3AlZ1wIy6H6 JOZj+W0jIxD8fwbhxtG3QJ1sxC1Fnx6AqmWF1yDU5zZq7STzX71Ouufll/9VUqavBoeF zz6X5I6x1ciq1g3+wA/YcK4I4jTKaUsuGFFPFIFK6uDGQsycwWG5905vwHtz73B1B6fR bjfulLq/xO2V/5lNKavs6iH9NdM0milVhRMcVdK/UhUwqDKgZDEbJR8hGIZK7fmQkuRG BXmg== X-Gm-Message-State: AOAM530nIVSqRUAymDEyBqtPW3t5TFfIljtbRykxvy86OMaAvLMEFt0y rGpTWjXjHK5CwMd+OkzzijGM+A== X-Received: by 2002:a19:e45:: with SMTP id 66mr9554217lfo.82.1595317924966; Tue, 21 Jul 2020 00:52:04 -0700 (PDT) Received: from localhost.localdomain ([195.24.90.54]) by smtp.gmail.com with ESMTPSA id d2sm4045334ljg.6.2020.07.21.00.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 00:52:04 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Mauro Carvalho Chehab , Kyungmin Park , Kamil Debski , Jeongtae Park , Andrzej Hajda , Ezequiel Garcia , Maheshwar Ajja , Nicolas Dufresne , Stanimir Varbanov Subject: [PATCH v2 5/6] media: s5p-mfc: Use standard frame skip mode control Date: Tue, 21 Jul 2020 10:45:37 +0300 Message-Id: <20200721074538.505-6-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200721074538.505-1-stanimir.varbanov@linaro.org> References: <20200721074538.505-1-stanimir.varbanov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the standard menu control for frame skip mode in the MFC driver. The legacy private menu control is kept for backward compatibility. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c index 912fe0c5ab18..3092eb6777a5 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c @@ -261,6 +261,11 @@ static struct mfc_control controls[] = { .menu_skip_mask = 0, .default_value = V4L2_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE_DISABLED, }, + { + .id = V4L2_CID_MPEG_VIDEO_FRAME_SKIP_MODE, + .maximum = V4L2_MPEG_VIDEO_FRAME_SKIP_MODE_BUF_LIMIT, + .default_value = V4L2_MPEG_VIDEO_FRAME_SKIP_MODE_DISABLED, + }, { .id = V4L2_CID_MPEG_MFC51_VIDEO_RC_FIXED_TARGET_BIT, .type = V4L2_CTRL_TYPE_BOOLEAN, @@ -1849,6 +1854,7 @@ static int s5p_mfc_enc_s_ctrl(struct v4l2_ctrl *ctrl) p->seq_hdr_mode = ctrl->val; break; case V4L2_CID_MPEG_MFC51_VIDEO_FRAME_SKIP_MODE: + case V4L2_CID_MPEG_VIDEO_FRAME_SKIP_MODE: p->frame_skip_mode = ctrl->val; break; case V4L2_CID_MPEG_MFC51_VIDEO_RC_FIXED_TARGET_BIT: -- 2.17.1