Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp227753pxb; Fri, 15 Jan 2021 01:31:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyK+kDEnAT72K71fuKov65zbfkf1W68RHvSkuUDjP2uyAnjB5Cd0P6CxTwBw4NxU7JaCPIt X-Received: by 2002:a50:bacb:: with SMTP id x69mr8763143ede.39.1610703084816; Fri, 15 Jan 2021 01:31:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610703084; cv=none; d=google.com; s=arc-20160816; b=hUScQLlHx/NCCDkZ9ETMzHrm3+ax6NldFacaAqJGaVLjoGgJVFoX1mEbR/Qgh8A0jm y78FUn+72EzJcYn1INrLM8Dhd+ONwrmylIOU2nBWhgSbGJtfoL/wNmX0lJZ7fUCEKEDo 8Z5iuQreP/TFQs+c4gpT7HsShEec0Ikk2NsMXRNRYkrKthKO/WeOxykVbG2G5b6ivm8c 6xiSZEWWYX0EyqcIyy5fgZaPVPsg+DkUfWt/Oiht3u6e1bF32iJbXS3R3WKO/7XfvQ+6 2KLfJ1PmuG2GlUJWsWgsPFNpqCey9gFvhQybBgtu7BlVzb8LFHg6/Dd8R/pi4U6CAF3W JR5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=VW5Rdf+XabAMEub3RqiNA/1skv+IyyCxHOSnvL012VA=; b=gRSDbEZHd8BWDOOEDf4rhEYVaRYEZRc+ZDlB5JOeIYe04egcONY9GEb2FASWbYYfpn K+pBmrmpZY4egAAxgk9DeG6qw0fxD/XLLL3DWeN+j7Z0QXzcHy5USKyPEepcRfVh1Zx3 ZfcHZeQPEaMKKQNuVdML6SvnGGjNtrZDhkjDCC8TQS+Ls5YA06WmlV+WpnhuVYMcx1JT zwiIy7RMwq2E+RIaZ6udsJFgA9ZhLH79n/UGOEGJeWLb0s94sKTfutiZ+0pqCV7UgUB3 XLOInM0HTRXipVaW8gjlhK3eIa/OFUrLx3PFEEXXis8lMckv/wKp60loNm9D6TP5wGBn CFpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z2Wv0QSR; 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 b21si3495760ejv.550.2021.01.15.01.30.55; Fri, 15 Jan 2021 01:31:24 -0800 (PST) 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=z2Wv0QSR; 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 S1730842AbhAOJ2U (ORCPT + 99 others); Fri, 15 Jan 2021 04:28:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729172AbhAOJ1o (ORCPT ); Fri, 15 Jan 2021 04:27:44 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DEF6C06179A for ; Fri, 15 Jan 2021 01:26:28 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id q22so12334804eja.2 for ; Fri, 15 Jan 2021 01:26:28 -0800 (PST) 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=VW5Rdf+XabAMEub3RqiNA/1skv+IyyCxHOSnvL012VA=; b=z2Wv0QSRd3GkWD535rvz6m8unClRZByA43tSFjS/7Okri/MEoSku1aBaSe0anhfGAZ rRX0/UivBJuFtEjBMWYGNBo5W5gHYfXZFksgkHaR7qud9BUTzHVU5/kU5sUp7l8fOXPS l/MGPeFUcfA8xFvJSphcCeGdMvXoeWgjvGSPi+6IK7RsAh0CZicbp8LTE0GQr0urncaA uWYbPVCb78dbzF4Q/EVyzSmY3sAukWQnDrlL5NKVi5mPtAb4JQeLEwupoMzb8eM2C8Es uztncevZbGcBWWKgi99aV8kCu05JSfQE0ez/flmPT/mMcynaJtBVKA6DrFmQIll+NO2z 2TiQ== 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=VW5Rdf+XabAMEub3RqiNA/1skv+IyyCxHOSnvL012VA=; b=lUZBkzObBJM2+FxkMKlD/qF/8hIvBH+QWtRYQ9m4oKa0+lvl8T+6OLIrcFVtEWSuxe NH4NO/+4mJnJK4EW6qfTFCq45trjCcaPMLFX914usTzQGEdmLzzSJESi1OK9fhb9EVlq 4XKB5YGK0SktnyoOLv3v0DZtUBDH2zK8x6AwdyDSv7Y5UDsFA1MATnFZw+eOlE37O2xM FFgy5hQ6hfCqLMCgJ29xHWZ9csd763YkpXLvOMo+9tNOFLb49FnTRwsMoDEMeKDGCwXj eE+G9KjgBEGNkj2myAZdUtdYrbsKCoXanMC0W16aGoO6yyKbJIs/yYbnMMvSqlB2ACJI P/Rg== X-Gm-Message-State: AOAM533edliusRI1UCGfnpNjIaPMEZl72DGdl9fw28jrK4ZpW4rQlRYS lARB6z/50asYIqc4XaqEbedFYg== X-Received: by 2002:a17:907:3e02:: with SMTP id hp2mr7990039ejc.411.1610702786861; Fri, 15 Jan 2021 01:26:26 -0800 (PST) Received: from localhost.localdomain (hst-221-63.medicom.bg. [84.238.221.63]) by smtp.gmail.com with ESMTPSA id u24sm3004140eje.71.2021.01.15.01.26.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 01:26:26 -0800 (PST) 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: Hans Verkuil , Stanimir Varbanov Subject: [PATCH v2 3/4] s5p-mfc: Use display delay and display enable std controls Date: Fri, 15 Jan 2021 11:26:06 +0200 Message-Id: <20210115092607.29849-4-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210115092607.29849-1-stanimir.varbanov@linaro.org> References: <20210115092607.29849-1-stanimir.varbanov@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the standard display_delay and display_delay_enable controls, the legacy private MFC controls are kept for backward compatibility. Acked-by: Marek Szyprowski Signed-off-by: Stanimir Varbanov --- drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c index a71753d459ba..a92a9ca6e87e 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c @@ -167,6 +167,13 @@ static struct mfc_control controls[] = { .step = 1, .default_value = 0, }, + { + .id = V4L2_CID_MPEG_VIDEO_DEC_DISPLAY_DELAY, + .type = V4L2_CTRL_TYPE_INTEGER, + .minimum = 0, + .maximum = 16383, + .default_value = 0, + }, { .id = V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY_ENABLE, .type = V4L2_CTRL_TYPE_BOOLEAN, @@ -176,6 +183,13 @@ static struct mfc_control controls[] = { .step = 1, .default_value = 0, }, + { + .id = V4L2_CID_MPEG_VIDEO_DEC_DISPLAY_DELAY_ENABLE, + .type = V4L2_CTRL_TYPE_BOOLEAN, + .minimum = 0, + .maximum = 1, + .default_value = 0, + }, { .id = V4L2_CID_MPEG_VIDEO_DECODER_MPEG4_DEBLOCK_FILTER, .type = V4L2_CTRL_TYPE_BOOLEAN, @@ -690,9 +704,11 @@ static int s5p_mfc_dec_s_ctrl(struct v4l2_ctrl *ctrl) switch (ctrl->id) { case V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY: + case V4L2_CID_MPEG_VIDEO_DEC_DISPLAY_DELAY: ctx->display_delay = ctrl->val; break; case V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY_ENABLE: + case V4L2_CID_MPEG_VIDEO_DEC_DISPLAY_DELAY_ENABLE: ctx->display_delay_enable = ctrl->val; break; case V4L2_CID_MPEG_VIDEO_DECODER_MPEG4_DEBLOCK_FILTER: -- 2.17.1