From patchwork Wed Apr 20 15:07:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 12820424 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E8EDC433F5 for ; Wed, 20 Apr 2022 15:07:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379989AbiDTPKH (ORCPT ); Wed, 20 Apr 2022 11:10:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376897AbiDTPKF (ORCPT ); Wed, 20 Apr 2022 11:10:05 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BE153B546 for ; Wed, 20 Apr 2022 08:07:19 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id y20so4151295eju.7 for ; Wed, 20 Apr 2022 08:07:19 -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:mime-version :content-transfer-encoding; bh=j9v+bg8k7RA4LH8F4uiECLoS6Or0HyKFR68rUp70rg0=; b=rtT22V0cDoanqCuujkQpoaT0yhDYBLgiimNx0juuhBoRiMut7z917HHz6d+MKEQXHl z00kp8IR8E9kM/wmiadEhXBh35eohO+nALg9MtNBbX3HRz9qbrsAKR2FfFnYNFbiuINx KUMazrAPQy+TX/Y3dxm0nldDr0XuqiFu+J56Q/vyCTj3enXrf8kxa0do/tseSM6zYayQ fGeGM8HzlATsqcUy+LO9uJa/WwSLbuSh1qk1Pi4Mpc5SAFi4BbKy02oKwjV2kKzWEw7O gHdHdzmf6k7qXvTzviJ4yauLltYgHDrYcBte05jroztpm+do6DCy5h/YSsRKWLNjlMmf xfgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j9v+bg8k7RA4LH8F4uiECLoS6Or0HyKFR68rUp70rg0=; b=csxeAV2Q46a3NtzWIjxcUZxtie87N3HrVH4ytpxZIe7BxueAv3fdA8J0eUPzpl1VIQ XUqA3xsxMmgVrP7/064EUG5bftCTTwtizX1HUiz0FGhuJUBPJu+p4x0BDzg7ugBCxRMQ m3u+KkhS/Dh3eB7abW+BQc9FZ/aGSrL3g0khYZ6qu0ntntFVoX9mr0Jujzblg3IuLNTF +vp/i/PJJJebpu3vkPUYzy/UvZjplYss0KC+Ba07Q743hFTc0KAsf7Z5QHBzgvYI+yim BgvFdybxltzSNmQhBrywIUruhsIab/LiWBZpVXdap9bE1rpCxFApDSAjsVeFvHnRHY/1 w9HQ== X-Gm-Message-State: AOAM530IILmZXHBjXu8gqLXk12wcxAp07kW8P/Lg1FHVqGhBlaHNfnGL sDyWDAyA09J3K+1gaxSOsmWBpIeIyljJB8oC X-Google-Smtp-Source: ABdhPJwAFQHutKppASipYKvkjN1qaI67hljqa3I5zyWOmLhP6i5HngJ0kxnxOpRY78y4Lz7nQDbExA== X-Received: by 2002:a17:907:7f24:b0:6e8:b5a9:3434 with SMTP id qf36-20020a1709077f2400b006e8b5a93434mr18524193ejc.254.1650467237366; Wed, 20 Apr 2022 08:07:17 -0700 (PDT) Received: from localhost.localdomain (hst-208-209.medicom.bg. [84.238.208.209]) by smtp.gmail.com with ESMTPSA id zk19-20020a17090733d300b006f00e918483sm415262ejb.84.2022.04.20.08.07.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 08:07:15 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, hverkuil-cisco@xs4all.nl Cc: linux-arm-msm@vger.kernel.org, ezequiel@collabora.com, stanimir.varbanov@linaro.org, quic_vgarodia@quicinc.com, quic_majja@quicinc.com, quic_jdas@quicinc.com Subject: [PATCH v6 0/2] Introduce Intra-refresh type control Date: Wed, 20 Apr 2022 18:07:02 +0300 Message-Id: <20220420150704.144000-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi, This series add a new intra-refresh type control for encoders. this can be used to specify which intra refresh to be enabled, random, cyclic or none. Change since v0: Dropped INTRA_REFRESH_TYPE_NONE as it was not needed. Intra refresh period value as zero will disable the intra refresh. Change since v1: Updated the control name for better undestanding. Also updated the documentation accordingly. Change since v2: Updated the venus driver implementation as well to use the correct control name. Missed in v2. Change since v3: Addressed comments from Hans in v4l2 patch. Enabled the support for cyclic intra refresh in venus driver. Change since v4: fixed typos in v4l2 patch. fix mask value in venus driver patch (Hans). Change since v5: change in patch subject mode -> type in 2/2 regards, Stan Dikshita Agarwal (2): media: v4l2-ctrls: Add intra-refresh type control venus: venc: Add support for intra-refresh type .../media/v4l/ext-ctrls-codec.rst | 22 +++++++++++++++++++ drivers/media/platform/qcom/venus/core.h | 1 + drivers/media/platform/qcom/venus/venc.c | 6 ++++- .../media/platform/qcom/venus/venc_ctrls.c | 8 +++++++ drivers/media/v4l2-core/v4l2-ctrls-defs.c | 9 ++++++++ include/uapi/linux/v4l2-controls.h | 5 +++++ 6 files changed, 50 insertions(+), 1 deletion(-)