Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp398108imm; Thu, 31 May 2018 02:28:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKOoXTEfzVMgiBKLXf6CAWMEFZEW999bqtSvPGH+wgzp/1iQGuYZHdOPpXFoW2x3cvqOgOo X-Received: by 2002:a17:902:1e4:: with SMTP id b91-v6mr6243458plb.155.1527758911811; Thu, 31 May 2018 02:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527758911; cv=none; d=google.com; s=arc-20160816; b=KVrAXOnoUf4fTnrK9fBAQCPO4y3KQ2AA8M92ChxiKxDpG99b54yEz/mJUo1vphsPyl 6GpKdz5SVHOeb7ii+nFRClMn0xgds7jTFbBqPtPyssg2slbpvy4X1G1ISp1HU6pajqj9 6qvXH7SqW3EL/hCWVDTwPOnG4Kfg5sRaSPTQy0H8aiiTpVPALNIouc0I2KWxQ2Xe3Iei dYavdeaTF0a+K4VAn12Iii6c7NC+mm2UyqC5Wjr7OGtX78TBfJIbtXLkaUlP/X/gWm1U ii8eWl1Y+PbyjxOUc9rLZi6b5L/B0fPATxyyxeBDh1g4MkKMfW9ChJaVcxPHe1UqTJv3 xuzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=Tp6maCepgehIl3GKT4go48Yg0Yv3zeC0PF5WkEn+55M=; b=HjENjmCOz8M0cFk+cfWGGZbR6oLAxgekukSADLo5nv0WiVQlVQdobcqmeYxazPo9nO BOs1BinIhXoAD4EuSivdbzgx3+AQQY8kWA9DU43YAciI1s1eUhCbjC8B8NwBLPhLryE7 Gszsjp2p8fDV3nhNWLRt49qsBFKQWFS1pjxQPDJeuLTM1b+PMoKudMxUFLOq3qCfZ1g5 Y5cu0FQbxkcy/OfGSQmgHAXsnuYw7OYm3UvbH6dnxDtFyCyI8jbwIGpgC6dQEbC/4LUx CE+Pk55TJN3kzN8qWp2TcK/noUOk7gFDjo+wbuqsU60FdfnBCIsV8x6NGOw75tDXbQt/ cTuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fvt69B/r; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6-v6si37235586plq.382.2018.05.31.02.28.17; Thu, 31 May 2018 02:28:31 -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=@chromium.org header.s=google header.b=fvt69B/r; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754312AbeEaJ1X (ORCPT + 99 others); Thu, 31 May 2018 05:27:23 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:34029 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754296AbeEaJ1V (ORCPT ); Thu, 31 May 2018 05:27:21 -0400 Received: by mail-ua0-f193.google.com with SMTP id 74-v6so4115202uav.1 for ; Thu, 31 May 2018 02:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Tp6maCepgehIl3GKT4go48Yg0Yv3zeC0PF5WkEn+55M=; b=fvt69B/rIsk492Z6pWv/Z6sbTC+UfD8OVJ3ZOg9eQSrCYe2b0HcEBiUYWPSUN0azUt x0L7v7K6Legdq6S3hjMzd+T5WVf7TL7y0kg7a38sinixPdNi7VKJhXGvoNeOEoqtNStu RDIP11OlWxfUvUUhc0TYVVDCuXCQJxAuZawO8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Tp6maCepgehIl3GKT4go48Yg0Yv3zeC0PF5WkEn+55M=; b=CzXWISnn3DHUx+kGBI4xBcznNLlj851lC/u0v7ne36CDmoKEaeTkf9MC2daNKWiU/0 f37vzWJ9UaxG+hh7Q5z/lnf2yPu82543UekL0+I8f+FHPhbQRuY5raZEMIb42ILUBKyJ AO9xtERFyLowhwwik/K57JWVGrlcuH+pOicoEPjwrAZGMuhnqeHlKyRiUU/wQZ5OCmcm RhZRgtLTHRcRG1uWoUXXihqA1dXn48T2+9uklEWJxdmUgxQBzLt+DpkOk/DSOWwRK/8I mq7GOOyOhulIhYNzA6im8bKl62DC6mm27LGcLIyIdtjq5m/DR1kAobTrYw4UkNZz4/E9 bwmQ== X-Gm-Message-State: APt69E3Ikrw2SmcY09/GP72zLmwvkZHsJxL5W5dH6VzYZf2bgSbadEOi wYpbQTqCyO8clcKOJw4eab86NuERKiI= X-Received: by 2002:ab0:3090:: with SMTP id h16-v6mr854500ual.69.1527758840541; Thu, 31 May 2018 02:27:20 -0700 (PDT) Received: from mail-ua0-f176.google.com (mail-ua0-f176.google.com. [209.85.217.176]) by smtp.gmail.com with ESMTPSA id 72-v6sm14288670vko.20.2018.05.31.02.27.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 02:27:19 -0700 (PDT) Received: by mail-ua0-f176.google.com with SMTP id c23-v6so8011510uan.3 for ; Thu, 31 May 2018 02:27:19 -0700 (PDT) X-Received: by 2002:ab0:3196:: with SMTP id d22-v6mr4059136uan.51.1527758838960; Thu, 31 May 2018 02:27:18 -0700 (PDT) MIME-Version: 1.0 References: <20180515075859.17217-1-stanimir.varbanov@linaro.org> <20180515075859.17217-26-stanimir.varbanov@linaro.org> In-Reply-To: <20180515075859.17217-26-stanimir.varbanov@linaro.org> From: Tomasz Figa Date: Thu, 31 May 2018 18:27:07 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 25/29] venus: vdec: new function for output configuration To: Stanimir Varbanov Cc: Mauro Carvalho Chehab , Hans Verkuil , Linux Media Mailing List , Linux Kernel Mailing List , linux-arm-msm , vgarodia@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 15, 2018 at 5:01 PM Stanimir Varbanov wrote: > > Make a new function vdec_output_conf() for decoder output > configuration. vdec_output_conf() will set properties via > HFI interface related to the output configuration, and > keep vdec_set_properties() which will set properties > related to decoding parameters. > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/platform/qcom/venus/vdec.c | 35 ++++++++++++++++++-------------- > 1 file changed, 20 insertions(+), 15 deletions(-) > > diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c > index 5a5e3e2fece4..3a699af0ab58 100644 > --- a/drivers/media/platform/qcom/venus/vdec.c > +++ b/drivers/media/platform/qcom/venus/vdec.c > @@ -545,6 +545,23 @@ static const struct v4l2_ioctl_ops vdec_ioctl_ops = { > static int vdec_set_properties(struct venus_inst *inst) > { > struct vdec_controls *ctr = &inst->controls.dec; > + struct hfi_enable en = { .enable = 1 }; > + u32 ptype; > + int ret; > + > + if (ctr->post_loop_deb_mode) { > + ptype = HFI_PROPERTY_CONFIG_VDEC_POST_LOOP_DEBLOCKER; > + en.enable = 1; en.enable was already set to 1 in the definition. Best regards, Tomasz