Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1202618pxb; Wed, 3 Nov 2021 20:40:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW4hDHI3RbPJgqk9DDweajkiDUwyVlULYLizJkcT2QWfw4qm7rUMc7tY9Xgt98YvYApub4 X-Received: by 2002:a05:6e02:160c:: with SMTP id t12mr31403318ilu.308.1635997230534; Wed, 03 Nov 2021 20:40:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635997230; cv=pass; d=google.com; s=arc-20160816; b=iriiqMil6AyQb277KjqKelI4WVvdamCDWZ7Rjmtu9FgYL5LQh8TGvZmj+ADrgnCW8J Yec9ff50H/Yy1brA3PVn9GNsmi/rCiMcmlVzyZOqOaxfh6nypHS+J/A1zl0eBO3krggC plmaH6L7KsJZs/W56fRSYYlfP35hK16Ir3A4hN5d89VpmQwcABrpeae8Mo9W0/a7wuIU TQv0lsvYzlovdLA33woh31y8QMmigpGopcK5oKFFANXvuct7b5eZrUjABJtcgqkd+Myd bdT4PRFPnM1id99tk1JvSLPfwLuVoy2OI17LHdyunCNMk/G2mB9EGyukY3sdNNepM+3U QTRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=BYNY39O8VLKh8ppmxcKEQPNG5TJTHSK2MBe5xAk3SZg=; b=eHe1Ew8O+687FPcpmIbPkPAs0IScQqAF8qVVR/hbXZ7DdU/JVdYlo4k7I23+leajZy atW3/Uk9yIAAj80or4RpxK/gw9yWvUetoKJ+Lx5IzteX0bFRcH0TAGEIRb+BBvxhqFJT ktxyvzfig0Jh5p4IiFVeeHl4GYFLbpZ83LwDKBvipi9BI0Kxiab5/NeqYcKXThNX+0jc PJgswiXoxkoTLNssZmo+d5lhcsVv94qxikXlwTOxQWaneQD5pkHJ7fXcQWlqzGDmfQCd sHvnNZm7q9Tuvq4VpBFGlM4ZNVWD4pMgiUvzzLA+pG1G6CGbYWlpv1ptwrzbNxfyPUuY nEyw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=RYALy8Qt; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x8si7335035ilv.176.2021.11.03.20.40.14; Wed, 03 Nov 2021 20:40:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=RYALy8Qt; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229943AbhKDDlq (ORCPT + 99 others); Wed, 3 Nov 2021 23:41:46 -0400 Received: from mail-dm6nam08on2135.outbound.protection.outlook.com ([40.107.102.135]:15104 "EHLO NAM04-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229893AbhKDDlp (ORCPT ); Wed, 3 Nov 2021 23:41:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aZIXxSVU2V6X0ZgKMbMGIlgNZM9uBNRMTWFh93br3rs6pTh8wZYpmljchUDuuyvwg9e3Jf954Mq0pLAY57hM3TsIgwa0nhHWWVIoZZF/SvtMXfHRb3IsIrC5/cm/WgQGD/WSuvE8W85k2DRw7sJByNBlTFqHqBNH1w6weOcx9WakG8rfJQ189ovM2rQKh3UiH42lGAEsTPwFKc5DkPO9ezy4T0yk8RvyYPQyrUKbQLd3OjjaMWjElyHu4EvPrP8a6gOLE4GoolNVcQos6Ncf0IvyOzcVWqOhuNZ7yW9UOAndtZ7I0xTEpXR7J1A0IjNqfgDmPVsfw/iDZEJYls4xHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=BYNY39O8VLKh8ppmxcKEQPNG5TJTHSK2MBe5xAk3SZg=; b=Y+srRr7y/SYv6Pr2RvUN9QI9C7hdVXRpqx0XYdrUOB+oJQ7ImTBqOAzeGiZya+mKz9J4vHoorNMwiKqtXViISx89pIT8lN03JlDOdoGP0MooBmeqvzRItDvh5AGndQFGXtwQstuFJvVcX4MwU+/+kQWW/B2Qw9BKgQpsq2futJ2VbvTxEjyq1r9arIuY1LlgnAGoo4J5GwfLoz2+PlYfNgSsUJkwtx0pAp86DqM+LmdTCAMLfN4oV9fPl40NmEJ57H6GQCa1p0+8Bk4YwQwt3b05FkgtPjWAa9sF51+ke1rzb1uUZFBWpzlfJhXFIsAEDyaK83jmISYZ7ZTn4Z+eXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=analogixsemi.com; dmarc=pass action=none header.from=analogixsemi.com; dkim=pass header.d=analogixsemi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Analogixsemi.onmicrosoft.com; s=selector2-Analogixsemi-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BYNY39O8VLKh8ppmxcKEQPNG5TJTHSK2MBe5xAk3SZg=; b=RYALy8QtGVDUmRVDDL/Vq7/V+Dxw6F7Yb+xXkdJUJH9ecuVBU9tQMisK8ADT6LpGBRBvtgGIDBoN028PKwIVcIy46FgKqWZDTtfbY4BF3XmRD9GBkIONCrMUoc7Eer4Zjff0o9JaffrzPhWpHS9oTrXrVeP9LLcCSK/V/iCAbDg= Authentication-Results: analogixsemi.com; dkim=none (message not signed) header.d=none;analogixsemi.com; dmarc=none action=none header.from=analogixsemi.com; Received: from BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) by BYAPR04MB4741.namprd04.prod.outlook.com (2603:10b6:a03:12::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11; Thu, 4 Nov 2021 03:39:05 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::6807:22c:61f6:d595]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::6807:22c:61f6:d595%3]) with mapi id 15.20.4669.011; Thu, 4 Nov 2021 03:39:05 +0000 From: Xin Ji To: a.hajda@samsung.com, narmstrong@baylibre.com, dan.carpenter@oracle.com, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, sam@ravnborg.org, pihsun@chromium.org, tzungbi@google.com, maxime@cerno.tech, drinkcat@google.com, hsinyi@chromium.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, bliang@analogixsemi.com, qwen@analogixsemi.com Cc: Xin Ji Subject: [PATCH v12 4/4] drm/bridge: anx7625: add HDMI audio function Date: Thu, 4 Nov 2021 11:38:57 +0800 Message-Id: <20211104033857.2634562-1-xji@analogixsemi.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: HKAPR04CA0009.apcprd04.prod.outlook.com (2603:1096:203:d0::19) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 Received: from anxtwsw-Precision-3640-Tower (60.251.58.79) by HKAPR04CA0009.apcprd04.prod.outlook.com (2603:1096:203:d0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Thu, 4 Nov 2021 03:39:04 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0d10c461-4496-45e1-7f13-08d99f44a6aa X-MS-TrafficTypeDiagnostic: BYAPR04MB4741: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:162; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CE1PVt1010X4t0KBQWaPF1x9RtBhIVlset+4A98IKYPD1SYLvZmXWIATgTQcan4doDdufB6b0EvKdc+Dcxs52I2ZK/NkClMhQbMKDaXkVZVV/h1pY6dWFC3xkK6OmqzcrHNUf/AwYzG4TkhGttAmp9we53VKGXIhFUUENk3Kxcl3+zrN2/FWZf/nVS8ZGd5ZaXNbz/JRh6O8GagenV32uADb5nn+p8KYyjxPQ4Tk9WXCKu4U/3ZHavHs7JQfeGa4nXW5Zjmeoolpg+a0QSmZOQDuobpQUixDcdILV2XL4ltcVu8OCVQdoDwMaZIx9/otdKvMXv4gJyanofjtnp+2mh4917wWzIdWMd1Jt295QCSV8SDpStxhkqV04b41HHjeSFc6jJpLqDbi3g87hq+exGk/nGxRSL2iVU8VKSp7KEoVLKcB0YT3cnLkIjGMO9D5zboV52COf4omkyRFkll10CxK/BNsfqvV8rB2pNNa89dcQ5LXx/4DTMWDPJoGuKirLjgTw+OzGAJbCKovn0lXYMn9yD/KZyirwNbcese4FJdAWsTEF+MmjXL/Nc3rFHQ3vYCRLOKfrkH4xyBLDpOzcHOcepVpFX3S27nD5hY4Tt37hq6gEBmc0Z/w0iPTn+nRcpkze6Mq2NmDFydnenKjjk/gXpAJYIVmyp2hOcKAeam+KG+kgf9xKgQXJhzn9rFFHB9yJNZTMtGK1wVYP/AClFhhhWPQP0qpOeVQXawutUI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR04MB6739.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(4326008)(1076003)(66556008)(8676002)(921005)(8936002)(316002)(6486002)(6496006)(38350700002)(508600001)(66476007)(52116002)(107886003)(36756003)(83380400001)(86362001)(26005)(38100700002)(7416002)(186003)(5660300002)(66946007)(55236004)(956004)(2616005)(6666004)(6636002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?6etj0HtNRw5opDwqurxeGHBEPwK7HNhyRFOLfB+MVMNvKRo1l8BsUrGylvuQ?= =?us-ascii?Q?lsts49ku4nG8ue8XC5MXb6ujPpSvXD6EGN/Fri2IoHKr+JzxfztpilRHT5Ll?= =?us-ascii?Q?PTkwEwneMRnqFDdEgZ0W6p/co0MA6ulVawOQPwusWmT4+942qs/Q8e7v/9tw?= =?us-ascii?Q?Y2RRGZoRlYfWLsHba5/auLpSDDRXco2lXhsurN5CbEzYKNHftSLHZVFYCioX?= =?us-ascii?Q?0OcpkQOzNKD4OU0Z6pw3lXLGx3CnxPm7USrQBjMvDVebTlrGdUg24ud09kv2?= =?us-ascii?Q?7ELvAfayM/X8Sq7f89fGkQ4SF5aV7m+Ki4TafSoB7PaSHPrKVh9Lb6TIKMjF?= =?us-ascii?Q?TjnnO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?us-ascii?Q?16+VUxmRKkmU3m8/3mmhBB0psYJk8LUp36YGamExHezliG12sRF+6dz5YOkT?= =?us-ascii?Q?o+zgxh64g4nOGqUlj1z+XhHXGfMSuHe8rzP659RnTO/39TLdJLvZjhqoQ9t9?= =?us-ascii?Q?jWgZv0wklx/4h+zu0e1LXRHet5xy0TMpul/1A7wbubWyhTKzxA95xnMYE+uv?= =?us-ascii?Q?AEnbK2rhkGPXMyhkAD+mT20/4MP1zzlU9/8q6aC83NnajBYLIPLwdrna4+S/?= =?us-ascii?Q?Yg5uKLFtmD8aiB2Ro17FSNtrEe/7xgm2rDMl2YQ8eTAEITVyYKOmksesyTl3?= =?us-ascii?Q?R1etyMZ5PtWd8BbeMdqzLUS8sv6tDXRpsUShSQA7K6eE1cfXygzYe3lrhmPV?= =?us-ascii?Q?seUzAMQeWLSNtMxuE5WLa7I=3D?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d10c461-4496-45e1-7f13-08d99f44a6aa X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2021 03:39:05.4799 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b099b0b4-f26c-4cf5-9a0f-d5be9acab205 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qMxeJeT474U1MOBQwHTXCI6kPyJxjtM5Zmol3Dx+46KzHsnw2DduQncscaVskTPXnFDNIt/z8OYjnr9Ejrl4oQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB4741 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add audio HDMI codec function support, enable it through device true flag "analogix,audio-enable". Reviewed-by: Robert Foss Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/anx7625.c | 226 ++++++++++++++++++++++ drivers/gpu/drm/bridge/analogix/anx7625.h | 5 + 2 files changed, 231 insertions(+) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c index f7c3386c8929..001fb39d9919 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -33,6 +33,7 @@ #include #include +#include #include