From patchwork Thu Aug 5 11:10:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xin Ji X-Patchwork-Id: 12420991 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E8E1C4338F for ; Thu, 5 Aug 2021 11:10:42 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4531A61108 for ; Thu, 5 Aug 2021 11:10:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4531A61108 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=analogixsemi.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 89CB36E99B; Thu, 5 Aug 2021 11:10:41 +0000 (UTC) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2130.outbound.protection.outlook.com [40.107.220.130]) by gabe.freedesktop.org (Postfix) with ESMTPS id D5A176E99B for ; Thu, 5 Aug 2021 11:10:40 +0000 (UTC) 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-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: RdtUEkWYqaVYNLHgIWaVJ6SHhyq3sQ0erUQiEGKrj8C9OI+Ptnt/pVqyTynhOKNbw0gRyNQNGDCcUKFRXydEvT9wShxDNGK1sCKFMRuUNBh6+3JIalfcoAkj0TcbLalyy2UEoKmWZYyVf9jkmq4tCyf52D6PNSa9cYCoP5sPAW0krsdc5k2syhH/TPmypUV0k1o9BxGRxKEE2SLQcaFYTZK+l6cWbjooi+WShdA3fglzRtBK4UYmfX8t8IoQ1dUnm5SPkeeevPRWY+j7n+xIxVAIdSfHSPPviLCp+H6WD8lHL+1DKLvql3gYszqSHgWshR4BldHy1tiJa1g3IgOM90M6Mo9a2SLZx08JaEvgkqBn3yPoUphed/6wDRWdmRXGMJXoBDGz7wbQzourPwObZpxVBLTUB1lK9sz1OX3FU3KKYDAOiCtiQMeKjcwrvSa+fEBe5x9zNpRNCoMKjVGUBuvMlYA1ZmyEKpLXe3mjW+7x3DcuBzrgnC9AfJ9l7eSOog4X4ieTIk435I1+LX4r1Zvdty9k1PEyoNk/sji2QwscxwL9DCIMF5sjdKhiNy/lQH4RMecfHNEVFpYimnXfai7Bkbu2SJ8n393CWcH44+dKvg1MiYnCN9WZEIzomwM9nqohKZGlPVhIPxgRMs6kkVy+/x+rwNQxNOtAGcFEwOZ8WDNzVPZiA2ks/egw29u/ZAztjl9E3zJ1bZWQHTWdGsx6+ulZ54OAIMdy4t713CVZhEsMXph+WAgDn2j599SmtyiGqtjJZjbsZUBKMRZ4OIOD5/5AU33Y5UWKL73X6besdrlSdE5roX9dwyAMwTBEVuxnFKEvBNNlhNVxZlMFTQ0Ci3Sc7f0fLpVuV0tVZJjUPdxNqu/sq4qqFJ02RpMKQSyFZJuifJcRBd51t9OdkbynUnX1b42kDtmVSxO4MSsqHaFpaKPtHsYbZPMwnElAst/+wEvN1LO9i8tksezKA+SLWtwOZ0pdIXlefCnh3Yg1N/cONkVV0RF5r75qqHRcUS1Vn3zoyfxZ4c99/EORsB/dJ6KeDPMY9PKQ79pz2dm0lkW6VhflR/nlKASGHOeHYfcDMa404wkIANpLz2QnIIc5ZwzkfPEaYM7crqaiZnSV0xtSTsZt9xynPqpN7hb0XgZpKXLaVTbZSgGA+7Ipvi5unZGTC+EIKgL9ssxNg2lv/yqTVU7qVbQOx6QQzdY+dMVEOunn9Nym+kM1A0mMOdl/wWoXzkPgIVWyxtop8PHkgmLTCpI9T61tA2rj8N/RIMtvlv0eQwPNxGwjMU+YdRpRSMFMT5lpQXlMDxFiLrU/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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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