Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp822490imm; Fri, 8 Jun 2018 05:56:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKG/M9Rh5bTsJWLS0Ucz2R6MTjxng4MWMjnTVs2JXO2CRQxC7g95zd4jQNNI+CL0jedv813 X-Received: by 2002:a17:902:6847:: with SMTP id f7-v6mr6635892pln.173.1528462608309; Fri, 08 Jun 2018 05:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528462608; cv=none; d=google.com; s=arc-20160816; b=bv0Nzb8jvCmea5onyEbirVEl+NK9QTpVESQ8DT6pUUqqzc6Rz66asVmlgPz7aPfHAb Njk24UuGkkdqvViBOGVr9lzIjC5uot9f0KOT1eFIgE7sQoTQgli42EQgqF7s/cw3HfCZ EUp1y2Xvm4JEERqIIYAEzaA7tkbBVWr6/NBW5m7EJjCLOJ2GDLWhrktDws9BFBv6Ac0F nwlmKmfLzGuanyKj5CVEZJiKZxU1D5PQGS6WAVXJSSb1Rqk4c3MtOWwj9qJBSzGWaUWS 9AcnU+Cy/1h2yExTgLfHHBKI4ZUue84VWK/DThFoIj525YiPp21icvo0lyEYVSqyt5ew wIrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=rgwhMFeqPU2cHPKoJVFBYpBUce4YVH0kPTyi3IJl3vE=; b=O7lwYRAUW5T8UI7uOPclYDZH0xw9g8IwgKoNnNqThSpRRHcLS3D4IclZ/CcoMgcgj3 QyEBrMI/FQzsR3NGPTgaJJiLqUo/PgmWAwvSPBN/nrS69muajkc4fXxRz0OcLpA4/JTY HYT6cyqX9xb2LzL5EZVF3rzdHUwG2531A1dR2lSKOa66YXvqPiF24PjKWmY/ELrptB1U C4gyu99HtSbHRUZ3jP5pAlN1mvGputgUchEdyByKrLJSbLdHhIM9sawSvM/viIl0Pug/ hHu89NCG8NNWt35Um5Ffp1h9uu5hSY6tebK8fWjOaezISQwf4Jl57AmHnwDIc03yOeHe v4ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CMNuUJOr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id x69-v6si23630279pfa.108.2018.06.08.05.56.33; Fri, 08 Jun 2018 05:56:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CMNuUJOr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1752697AbeFHM4J (ORCPT + 99 others); Fri, 8 Jun 2018 08:56:09 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:40675 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752092AbeFHM4H (ORCPT ); Fri, 8 Jun 2018 08:56:07 -0400 Received: by mail-wr0-f195.google.com with SMTP id l41-v6so13299753wre.7 for ; Fri, 08 Jun 2018 05:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=rgwhMFeqPU2cHPKoJVFBYpBUce4YVH0kPTyi3IJl3vE=; b=CMNuUJOrFr/542bLiC38dGo7EAYJ3ntddiq10/U2xhSWkQSzXJUn0/H95fI1hAzIkF DrqeEnfaXiNxZs3OB4yQama5xHQ0Ffc0KOFBnL8BRH1lKMedRHnaOUmA1HEoU1gTVyT6 anFSCk/acKnt6fLfAYpfT80HHVkgfmLPNFabE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rgwhMFeqPU2cHPKoJVFBYpBUce4YVH0kPTyi3IJl3vE=; b=h7BHE+r6YcfEpH5SmPY0rb5z3QV9bnln56G/Jf38HIqDPhsom99Yh8s0aIqch5wA28 Rn6D9/4ISZKRMJnZVfuNWq9+r+Xk8YXnqJ2lBKam9FDR4VBnon2T5sTlwI7l7/YhDUtc 9rBd5+QT7KixWFBQk9XFe3qkQQyuZQaGzNcVyzQo3Ertgng1hSJ8L8l+PfH/m3T6EaG0 IOP4YDbCZ2duRo2RTF2gxZLFjETmWAWZcd3b4JXAEVi60kRP0cEeXXOFg2XwQs9noOkA RfSzjMuwT7Ca/rlJNPGWdzh7k9gz4EgEvn5kzo4ocr31L88eARphzc8LnpRzEQ4b/dQL 3Baw== X-Gm-Message-State: APt69E2ouJifKtRPGrrTwUiOuc36oqc/OwADn7uG0v+SQh8MwE7Mgrpg J9mXpIwDdJCvd4hlYbauSlWlKT9lfqE= X-Received: by 2002:adf:ea0f:: with SMTP id q15-v6mr5407629wrm.9.1528462566694; Fri, 08 Jun 2018 05:56:06 -0700 (PDT) Received: from [192.168.27.209] ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id v68-v6sm2328214wmd.12.2018.06.08.05.56.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jun 2018 05:56:05 -0700 (PDT) Subject: Re: [PATCH v2 1/2] media: v4l2-ctrl: Add control for VP9 profile To: Hans Verkuil , Keiichi Watanabe , linux-arm-kernel@lists.infradead.org Cc: Mauro Carvalho Chehab , Tiffany Lin , Andrew-CT Chen , Matthias Brugger , Sakari Ailus , Sylwester Nawrocki , Smitha T Murthy , Tom Saeger , Andy Shevchenko , Tomasz Figa , Ricardo Ribalda Delgado , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org References: <20180530071613.125768-1-keiichiw@chromium.org> <20180530071613.125768-2-keiichiw@chromium.org> From: Stanimir Varbanov Message-ID: Date: Fri, 8 Jun 2018 15:56:03 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hans, On 06/08/2018 12:29 PM, Hans Verkuil wrote: > On 05/30/2018 09:16 AM, Keiichi Watanabe wrote: >> Add a new control V4L2_CID_MPEG_VIDEO_VP9_PROFILE for selecting desired >> profile for VP9 encoder and querying for supported profiles by VP9 encoder >> or decoder. >> >> An existing control V4L2_CID_MPEG_VIDEO_VPX_PROFILE cannot be >> used for querying since it is not a menu control but an integer >> control, which cannot return an arbitrary set of supported profiles. >> >> The new control V4L2_CID_MPEG_VIDEO_VP9_PROFILE is a menu control as >> with controls for other codec profiles. (e.g. H264) > > Please ignore my reply to patch 2/2. I looked at this a bit more and what you > should do is to change the type of V4L2_CID_MPEG_VIDEO_VPX_PROFILE to enum. > > All other codec profile controls are all enums, so the fact that VPX_PROFILE > isn't is a bug. Changing the type should not cause any problems since the same > control value is used when you set the control. > > Sylwester: I see that s5p-mfc uses this control, but it is explicitly added > as an integer type control, so the s5p-mfc driver should not be affected by > changing the type of this control. > > Stanimir: this will slightly change the venus driver, but since it is a very > recent driver I think we can get away with changing the core type of the > VPX_PROFILE control. I think that's better than ending up with two controls > that do the same thing. I agree. Actually the changes shouldn't be so much in venus driver. -- regards, Stan