From patchwork Tue Nov 12 02:15:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jackson.lee" X-Patchwork-Id: 13871651 Received: from SEVP216CU002.outbound.protection.outlook.com (mail-koreacentralazon11022128.outbound.protection.outlook.com [40.107.43.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A627020495C; Tue, 12 Nov 2024 02:15:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.43.128 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731377733; cv=fail; b=fVKgQIuYj5fBAhU/dRScpQTEgJPvunSBEGMLnzZmiPqC9CHtA01ErmiVrHkGTTdEGBu9ddhkdWgI4ss/GECSMyhs4SYgL6Ub9vMEfxcfK4ze5JhkujChA+IjfRebI2jhXAAUdnCMoztQCjQ3ZCtMnpqs5oUilyizkQ+LRJVukEE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731377733; c=relaxed/simple; bh=6Jo/sF+cOaN5tzi7stLcpLUnnPM1GRltVyH0XACHYdM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=E0Rb0jW5yMerhEc6XQbyEQyjr2Z3BZipsivpVA7tdydSyocTPB5NbtGed4BxpYTlRWuVLm32Y9b+TMSMdbTl5DGrlVNGMtY7oWQTBDty8P6L9HYkwPhBIdf4KqxRj3qwYDWtFhH2DCFlpla5OYwmDwe4qzN5c13viUb0hEtNTQY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com; spf=fail smtp.mailfrom=chipsnmedia.com; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b=X9HGrINd; arc=fail smtp.client-ip=40.107.43.128 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=chipsnmedia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b="X9HGrINd" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JLtrbcnwT1wn2xRQb9tdESaDPFGknwW2RROFyAJFA5+clhr0SovNxn/FviEQD1D25uxFTMAae5RqPaBitvF1gbXYkLevNSeJftaWYLycCjeMAO2YeqeCRG0eKDJBaqFEEq/pzFGO8Q+LvB3JCOXvXLXx+XOB2yXd4BshcxVI2OHJlsvHh7TfM+xm4Wa2hc9toNUlDpx/nEKNL6R9jD/Gp3mwfB/HU2Vyof+S24zO+/2CTuxzSSNLglDx13t7kBUf4XpAdRaKzNEVBAjoc4nE2ngVazLccgMrXg8+RuIX7XjhvnhaFVQEC3Z0S5k6aNJhpSN5xPS9CNZyCVHxTy4mCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PjPtAm/hRnUMCrkhdL3i4MNXAHVNv8jzN/M99OmObOE=; b=XBxUf0KREylxTLXFdVaCg6zan6Teju/orzXujnPXa8jSoUXwlAHO5tBYMrpq8hdjm6+5ZaHs29DAqJV153kRLCs/ETjLWf/9OCecRwamXfTpdTYFZ59HtHKknzU2L9vGHBa5SajSbuGxmW24HuEwUfYqZ7GvHy/DC2H84xtbb0Tnc4kHmdAS693AWPJTVNp/E2kqNRg6rzM+vNVx00h6aZVjcmGjpJ+j5mb1jUiLXMd2KwC6JRhztBTX8ST5glbg6vpL2HVA8Gh92lqzBKVFj4cFfQDkF3WvpPN+zbYHozC+j1VQCJ/i6lJgl5NT9iLqJW2+EJdODXRjY4K5apWRzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=chipsnmedia.com; dmarc=pass action=none header.from=chipsnmedia.com; dkim=pass header.d=chipsnmedia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chipsnmedia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PjPtAm/hRnUMCrkhdL3i4MNXAHVNv8jzN/M99OmObOE=; b=X9HGrINdbuiTzZSCEYrqVRvdQHUpTJRtOLAGwSV9qv7e5HGugRvRmsQMMWW6eDriZTtpwyFiWUnm0rukhpeofrfN15iHlQWbeduF5Zu66JtPLV0740lLf3cplespOvKUqteBWS2vOGCBGyexj9eIT9Eg8Y6z5CfbTRuXlh0TIXY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=chipsnmedia.com; Received: from SE1P216MB1303.KORP216.PROD.OUTLOOK.COM (2603:1096:101:15::5) by SE2P216MB1900.KORP216.PROD.OUTLOOK.COM (2603:1096:101:f8::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.29; Tue, 12 Nov 2024 02:15:25 +0000 Received: from SE1P216MB1303.KORP216.PROD.OUTLOOK.COM ([fe80::b711:5ab1:b5a4:d01b]) by SE1P216MB1303.KORP216.PROD.OUTLOOK.COM ([fe80::b711:5ab1:b5a4:d01b%6]) with mapi id 15.20.8137.027; Tue, 12 Nov 2024 02:15:25 +0000 From: "Jackson.lee" To: mchehab@kernel.org, nicolas@ndufresne.ca, sebastian.fricke@collabora.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, hverkuil@xs4all.nl, nas.chung@chipsnmedia.com, lafley.kim@chipsnmedia.com, b-brnich@ti.com, jackson.lee@chipsnmedia.com Subject: [PATCH v0 1/6] media: chips-media: wave5: Fix to display gray color on screen Date: Tue, 12 Nov 2024 11:15:12 +0900 Message-Id: <20241112021517.121-2-jackson.lee@chipsnmedia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241112021517.121-1-jackson.lee@chipsnmedia.com> References: <20241112021517.121-1-jackson.lee@chipsnmedia.com> X-ClientProxiedBy: SE2P216CA0042.KORP216.PROD.OUTLOOK.COM (2603:1096:101:116::7) To SE1P216MB1303.KORP216.PROD.OUTLOOK.COM (2603:1096:101:15::5) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SE1P216MB1303:EE_|SE2P216MB1900:EE_ X-MS-Office365-Filtering-Correlation-Id: ed2d9298-7fc3-4edc-cbee-08dd02bfdee2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: sqS+Ve+BF2LVE9NLProHdqR/t/dJdRrvxzVCYLPefHTW9OjwszWkkgAUvEmh3LOMfg8Blm715cjaHc8p5Z+/M2o55INlQI3BF2UNUXpoLtpG8ghTpLHr8TOqIsmQRlmEw3p3JN/JFVZZLg1AXU6BOTMqY5kLcWEWfKHc7WmugRwlgn+eFGtsbgfWnJyI7TZ69dqBMTdcTHA9r3mTGOe9KhcHOskeiv0gO7cPj2nGpIuISopmVByegx4virt+wpslFoDvxQCsZQNnT2HsRmmxqcY6+VY3JdjBLxXujkqCQmarrNR+1k2fkce7wnbdwwKicw3Xzj6PakkTjQogNyqxCZNUARKuPVu+8dGwW4DMDudec7QEWdRO3ot55+3Nz8LPNvFSTpITdA5dtYQNOT7MB6vlshgSqZeNcgiTCFgzKUnG7QeReqU696MgCIwp8a40hcI69lv18n0fixuYljoZUn+fhu+bFsDewIZ2LTpg/vp49aipJjwfn6i0resF8TTDOl+MR+Uw3goXDO6Z1R17fY/ptFPnMdw7L4bYZmRONCDht5I8xo/VVIUmnfZB4zu8Et2QmzByyJkDJ53zVFXCxgdL97+uXpvEQBoZ3OBqk1p7Mw9Xog3qKr7ywIsc1inPUI0IPGUIeXLrMAZfyONuXJ0EIVB3rZ1XqqXs0587+UnMSIkdvuQK6vmVaocLviK3p6b5myygxijPKdXCTt54NRAUWzNDXD9bUJ80UKGHb4Z/VcbDHuX1km4j//aI/4UfEOUXQ3D/ZJITpl083UVxyshgVso3HZYs4xeWySi+XR5fMXqLkOzO1390tGH3XaPiHL4rvMRJdtAxa8thTvUUVveTbuYxV3ST4F2WTpyoGw6UfZ1LaT9pAZkUQyAQtt3uAMbF2+7e5HbXOQQmV3mm1RHyqBXc6zOsxdMP6fCV8aMfhk5UQpoCcMQQRQ7shY+lktX8dM5uyliqwj0ttOCzk2fM1CGonk9L3qg8nz4NuVwHcBnAIoj0rCVtP306GLkOAksxD+Fy7X/5PUwPshOh8GITG98kTVkNPty8SYF223+7TYY+0fn/QzEGiFKfTHZcjpz1vgFiz/vHa6n4h7S+BC7LCMce2IAYlhNAnCyOIGXufPwwgNy2+wftxaAwh3Xwzpk3gRr6D+9+H/DG7Ja1flCRwVNi9fr2m+zTSO0BRekoLcQDH/R+PoKZEGc4K8lUbpF8KEaBJRTzztNs+gFh2wzbTlbumiNtjndc3wcXlyBx+KyyHkaM0EAveoaxdtqs6+BOgpORBEnRi2pF1f7lZaCuFhnJUNY7ccSLGnWhI0rcfUWY2vFNrf+TD8LAbvyUwbdWS/0lVoiuZP819Y65uIGZ12uTzH/P6XYpcpUx0x0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SE1P216MB1303.KORP216.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(52116014)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS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eUkFCbv5iB2bYc3bz6G9f89XhWlzQhjQ+pGGXiz/pNnIQiVh7ACZUC0A//qAx+DxR+cfiSiR7ueAGJGHN3eA9LQUmGEMj2D66URQ34P785Kxqr6uhTNecLPCLjLorYziUIBKcytQCfSWIPPfplJOIj39qJfUe17NvoXPAVrxe/zdUWIOScVqZg1tiieruYihQg9Bko18kPn+fIMIto16xWi8moRl5umbcnv1lyJBqI36dotIc7l1vwKloUCdGqBtfQN4mNkN3A7tGfL7jvwlhmvgyuBZo4Ba9gPjSPEgGAfJj5+jahMAHK44Zc//AplDsSmxtn80WvXtHiuZZmM42lqmYpbNDiergqI0fm3Fa+bwH8xdGZoYT1HtBjEqI70caQUtOcnogzJWDb+d5w8wk+npPoTVhyeYA3RvfQha60AVDOrsSQS+yP4DM0aBZUT3isnp5pB2NT45GqKrwalqodZJHAyFS4BOAn5LfYkPzBNLdY0k+0xaMJLTefEcGWXRConpttF6oM9Z6YQeMrQIYWeqw/ABH375lxsmc1lFdCh3Y2WAJh0IrLBBC2VcvQh+HnQ3ZJbqX6JB8J2SsLQ== X-OriginatorOrg: chipsnmedia.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed2d9298-7fc3-4edc-cbee-08dd02bfdee2 X-MS-Exchange-CrossTenant-AuthSource: SE1P216MB1303.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Nov 2024 02:15:25.8874 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4d70c8e9-142b-4389-b7f2-fa8a3c68c467 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: El3UKR5Xqv/RLV4/H1k3brrzYV7uC9rdGnEVwcl/eKXlfH5JC1n2jU3Lv2X0WpPwFKUqbawlZ+i4Q9iaOgs7eDBey2CBsHNDx0QL3vCJ/y0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SE2P216MB1900 When a decoder instance is created, W5_CMD_ERR_CONCEAL register should be initialized to 0. If not set to 0, gray color can occasionally be displayed on screen while decoding. Signed-off-by: Jackson.lee Signed-off-by: Nas Chung --- drivers/media/platform/chips-media/wave5/wave5-hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/chips-media/wave5/wave5-hw.c b/drivers/media/platform/chips-media/wave5/wave5-hw.c index c8a905994109..d94cf84c3ee5 100644 --- a/drivers/media/platform/chips-media/wave5/wave5-hw.c +++ b/drivers/media/platform/chips-media/wave5/wave5-hw.c @@ -585,7 +585,7 @@ int wave5_vpu_build_up_dec_param(struct vpu_instance *inst, vpu_write_reg(inst->dev, W5_CMD_NUM_CQ_DEPTH_M1, WAVE521_COMMAND_QUEUE_DEPTH - 1); } - + vpu_write_reg(inst->dev, W5_CMD_ERR_CONCEAL, 0); ret = send_firmware_command(inst, W5_CREATE_INSTANCE, true, NULL, NULL); if (ret) { wave5_vdi_free_dma_memory(vpu_dev, &p_dec_info->vb_work);