Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp555573pxt; Thu, 5 Aug 2021 06:18:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxF6UjtT8UY02AtEZO/S9V8LU1DF1/qQaxFMiQOB+gWx09BRnmp/6Fi2fDoCWMp5+I/GlQJ X-Received: by 2002:a17:906:c20d:: with SMTP id d13mr4647571ejz.259.1628169529764; Thu, 05 Aug 2021 06:18:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628169529; cv=pass; d=google.com; s=arc-20160816; b=M3xaqCSCCeCi9Czm288q2+LhISICyTANQtz9djMbmcS4r2FjnNM5kmxD1Db73n0fMR 0DrnUI8NctqiM2kZdUAPAyJU69HuMdWLnDa3pKMLsj180gk/bVewvwM8NIxhsOfveMI7 QT9XY0MDYb8Dggt8FU0516OnVPg25LGkgCjdN3PneLtwj4BlfAOCzW4Jdz6a0YzVEU5N +3DY/A8/7+MalOUZlKvndIZVvf12JGLveeUNWQpWYFBYbn1zLM4Yn/vVJsCa27aznHOj aYxwJdZ9lzG0jOwF+Z2yAZ9V6sjJ+lsajR76HIrfxHUtKerDBwEmQ39QUPJ4zZlMd1gP yhjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OzAKmazeTdRPPEd+gIWSZKEAL5bDvhh4oRnNWRugv6c=; b=jFkmKbY4FvgFHu087y1wtu78kPZXsj2OJ9+wZCmB4G2AomvxQI8NbjtCWEnJkG2pAz BWP1bdJg5lK0vFhrWdTxSs6hLHbm4/o1+FmRtP2lZgbkhXNRnQWnyY9/NV6+p/jJezL8 FJZhNFkHnbOssSujMH7YdmeM2YQxI3/46fcCCwvuS4TLuT6hcnMw9FpazacdiTJv2Kt1 iqRSR1Ly4b9aRmZkUEfL/I6PLshK32i9J7iNTDaQHUSBe2sOlU2yoD/MtdB8YmPDpPER JcKGOKjFHwjGW2VKjUBpB8sy0Z/kl0c72eChjwjUv66Yuv1XfnjJ5M1ZPKtaRks0RvKS JcUQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=WlGLbsPN; 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 s1si5428371ejv.457.2021.08.05.06.18.23; Thu, 05 Aug 2021 06:18:49 -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=WlGLbsPN; 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 S240801AbhHELKz (ORCPT + 99 others); Thu, 5 Aug 2021 07:10:55 -0400 Received: from mail-co1nam11on2133.outbound.protection.outlook.com ([40.107.220.133]:28801 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240623AbhHELKy (ORCPT ); Thu, 5 Aug 2021 07:10:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fcbTo9vx3OFMIS/SBDFVOvLW7Fkfg4w4owwskClnFledABUdNmpcvHwYMj5tuhYlmi5KrQsMoxoS5hr+sESNtf/cG2d7m+S1uE6czvsHQdEdZooNfnlP0lci69xLnq2iz1M7+hnJTUs4u4AtwylfTH5M0N8CzJywHTRMjU0+mOCrPavmREWY1K/X+Lmk28Mlpcp/ynOccDN/My1Mkg8yXt+WVZssriBSkUycV2z8c5DXKWgQu8JBD6M309PVZiM5J6io9J1LqSjOoPsDftM07pN2Y4XVD939/MC4EYHysSQW1Ot0B3OWKN3lIcRey4rw3gIVU6+bqq9jwZbREfY+lw== 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-SenderADCheck; bh=OzAKmazeTdRPPEd+gIWSZKEAL5bDvhh4oRnNWRugv6c=; b=dRvI+AF5gzRaa2xTvKfICGN0DDB4mGGZY572y63PrtorR5GPmTB8vbiMTKPwuSFDDH8cwfhOyT+vVB/YuWjA9zlkfzPk3ft+WjT8nFcb646Wq7D7wyXAGgELSJuOOUwMm11pUC5tpsQaYHzZuxbyRkgNhk9JYFEweLvugNr24fxJCVbHPfp9J8emuFn+LxQxF74bABXjvneaqnELD0gjKi44mZL9QR6rIouQ2vVRIkDhf0iLTMiWxxMLjw6AfdqMPs6a6zHHtp6rXlZuwKoXj9bBJszVqTQU7a4twmUBP1k1U8o2v8J/ia4HER6A8U3APRgZvy2ud/B2NOo7sJOmxg== 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=OzAKmazeTdRPPEd+gIWSZKEAL5bDvhh4oRnNWRugv6c=; b=WlGLbsPN/gXJAPFMYIy3JzawM5XVH6jSbdHz3bvMJSVBdzFBC6hXshFm22pYgPaPfofghOmeFps799Oej5/c/602WgYCBJzFi8E54mfcOMXFxLoURQhx8HSegPDuEPBNdpXCPkjPejFEMHR6EhJpvmfTAs7RlJZR2mtuJbvYkT4= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none;driverdev.osuosl.org; dmarc=none action=none header.from=analogixsemi.com; Received: from BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) by BYAPR04MB4901.namprd04.prod.outlook.com (2603:10b6:a03:4f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.24; Thu, 5 Aug 2021 11:10:39 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::5c0e:fbe5:2bd6:ec6]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::5c0e:fbe5:2bd6:ec6%3]) with mapi id 15.20.4394.018; Thu, 5 Aug 2021 11:10:39 +0000 Date: Thu, 5 Aug 2021 19:10:32 +0800 From: Xin Ji To: Robert Foss , Nicolas Boichat , Andrzej Hajda Cc: Neil Armstrong , Laurent Pinchart , Jonas Karlman , Dan Carpenter , David Airlie , Daniel Vetter , Boris Brezillon , Sam Ravnborg , Hsin-Yi Wang , Torsten Duwe , Vasily Khoruzhick , Marek Szyprowski , Sheng Pan , Bernie Liang , Zhen Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org Subject: [PATCH v11 4/4] drm/bridge: anx7625: add HDMI audio function Message-ID: <7dc405471da4771641d2942960d364a588bb4395.1628161369.git.xji@analogixsemi.com> References: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: HK2PR0401CA0013.apcprd04.prod.outlook.com (2603:1096:202:2::23) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from anxtwsw-Precision-3640-Tower (60.251.58.79) by HK2PR0401CA0013.apcprd04.prod.outlook.com (2603:1096:202:2::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17 via Frontend Transport; Thu, 5 Aug 2021 11:10:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1aeac91-d848-43fa-ea55-08d95801a7f4 X-MS-TrafficTypeDiagnostic: BYAPR04MB4901: X-MS-Exchange-Transport-Forked: True 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: cldcB8N8Azq8O9ZiFnDvTst1pCthN2ISg/VtkCSN2pDg/rACUSdo5Z4xs9lPdBJTo/TVCqjkceHwIvjjTF76RAMSY9bs8UKkWLKl9Og3z8QP8liaSpx6TuBPYY2ImwHpHqlIw5PQ+lVUPeukyjvMNgRszl8urUgJBSUKSwYZrRMGzXrUmVBxl8+VCsEnQXTXOjBoPkeOLz4x3fc2WS12F8JPUILlMAkvmpQ7Xg54ka8aD87ons6ZMQDfgukqLan4AGn0d4uOm7GttWyzm6ddq5QapK6sFzg0EUOAp7748IzW23hdsOzCFA8rXqZP2ZmrgJBwQugyfjO5+L2icBvhEfMu4jsXAhJ0nsapicsrhhqTwrJsGp3aDqPhbzGHoWiahCUB0EOXVKDzcaEBws9MuhwxT+MyXCwlzFtbLYg6dgZkGHBslPH32T/RDzKEmwOBv18Rt7MnpmoUK0utj0B0FW83bpepG1thtiMVK+G33sEyFhRfXc6FzxDfBFr3yFRQIcdAtHYn5Sa4h1Gu8crsHa7cZv1jGGxrPRz9LZrnOc5Qc8jA5cf4Uc/Syexr9wDw+SY9X+4YbfMd48OFzlEydeoWQHUDzKOYpLopayGlDvABmOSNS6BWec+dzFQgBB2S4q3739EkakgIluUeecbDqNqBRnInz192thtGpGZiXoFRDRWV4a92FPS4wDvYW5F9a1YUSWpZRzQ3nHO7dYs16g== 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:(346002)(136003)(376002)(396003)(366004)(39850400004)(86362001)(4326008)(36756003)(2616005)(26005)(55236004)(6486002)(956004)(38100700002)(38350700002)(52116002)(83380400001)(6496006)(54906003)(8676002)(2906002)(8936002)(5660300002)(316002)(66556008)(7416002)(6666004)(478600001)(186003)(66476007)(110136005)(66946007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?RdtUEkWYqaVYNLHgIWaVJ6SHhyq3sQ0erUQiEGKrj8C9OI+Ptnt/pVqyTynh?= =?us-ascii?Q?OKNbw0gRyNQNGDCcUKFRXydEvT9wShxDNGK1sCKFMRuUNBh6+3JIalfcoAkj?= =?us-ascii?Q?0TcbLalyy2UEoKmWZYyVf9jkmq4tCyf52D6PNSa9cYCoP5sPAW0krsdc5k2s?= =?us-ascii?Q?yhH/TPmypUV0k1o9BxGRxKEE2SLQcaFYTZK+l6cWbjooi+WShdA3fglzRtBK?= =?us-ascii?Q?4UYmfX8t8IoQ1dUnm5SPkeeevPRWY+j7n+xIxVAIdSfHSPPviLCp+H6WD8lH?= =?us-ascii?Q?L+1DKLvql3gYszqSHgWshR4BldHy1tiJa1g3IgOM90M6Mo9a2SLZx08JaEvg?= =?us-ascii?Q?kqBn3yPoUphed/6wDRWdmRXGMJXoBDGz7wbQzourPwObZpxVBLTUB1lK9sz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N/RIMtvlv0eQwPNxGwjMU+YdRpRSMFMT5lpQXlMDxFi?= =?us-ascii?Q?LrU/0QesOB6SJ+HCYxMs5req?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: c1aeac91-d848-43fa-ea55-08d95801a7f4 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 11:10:38.7724 (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: TE+XQv0FjEO3mW9jAQeD5fOnkwz7GpMzdwk6GaLWx/qWouHW2LuX71UTHErxUDzJ5HpzoQDeOZTeheGPyyK+zQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB4901 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 a5a20cc0f3e0..44ab0893f600 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