From patchwork Mon Mar 8 10:52:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 395382 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1600734jai; Mon, 8 Mar 2021 02:53:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwv92yjGY+AxEVz/YBqQj5PglUu9rLVhg66U/nHWSIhEhv4HvJooYaEJyLbu4+0PFN967Bc X-Received: by 2002:aa7:c983:: with SMTP id c3mr21479304edt.185.1615200792968; Mon, 08 Mar 2021 02:53:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615200792; cv=none; d=google.com; s=arc-20160816; b=CFwuv1L0U4PkIUkF0lPOHf2zhEgzNhaX1M8ClXO/3h1cJvyhpQPA/AQQXAH8g4cf1d eWkY4n/W2lQnxF72C/PM9CDQUE3YjNSIhfWMCpt3pygqIxe1eTTNPQL6pFypNgceadxy 18KkaLL6/8hkBSvSza3WbPCJhRsJDH1IrQwkLLbe7DozQ3RpMm0hXSKm5Svu1gpYtPPD ttnYLy+GgfGQPNy63xB1i9sikseZp8DA34nPYVvjocVTMlrPRwInwZPX6r3JuiQyHUJc 4goGvhGjvpurCHuxvXaZzgYoY3obus3qetNW8P5jbA9td3TVj0+VZ3gmvpKqXxAEXwt3 0ZyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mq2bNlOS5Jw/xNPQTz8uc9sf4/Pi/bHXqeAAfOe3FVo=; b=YBciSNM4rcfxtnkiTw+CmtZZUcQ+geuCaCnQ9SkjNNzu8g2LykXlPl7qCQoXWssH+n /tz35HOoaFRCYJhh9TALZQ4eXRim//FuocV7ythibleBI30297SUxnVH/D2yMWM0C+5H +KmlXM5rzBi8dPksaEieM/FXU39u967Kiy5PZCE33HH/tfC4CbPVKkjaR7KNfE7/d/Ft WgA8ca6Jb/2m0+jd/Liz2JUTGu9Gs8SE5xsj5KBbSeijbP9+WHIGk1bxXi+xL8PYw1/d ZYRN/ATb5kWrCVDu3HiBfjqIpzeVzi90d7QsO9m6Nff/Jv/VjzziVnRtRKYddoTkfC2X ALLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="B3/CEv3m"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 a4si6492505ejy.263.2021.03.08.02.53.12; Mon, 08 Mar 2021 02:53:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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="B3/CEv3m"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S231532AbhCHKwk (ORCPT + 16 others); Mon, 8 Mar 2021 05:52:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231539AbhCHKw2 (ORCPT ); Mon, 8 Mar 2021 05:52:28 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C140CC06175F for ; Mon, 8 Mar 2021 02:52:27 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id w9so13958065edc.11 for ; Mon, 08 Mar 2021 02:52:27 -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 :mime-version:content-transfer-encoding; bh=mq2bNlOS5Jw/xNPQTz8uc9sf4/Pi/bHXqeAAfOe3FVo=; b=B3/CEv3mHHdgJCsQtXoMb0eBAr+GG6/Y9BFIPpz9x/hrGMBoJAPJaxrjz5QI3XSL+u E3HUSkYkKbziV10c744WNS7MARvQ/03sK4XdRxPDaZvsr4FsYRt7/raGp2sZbjtDa6Ds YUE8O+1HrAa5mVKu5S4IYFTAj9GLVnMSV2hU2akfGtAqR9BJSyTrb83WE8qNAk75fNZ/ VwJ9UJD6M94l5WndVBKN/RcJRhNsvsHAF+RStQsyWKSTsZEE8tgs2XeDitZUIAqNLaQU StBkw/NlMjRu8SbVtBSLH0VO38ueTWWh7Sx8qWHos6mExIL2t15MQntr3nKLKXu3ncB7 9uzw== 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:mime-version:content-transfer-encoding; bh=mq2bNlOS5Jw/xNPQTz8uc9sf4/Pi/bHXqeAAfOe3FVo=; b=QVSac05Spvygm3ERWRKx0+y6JbS+n9kNpkPeXCRU5DVeMSynPgBXHy0zBb60mlfg1V 2W5ZInU55IVOuC2wnL4wZvBRDUYwi7fe2QrHCHSFbei1NLNYLCaDrUhZQ8eR5dx6nH3/ M7PcYrKXXe4f+WDdl0G5xCrIJOjy7DK/3Xl96s5AYTRKCx/E5/SOPS1fm2mD+k9g7Elk 8XzEKMcHC0TPEWoFyNBKXWqe+2NvgABqGyC6i21jq8I2ZsIDUdzPcx3arHqzCN+UxWUR sb14H73bNANRdnzM7LAVEBTsWt+edq17wjqi7Pl1pA5Tu/Jg9dU6edfO+MiGL2EZSrA0 CJAA== X-Gm-Message-State: AOAM532EDp0NNC3bEodVecz6BAmFOHepW13XbQmPajDTz8TVIG4B1Cke 6fLYzC64fgayzATbWK1mRyLSFg== X-Received: by 2002:a50:81c5:: with SMTP id 63mr22261809ede.356.1615200746576; Mon, 08 Mar 2021 02:52:26 -0800 (PST) Received: from localhost.localdomain (95-43-196-84.ip.btc-net.bg. [95.43.196.84]) by smtp.gmail.com with ESMTPSA id y9sm6386297ejd.110.2021.03.08.02.52.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 02:52:26 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: bryan.odonoghue@linaro.org, Stanimir Varbanov , stable@vger.kernel.org Subject: [PATCH 4/5] venus: venc_ctrls: Change default header mode Date: Mon, 8 Mar 2021 12:52:04 +0200 Message-Id: <20210308105205.445148-5-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210308105205.445148-1-stanimir.varbanov@linaro.org> References: <20210308105205.445148-1-stanimir.varbanov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org It is observed that on Venus v1 the default header-mode is producing a bitstream which is not playble. Change the default header-mode to joined with 1st frame. Fixes: 002c22bd360e ("media: venus: venc: set inband mode property to FW.") Cc: stable@vger.kernel.org # v5.12+ Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/venc_ctrls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/media/platform/qcom/venus/venc_ctrls.c b/drivers/media/platform/qcom/venus/venc_ctrls.c index a52b80055173..abef0037bf55 100644 --- a/drivers/media/platform/qcom/venus/venc_ctrls.c +++ b/drivers/media/platform/qcom/venus/venc_ctrls.c @@ -359,7 +359,7 @@ int venc_ctrl_init(struct venus_inst *inst) V4L2_MPEG_VIDEO_HEADER_MODE_JOINED_WITH_1ST_FRAME, ~((1 << V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE) | (1 << V4L2_MPEG_VIDEO_HEADER_MODE_JOINED_WITH_1ST_FRAME)), - V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE); + V4L2_MPEG_VIDEO_HEADER_MODE_JOINED_WITH_1ST_FRAME); v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MODE,