From patchwork Mon Mar 7 14:10:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alifer Moraes X-Patchwork-Id: 548969 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 971FFC433F5 for ; Mon, 7 Mar 2022 14:11:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235067AbiCGOMv (ORCPT ); Mon, 7 Mar 2022 09:12:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236707AbiCGOMu (ORCPT ); Mon, 7 Mar 2022 09:12:50 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80071.outbound.protection.outlook.com [40.107.8.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A83778E199; Mon, 7 Mar 2022 06:11:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AW51pPoLH1W5WjCyKpeY5bVwgY5hbh2xBqDXlliDWhrji/ZcVghF9MZn7qQ40vJ55skrN9oqZ5aJcerop/13dLQh/tVKMUJ18LLFONqzhhdTd1qb896aCg64E/6vlq2eljHBcJ+IXbYX1Ig+RfHmHuahQijpvb681ypmanwdrU+onn8OlKRmpChskpLKc8aOhNhHt2ADmMFBoIZ5YxMerA8vHVl3mvVNTkq/3zL2JyR8VhIsMzL3qmdYbxhoGsua1KNigTrEd0CuXRQqrCruYTG+MY49jwJ14y8OAxqR5l3L1a2pk/dpoVVjmMk7PxbtASJPVNHcGrG4G4U09QFaQg== 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=gTo9JM99VEZ7Y+VSS08hQnApCibgyB6YlAEYwOWjf5s=; b=nqSTGqla1+B6wES5Hq6uyDGFJXCzI34+GiDinh9WHDYu13w4fRaIj0rAn3iBuIbzLkw2lvXOqpuX4fGDInuAEDRH0nEx6iu1RDyXKX38Irv7BM0LyQW3wdbfyYwMBL90we1T9Sgbn/URm1+pF7u8DCs554sM39SfC3VJSqEm/PsPUfhEuLI5WlfBBf38NvMBiVQYmwoBAmNVzrkxB2Vqc5dI33PcxV898wZrXXx6ZjyVMqZz34norcjyi40cVgysBsZ2NfUqlRC+vDaSHwFCSGXq++JrZWtaKt/rYY6b8u9DW8IzOPXNeP8Q262WhNIm25AqWQtjLOb3WDfe1TRvnw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=variscite.com; dmarc=pass action=none header.from=variscite.com; dkim=pass header.d=variscite.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=variscite.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gTo9JM99VEZ7Y+VSS08hQnApCibgyB6YlAEYwOWjf5s=; b=glNpAKJKOOgzkJf8W7ZXfCjT8kVycSy5T907laXp1uxipbf6eyI2mKnr2zlaSEtskCYwzzFUl8oOTzMQfEoMPJ5UkdAFKSJkKqNsazkOdgLtMjUTz0oAVgE6xIWQq+Z1Z+SgCKCwtPzQvHF/aH8TsAPXbgvqiYZT1XI9AQOe2Hu904YjBk5MJl1A2GIXuJxThRko7+TtKV3cyjyPQAMFrz9nR+9GFXl4+gDpL800aYRJXIFMRT/kuc5kdFSNgnP7j2bKcU4B79FLuiWFK6mCEAeTUVvbZ5VqeGp21s7WBnoDfFwYnZXwHUIOZqwO489OetDJFsz4Zf6sftoNQPxaiQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=variscite.com; Received: from AM9PR08MB6999.eurprd08.prod.outlook.com (2603:10a6:20b:41a::7) by AM6PR08MB5219.eurprd08.prod.outlook.com (2603:10a6:20b:ce::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Mon, 7 Mar 2022 14:11:50 +0000 Received: from AM9PR08MB6999.eurprd08.prod.outlook.com ([fe80::784c:5631:d38f:9a63]) by AM9PR08MB6999.eurprd08.prod.outlook.com ([fe80::784c:5631:d38f:9a63%6]) with mapi id 15.20.5038.027; Mon, 7 Mar 2022 14:11:50 +0000 From: Alifer Moraes To: linux-kernel@vger.kernel.org Cc: alsa-devel@alsa-project.org, broonie@kernel.org, devicetree@vger.kernel.org, eran.m@variscite.com, festevam@gmail.com, lgirdwood@gmail.com, linuxppc-dev@lists.ozlabs.org, nicoleotsuka@gmail.com, patches@opensource.cirrus.com, perex@perex.cz, pierluigi.p@variscite.com, robh+dt@kernel.org, shengjiu.wang@gmail.com, tiwai@suse.com, Xiubo.Lee@gmail.com, Alifer Moraes Subject: [PATCH 2/4] ASoC: bindings: fsl-asoc-card: Add compatible string for wm8904 Date: Mon, 7 Mar 2022 11:10:39 -0300 Message-Id: <20220307141041.27538-2-alifer.m@variscite.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220307141041.27538-1-alifer.m@variscite.com> References: <20220307141041.27538-1-alifer.m@variscite.com> X-ClientProxiedBy: CP2PR80CA0081.lamprd80.prod.outlook.com (2603:10d6:102:14::19) To AM9PR08MB6999.eurprd08.prod.outlook.com (2603:10a6:20b:41a::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 202a84cc-0a15-4e96-a6f0-08da00446c26 X-MS-TrafficTypeDiagnostic: AM6PR08MB5219:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IPfEPDU8e/6+2n2XAMBoP444D0woy8+/C1au4AwflG56D18lSV4V2KOFLKkbps5I4ksLZ1HRIsdk2/s9i1Mz7Kxe3FaJyZoGrxQ93mUnzViTkRH1eTBK6h2Qk7YK+8a5+quaAY50eVpFx9DbztdaPhbGiP143B4TnJLmXd6S/SpPt0FcOE3wsfDk5sk4rGC/DSS6RKpPTsbkYI//j4hJCiUYcBhryTz3C1RHcNUrgq4O6yvcUrsJ0FQS9ehO76NBKHV2JSTfktkzeIENXHSIiSh1k6BxMXj0+NbR7MHbzspFWYkjXGGxvM0KoEqDdqG6Gbafh+qrTCJfaAA5Qsg/FoP2/S2C9dNLnWXbHyJ6n7Yrua0y7epqvThahAsdHWDib6uXrUPgw/G3ZCo7Qq2Ve7gLm+H2DnG14/wQ5Buwpsfe5H/q2YFkWMcAhBHvbId2Up7WNzdvCfB+8eiqZKb0z0CfRamB1mVViWnuS1sgYFAjPJ+vgyu2Eg2V/V0uABU6nfgCCt0I0nS3JitSyjw32IP/0X6BVGeRPMDvOuJCR7xsGLOB76t6tOoOQ3UBBfKekrRgLidmxup3z4vN9jADXUnU7S3m3wfahhmDBZcYTb3T+W/0nk72lQX4YDyJm3AwBtWZbOB0W14sun1sBieQ/rzE+A8RsgQUhwMCSFxxJYRMln5Fstz2hnD+FdpUCC+M4KJppEh/BuZcAfCxHGq6Ug== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM9PR08MB6999.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(346002)(6916009)(107886003)(186003)(26005)(2616005)(1076003)(508600001)(6486002)(52116002)(6666004)(6512007)(6506007)(86362001)(38100700002)(38350700002)(36756003)(2906002)(66946007)(66476007)(8936002)(8676002)(66556008)(7416002)(4326008)(5660300002)(4744005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YbAfw8tmCfULnHUzlCJ8FtWYxsJJN6Hy0EHFZwmxh2OuI1//SM5Wv+I548xId8g6k5B1Rh4CyuTQkA2VLItxG96pbBhK3nVnFgi03p/QHlS3+rw3vIk1AAG7HR4LgjrSwj1uAfemIlaadR1zZz0XyDvVP9fSFADVGttGm8xCYrlcx+wXl2CQdcQUspSCdrkh3GhIDDIQnZYbDKGGzYNcY8BRXu4UARsv/5cbaldGRnEX3QWQ+L7KgIYUkZcnoVrdc8v9LZN9R/B4u3QjAH4Tga8AtUZIdUGKPHTYU+sxgrIE883AqTi5UWp+hUZUvA76q4LpHngLIs1vg0eGDd7SbvuyoZHxG2f3hNhxMeJqThDR4ghaHoUv86EOaW0cmoNp3eDo20pmq5HEUP5Ngq50gE9aSfpnwAeQ2/6yyRGrx2AOKvYfw21MRV0kXXqsCyzk0331YHFnhC+uSS+1uH41mq58zY23YsQQT7jaG4tJWD+DD6LiBxB5Yh7xUvBzxk4+vTnN6zrVcAk80CQ6C3N0YGIUotkhLHW9WYELlKBh6qimSgCbHWSvquUhcoFH98Mlki3/XX7ec32XzaBYpCkpmauoJzdf43tlsOZFQ1zMtSBXVD5kJx60/9Emtdyz6lzS6B4p8xz0Qf9HdJ4+aPPyOJuccwD3xLkCwdSOHUHZudfBEs0HzVYDFW5IISOpP93E5eet86SudL1UA5djwclc2tsNnvm9UQg1TeK3iZ6f1/lDxyelKp/Do8PgLK61ak9K0XTZwb31um5gq80O5Mp7HNlMOroopsztTCcqzo6WXezlk3BiPkQM0wKnFMifzujCJ11OgQJSp7FXODqp3sS4iSwWe4VVdhZB2VT3usZsXIdckIJlKqjn3XoFj419tJPaC2RRwHtwKGmHBEBm7jqglXy3Y/B1t7z+ebqKmzTHBUsh7v2B9sntBXFq3zZrWPL4TslqoolQDML3n7vv6FnVZKwF+A+ofJtpBFlXt/T63AQDhY/0inK2T7qR412jZxnua4TSNDquePkSeGjsao5IFLMj3Y5m9d4WkFnJArfTA8/+wuwZyvJUG7cSMx0dd0OktYyCweGcb2Y/MwiHxHwp9/L1zXxGj27X7Szh8OyhBEwCdyW5AjYsQzvN6p0fNT1HIQsiO0HxhsCpSQ4qITJzdYocE/gY+a6A4OD2PdtJsVVqf0XMRrlh43fl7TPvC2IABXBewP1CH3mLQmUxemyXpzR2RqhJSn9J0s0vycEu5/x0eiUu5waAf9ppMpbo5UgHcn6K/flZAZJZj3YGwOTrMqfwvZflupfiemBptrRsED0OB8N1Xz9iT55LgQaBHZ3ch9aocgcHmDLFCFh4eRspFV44VzL5qWfPYmBKA400Fv1ROSdzYRPON+khlAINSNcIjkcnseqtauM3/JIq6FZTn5q91sXRzpVnb0OG42hG0uRodnWAkl9Aeuy1zCFYHkg8r9B3rPbjLGyl70t4OznFf6Ylg0zqOtfyDcG5MYKaQHr5BV36JUyuCQGFzEhY/lNUBmEEAC4DATK28KEOQ/u6l1ekfoXmZEvtATDblx3CZY3cDDn5xgllKEB9K1UqSkAuqom14sOq7seG9rLwJlPNYAupFjTgj6tx5K4u0J/CbHk= X-OriginatorOrg: variscite.com X-MS-Exchange-CrossTenant-Network-Message-Id: 202a84cc-0a15-4e96-a6f0-08da00446c26 X-MS-Exchange-CrossTenant-AuthSource: AM9PR08MB6999.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2022 14:11:50.6107 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 399ae6ac-38f4-4ef0-94a8-440b0ad581de X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lRomg7zD64yyHhBvQJHpBuZLFdTR9yTscIuHbn8TC1xt6JlC+1I7513QdW3HxeqOBFB5OZ7UnweHPRtTt2FEIA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB5219 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add compatible string for the wm8904 codec. Signed-off-by: Alifer Moraes --- Documentation/devicetree/bindings/sound/fsl-asoc-card.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt b/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt index 23d83fa7609f..edb7837e4963 100644 --- a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt +++ b/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt @@ -44,6 +44,8 @@ The compatible list for this generic sound card currently: "fsl,imx-audio-wm8958" + "fsl,imx-audio-wm8904" + Required properties: - compatible : Contains one of entries in the compatible list. From patchwork Mon Mar 7 14:10:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alifer Moraes X-Patchwork-Id: 548968 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46868C433EF for ; Mon, 7 Mar 2022 14:12:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241945AbiCGONK (ORCPT ); Mon, 7 Mar 2022 09:13:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243042AbiCGOND (ORCPT ); Mon, 7 Mar 2022 09:13:03 -0500 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2057.outbound.protection.outlook.com [40.107.21.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81AB78E19F; Mon, 7 Mar 2022 06:12:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IQygDwizy5xvTcNr7QKinmNuxiYeWONMXfY/qKrSQAkxMH8Jdf5gZeRYBM+chMvrnuRPC882f2RMVpCdA0HWEuJL+CB6TnzzEo3Jh2SsljkprLGLvHzNH6Km0dIcAlyTmkjgeIOOs9OywzK2XGlI5HAALfFMH3KeqE70bB3o6FPdl2yk0eAIsIjyNjfwJcjyOpwnMi5E/U2rBqg5nPgfB65wEsjnmJ5qccvnsrUFcJcrKCJHR8o3Uv72g4uBsJXnGVnNN7ji+Ttea+iLtnQaqq1TxK8GIbpPnEHs/IL4BOuSwFZfeWO70u5Z5XxyNb03jnWa+YqlGAP/bWCXp2XW3w== 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=4gx8BNL3s+XeagdGo0wt7kXm6iK7lPEosXJ3aAMvoDY=; b=OzpP0pnTIrhvS2pqnMJMgMTXQGoz0GiDjWks0AwE2ZQ26c4+VvWHCfa5y5KqrGFc/1gzU2nlfXZYZKct5kwtVuc0nfBuyZn1FSJ7GMEMJn3pJymBXwwOlBj/jq8shN7XQIO1nAjtEEWAFCy5ejyYasm5WxHUvymxpQwu600zg6G1Ji/TlSKu3fDGEUY1r9EhnS1nbM0ybVzgBy4D9UJyGHqem6iNmLdKDV6NRgpEELDzD1aWbaIF9qrGFBULzBTBKBs3+hiJstHmfewxgKkYFlzSr+C2MzU1eAGi/aI7vrP74SDmhmbJZde2UoTkwJboMRnHVniEIo8nng92qzxaPg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=variscite.com; dmarc=pass action=none header.from=variscite.com; dkim=pass header.d=variscite.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=variscite.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4gx8BNL3s+XeagdGo0wt7kXm6iK7lPEosXJ3aAMvoDY=; b=GRH8vOiVB9r01fL3lOXA+LYqhPZeD9sJNHPHi+ESpUeYfSNeiQY1JuzcMw263SW1Y/tFWp992fdx72AGh8cU/2TaNFSpC5yHuqmojlyolNpucoa5IxW+VXV04gzO4Fwv+VtmWiT9jkEbjCdeJ1ZLdIMZzRHD36bs9pNm9LoGQKX1YNYfgKhbjamGeXEp8vAWQgb+1ps+wm7Ap5NuRBekjTBvNrjwDzK1+pDnrcWiCnGG/3+uQ2XmG+G71vygvdkScI5/YdHsPX2z/CFzrnevxQmn7/KV+JnRUpmIQaHNKolUa6iiuY0qQ90kpbXBWtsudfsSomzlFSIDU5lxb9oR7Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=variscite.com; Received: from AM9PR08MB6999.eurprd08.prod.outlook.com (2603:10a6:20b:41a::7) by AM6PR08MB5219.eurprd08.prod.outlook.com (2603:10a6:20b:ce::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Mon, 7 Mar 2022 14:12:06 +0000 Received: from AM9PR08MB6999.eurprd08.prod.outlook.com ([fe80::784c:5631:d38f:9a63]) by AM9PR08MB6999.eurprd08.prod.outlook.com ([fe80::784c:5631:d38f:9a63%6]) with mapi id 15.20.5038.027; Mon, 7 Mar 2022 14:12:06 +0000 From: Alifer Moraes To: linux-kernel@vger.kernel.org Cc: alsa-devel@alsa-project.org, broonie@kernel.org, devicetree@vger.kernel.org, eran.m@variscite.com, festevam@gmail.com, lgirdwood@gmail.com, linuxppc-dev@lists.ozlabs.org, nicoleotsuka@gmail.com, patches@opensource.cirrus.com, perex@perex.cz, pierluigi.p@variscite.com, robh+dt@kernel.org, shengjiu.wang@gmail.com, tiwai@suse.com, Xiubo.Lee@gmail.com Subject: [PATCH 4/4] ASoC: wm8904: add DMIC support Date: Mon, 7 Mar 2022 11:10:41 -0300 Message-Id: <20220307141041.27538-4-alifer.m@variscite.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220307141041.27538-1-alifer.m@variscite.com> References: <20220307141041.27538-1-alifer.m@variscite.com> X-ClientProxiedBy: CP2PR80CA0081.lamprd80.prod.outlook.com (2603:10d6:102:14::19) To AM9PR08MB6999.eurprd08.prod.outlook.com (2603:10a6:20b:41a::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 39063901-efac-4b8f-b88a-08da004475df X-MS-TrafficTypeDiagnostic: AM6PR08MB5219:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4/NjRiVRDQFTTrYXLrbj+Ic7yBa2qMffIURHm1mQA2Zt+A6UwTClc8aIEYgvUcdigp0qS28FWB/hbu8kNJA1San4aMQes4b4KWeI8gYg/xzTT5B9QaDcxfPmcweOpGhgq6lSb8WGQc6W8BcTJBG0E79Qsf48p0MDduHZQ62dg6vgjxuaUlxiMKjN6EpYuNdAaTV5ylPJYazhidsr9qN2qTozwo4VxxgdkSUWXZD2c4u2zATRKx6yyLslxlCbeySfBPzPNrPsMIsSgStWlsweGxAFsins4KlfnOQbBfDzJocL9SCEEdvjt+16GqqPRLjJjkhLXeT9Gu6qzjJPJP+EsJDU3nbb6xr9HTL5VycIEhE1uw9A0mb1WVkUWRYP7MAwlmydmYHRDSzcnbkOKwqTLsqjU2CFtTXfTGovL1MosHgNK1VmhSG/DN783mHHcc6QOCwCjdLiDLOaqXFrhzV02soSYIEJ7L7a997rJdZNTQ/E65WIgZc8U3bdcBJrvDvziWhD/Gs/Ifhp+Ok+yhhtwHOv2gxJ8r/mC7faTRwmRXYlEgkYN2HvPxZpl1j98bUS9ZGg3Z+sH9OG2FeCfTkxwNtx3f2Y8nH5Qs273bzD/BwvLmg2qpiF3B0X8emv7wdnkZ1g9EuRxagsscpIMoAxnZmiAKv9CqBXuN5UH0PIHFkr+HFaMy6+7TOgOl+27Uc8bqNiD+NSJRfMcWxV9nMx8w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM9PR08MB6999.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(346002)(6916009)(186003)(26005)(2616005)(1076003)(508600001)(6486002)(52116002)(6666004)(6512007)(6506007)(86362001)(38100700002)(38350700002)(36756003)(2906002)(66946007)(66476007)(8936002)(8676002)(66556008)(7416002)(4326008)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ix1VWjlxmevFZYjgBNsZ1oVy3c+JvEYTYo5PItLrngnZ1bBWkf/fz53LLI79ZeEx3zYOSy4pessprbjunUWRrCO2ez/c3HHWv3gh4m7rvN8Zmu/o8pLU7clTNgCbP71Z3kOC0eGpuVhe6VuzuUWXr5Krs4G2CWsEVyazMO92+PZKbSA6BxMlLl0jnyefZ2pa3lnxT81w4Ne6PseK9UvIhcnBpIAEXO94awrPLINQUKAYaYaVcxZszLEm/CnTSsEtWey2o++BRzHcr+H9oyOAUxkfMZqV4pn+/n8fSIKA2En+WN+UsZtsQ5RxYsCrV5s+FhyfhA7BbE38CeFVH0hs4jFfq3KuSbKd5pSe+atnBsa8hnFnXoUoryJkI/tshGkSHhoIQ8PERiYp01g5LfvBS/UlFb3u6CozRdxM/0bnLXEllvWgO0RKc/CmGCL9UdFcj/8P4qxBuilJeKZagGWUdosWU7lefc8T5ziqFZFdnV86nHnq+Ktp0yXmacuBiJyn0MAvh4ySQr2aML2auYlax9DlNa4oFa2kgB4l181/oBp49K7QONR46EGd0juroUbfAFcP/uZSZJCu1gIU/odmQoQZ1A/kg2i3n+OGWIme0I1nXInvgUIEPAaZzNW3dGiP2IAUnF3qMxkWe9HMGjoAh5l+76J5KSWEOImkHBMD6s7Q9/DikJg4AHQWzCsp7h2NYXt3Vb1fwPfQinHHh/eKS/Tcg8QJ0/CLTyr5q7+tAyTjkgsZgyPBObzV74B3KK9e1oFuEvQUhKOc+YN/PCtQW08dclxCue6UU5hAv8tRPCWdkekDATJCmGClH9434X1npJclKB2OsD+wbL5aJFaxRO7M6dPJLt1CmsTojiS7bicS3wHpYF7UhbGVB3265Qm6pGfPOxFg8Ujk4tA8/GxGR4zn871iziZ4ymZu1etwO+L2tVB0HtnvZA5nfvvCqLkQ6DK3/2eHu5/Ysd+6IIipT4tYhL5owNVdhjieGA/tCgj4s2FPcG5cKP7fytMDPlO7gXddSCUuwPuLy9uf7WSOji17NuqmDYUkWjI25aIum2xwGqHvH+TetvqJweIyd/BJ7NiPmlZm526DqOc+jGsN1wWbq5zDUZT8s+c+SY69El+MZ9PcgdUCgKJVlkRlCwv15oHPiA8PwKUBJyVbjK10cnn48prq9oZaJykNka/TdAzFdbT7knQU/4o+rnUTKLWfyOwgJmUCfM9l8ZJUeNb0pTEjWMKDE9yZSLVK7KD0COh8uEx7ePORzCuZ/qqx0uQJfht8cGmCZg+CpY3oAWt4U9LyoC1pGiOh9kSp5CS1KFMDzy532UjKWZFrpI+FeoW2X2cmyMl26xwI1gXw5bHAaU7GyHTUpOgKXTKlgpUDEJAbGF310Ue8/Tttun/0DknyjJCixyz5Ap5N22y0qJCk2h41lQ7QcFJ18Lui54vJuVr4UDikoZqW6AtisHxw8dN8cL0ObRbFGvkAp+3h2naMJUgZc+Gmbt/Xt8DF+WPtuBM0HBtQbNX3h+SQK5KRrG0TnseJfiLM6ZJ+VXqKYPynkCwbI2OUwAV5LY4JXcyU84d+qlRtsGr7dk3E79df0Me8U/R5GhCL/c1ca89GOdUuzY76qZSP+A+GV4DfcW5G308= X-OriginatorOrg: variscite.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39063901-efac-4b8f-b88a-08da004475df X-MS-Exchange-CrossTenant-AuthSource: AM9PR08MB6999.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2022 14:12:06.2499 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 399ae6ac-38f4-4ef0-94a8-440b0ad581de X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jYx0NfhGEOceVS5NQhX1NviuJfrPDuAD33JWsXyRNw45brM1JTHyLqYMuesVQQUdBhF2Pq+qh4yfrsQCu2/6Xw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB5219 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Pierluigi Passaro The WM8904 codec supports both ADC and DMIC inputs. Add dedicated controls to support the additional routing. Signed-off-by: Pierluigi Passaro Signed-off by: Alifer Moraes --- sound/soc/codecs/wm8904.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index 4121771db104..c7987dc81e4d 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c @@ -837,6 +837,26 @@ static int out_pga_event(struct snd_soc_dapm_widget *w, return 0; } +static const char *dmic_text[] = { + "DMIC1", "DMIC2" +}; + +static SOC_ENUM_SINGLE_DECL(dmic_enum, + WM8904_DIGITAL_MICROPHONE_0, 11, dmic_text); + +static const struct snd_kcontrol_new dmic_mux = + SOC_DAPM_ENUM("DMIC Mux", dmic_enum); + +static const char *cin_text[] = { + "ADC", "DMIC" +}; + +static SOC_ENUM_SINGLE_DECL(cin_enum, + WM8904_DIGITAL_MICROPHONE_0, 12, cin_text); + +static const struct snd_kcontrol_new cin_mux = + SOC_DAPM_ENUM("Capture Input", cin_enum); + static const char *input_mode_text[] = { "Single-Ended", "Differential Line", "Differential Mic" }; @@ -930,6 +950,10 @@ SND_SOC_DAPM_INPUT("IN2R"), SND_SOC_DAPM_INPUT("IN3L"), SND_SOC_DAPM_INPUT("IN3R"), +SND_SOC_DAPM_MUX("DMIC Mux", SND_SOC_NOPM, 0, 0, &dmic_mux), +SND_SOC_DAPM_MUX("Left Capture Input", SND_SOC_NOPM, 0, 0, &cin_mux), +SND_SOC_DAPM_MUX("Right Capture Input", SND_SOC_NOPM, 0, 0, &cin_mux), + SND_SOC_DAPM_SUPPLY("MICBIAS", WM8904_MIC_BIAS_CONTROL_0, 0, 0, NULL, 0), SND_SOC_DAPM_MUX("Left Capture Mux", SND_SOC_NOPM, 0, 0, &lin_mux), @@ -1093,11 +1117,21 @@ static const struct snd_soc_dapm_route adc_intercon[] = { { "AIFOUTL", NULL, "AIFOUTL Mux" }, { "AIFOUTR", NULL, "AIFOUTR Mux" }, + { "DMIC Mux", "DMIC1", "IN1L" }, + { "DMIC Mux", "DMIC2", "IN1R" }, + + { "Left Capture Input", "ADC", "Left Capture PGA" }, + { "Left Capture Input", "DMIC", "DMIC Mux" }, + { "Right Capture Input", "ADC", "Right Capture PGA" }, + { "Right Capture Input", "DMIC", "DMIC Mux" }, + { "ADCL", NULL, "CLK_DSP" }, { "ADCL", NULL, "Left Capture PGA" }, + { "ADCL", NULL, "Left Capture Input" }, { "ADCR", NULL, "CLK_DSP" }, { "ADCR", NULL, "Right Capture PGA" }, + { "ADCR", NULL, "Right Capture Input" }, }; static const struct snd_soc_dapm_route dac_intercon[] = {