From patchwork Wed Jan 22 16:35:43 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 13947502 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2068.outbound.protection.outlook.com [40.107.20.68]) (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 1A663215189; Wed, 22 Jan 2025 16:34:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737563701; cv=fail; b=bsb9scfJv2Po7OpedK296uQTsmC+XMf0AirfFpaVMM3RcMK6J1sROhzGVqdppYFsnB/5tC0UNPj5i40IMViywf/duY5rKfnRM2Se+jotb9ZEoXITWu2adbb5SEud6w3Aw9KWGfQWLHBn6vMvfzymHUcozJfiR7OoL9zOo1AG3jg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737563701; c=relaxed/simple; bh=n6+i6Y3dNFBBEzZ7JiC5EXMTBd/bkxGjfdSB63b0uSY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=pfQ/9H3bUogeGOAmGVUz68IhNU/UciZU8FoT0sXBku6/u5zDp4ly5ePaV59dbKNZBYGwL9Ck8DX+LXVHSKHvpKQqaWkIRhG2wucyT/J8Rq8v2fCGW8kSVekPT/4PFVx2DHzR1k4rxQVNOWr/VRxIKAp+dMD8SmJHWmaHbp1+RQk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=U9+653Dd; arc=fail smtp.client-ip=40.107.20.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="U9+653Dd" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KukhSXzr8QonAlQN4Jp7f/wU03/BVp9XIXLI3qX0vITg/JxU0lmAA7Ua0paYq/HP4sgbuPgTBv/nW1mD239DVpNjthOwi3AU2t6FH9A1Cwp1L/3yaQ7JohgI7sL4Z1ERuYqw2b7l/gq1PqCtTz9nJ0dpY3rasRzl8pqUIhGSeuS0Z9Q7MCFBItaYXzeacrFxjaVv0+fiAWkiJ9EdT0Tl0D+H+cMlsvm1IqxsFXWnnssk53CEBPIcQBs2s+19KP0gXsR8Xb1bzHvmqJFvmJT6OGMO5ViknX/HPMlPf248WnmfFJJVda8AoJsDin5YlKMcvby6X48LwuvhUQwBb0alLw== 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=ugBtfXnpRz2/UpmcZe7xQn1+YqBkmpyS9zgANPAxmaM=; b=bxtXrYxvfBO2FaK6Ju9zuRg6A0ala3T5SEo6+x+4ulIcyhFr+hiQDHEDqRSgH7yHz/S6RrcRD72N+kzGWmr2qGU5mtFH4FTu5E2zD6irpom3mfmaFgchDrC+++yRg+wTsfl40qEHHd3jscBTNeGyOxM/tnFo12ssGzbWfQ1zCDZNJyDzLJ7B/vXiWcJ7G5V3Nc8qaLhNwK8bUe6R8q88JkMvldb3BY84qpcCRqtON3xcVZ5oKvwif+7LP8ddwg9KPBJsX62Q+QIC5e5msMoJoekq+/wtWG1mbwyrGQqg2mpJjzwDIYDNa7ROH5w29gAmmCUSOip7zg6mWpu5CaMcFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ugBtfXnpRz2/UpmcZe7xQn1+YqBkmpyS9zgANPAxmaM=; b=U9+653DdgcN8fy2GAwlDvuvQsLqRH4royLvMK7AuiROlkR0bKikK87UBpwwu1pGUsajCVdOrNeLOPuvmX6OV+RSEHDPvyNlaOqxEP46KDgUdvE0cGEaZr0wBlqfv/EP82FJucRw07i3ZyOtIDjrWdiPFKr4JpLvM+egI5TO5G0XnCLXbM704N3qG3JBXZkPRRn2y1QklKjxpk4ffk+u1LExD80l9M56chq9yuFTqOETR912Zzs92SGu9OYxVUvCAC9D0glP8Hth7nI9YrRqkILEXgHYXHowRQbdU3i1QP4m4ZUafykIoA4wbmaxEvKI66poPwty2pozZmv//oKXY+A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8247.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::13) by AS8PR04MB8403.eurprd04.prod.outlook.com (2603:10a6:20b:3f7::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.22; Wed, 22 Jan 2025 16:34:58 +0000 Received: from AS8PR04MB8247.eurprd04.prod.outlook.com ([fe80::84f7:e2c3:ceed:c0a6]) by AS8PR04MB8247.eurprd04.prod.outlook.com ([fe80::84f7:e2c3:ceed:c0a6%4]) with mapi id 15.20.8377.009; Wed, 22 Jan 2025 16:34:58 +0000 From: Daniel Baluta To: robh@kernel.org, krzk+dt@kernel.org, broonie@kernel.org Cc: shawnguo@kernel.org, conor+dt@kernel.org, peng.fan@nxp.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, lgirdwood@gmail.com, peter.ujfalusi@linux.intel.com, linux-sound@vger.kernel.org, imx@lists.linux.dev, Iuliana Prodan , Liam Girdwood , Bard Liao , Laurentiu Mihalcea , Daniel Baluta Subject: [PATCH 3/4] ASoC: SOF: imx8: Add entries for new 8QM and 8QXP revisions Date: Wed, 22 Jan 2025 18:35:43 +0200 Message-ID: <20250122163544.1392869-4-daniel.baluta@nxp.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250122163544.1392869-1-daniel.baluta@nxp.com> References: <20250122163544.1392869-1-daniel.baluta@nxp.com> X-ClientProxiedBy: AM4PR0302CA0005.eurprd03.prod.outlook.com (2603:10a6:205:2::18) To AS8PR04MB8247.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::13) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8247:EE_|AS8PR04MB8403:EE_ X-MS-Office365-Filtering-Correlation-Id: 8512b95c-576e-4495-597b-08dd3b02b568 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: /f1/J4rLAIWyI24KBJKTE3KDdsO4de5hXRksg3tjEt9EnGpV0Zv1GL62r7v9ooDEzUq84aZmjwMpujhR2xaP3/G/r8RIqHcWWExeRt8nGouEK0VcoQMGsTGo+eyi8tHjPm2o9FlapfDNhosU/IkKIzctN+oR7vFmLy5IzfMqsqmiQPCCz7NAQZXMQTkI6jIyuFqiqGW/9sYW/pxeooUvfGlWUqiwV7trWpb22BQaOQUYTzU+xdS6aNOQfKd0mdceKEbXzoP5ZxZQwPqIX5SP3szah0hubZZo54WGgyh6wbZJN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sNVbpB0RoHj+P0no6Kv0+3c8BppoHBy0Qdwax+HkjZM49sDSTXJ9wgmKEPKqmJVw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8247.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fb9clZGT+WZk3ENbsN69TDxnC/bJIVcVkNo8KpR4kCY8wSIPUFTfKMaCSJmW/AyaLF7qWRAV4wjZXBFNZhZSTrWGr2MXfIE/+cz2GcwHLd9QwljHv/Atb8RxznGA0vcmQEZhkvgNCr5UECjmCV1kPUxW0vwNpfEZNWlDMwVC1PPmqo44O6ihJ/nRcvce4IRS+zOyx4DlK0euApeIbIa7ka+62EO2CqrCWCXwRYfOiJ66scWxHWtB21gSiOlruwyg7Twq2ZwXrswCpFMJUyb7ynTApsoERx5C2HLwRyCZ0VIrShI6EQTEJxT5bZx9E2V6zYAh8giOedeDx+O7RJhq4JJBbuADCfCpaIH6sCl8IzeIlqR5SJlDp2OhkWAPAoHUJR6eLIE5Y0xmtovDiXnV0Lpk/fCw2N5cmI9a8J2MAdNgGrhM7GZZ/OWT+Fdit14na7ip9FMHjBlUvc1pScOWY7EJmKkffgkIJV55hwAH8Rgr92Wvwi+7v8hLrShqOLOniuM17PFlGzyVapPPTeioz1l95VddDxHge2YYiw0CPHlml0PeiOvpldaI2NazM61hKOu+3QlSO1/zrXAmvoWkK/5aIhTrZ1itSCxHLGQ5YJSOQExIDji2jR/Qa+9O+MFc8MzPdyjl1XPanP7nc4cYGOEiCoxrGa7VitMiC32bncPQVMb37mMIIuhONfPcEiW4MNucUkgIiv2aE9qqestJg2AMjuSB27H2o73N8PqhCEc7iGmXDJg+v+GeZStDuYM7E/KDyGlfDEhZ/89RjJUYMGJdqIdDekm4T8G6zhcLXJxMdNc3HuZyNY9YF7KFNtKS28diaDNmrT+rCY0DrYvfMI+Tp4ilfvuslxW7E/Ne6fHhDErQP9LTLzn1tn8nLLgsAsISRVTLdD0Z7Ol717V+PRRh+46IA6jGG9XuJDNUZi6WvBZgzXUygrc9jeOHEx5s0XQyagpDhSJQrpHKwAxcpOTLc+twqKidQfMFndkbUhJmWRJ/DCpTZC21Wqm2wcDo9B8V4rPNfxUeDQjiR6YObp+yPgcB3K5a2aSqOCbyz9HuSvRpFeJxFbb67Gx5roeb1b5wP0tAKNEbY7YvVOM6g5XBQwJSflhxAAHNta2LnO0XzcFWo4XlYwrVBVu3d6ZPOoKGWTqkcW71X+UsAwmg1aXTaYrULnOy1aUg7xhSSL2qeonfRbFo/z9c26GJc8FeDPJyB/pNbhczUFiNr4Dm3bsoalrqWfWV0kJrJ56QrAp1r84Rf7I1kZTSX57kHpM+MsNb1zUCs0UX1WSqEyPCUL360R7M6nGIPDF8H89ZUqpEtTKs1ZrCEgq+mm9i69b0D7stbZKIjX3nLWgrHRk1TU7cNb4nMeYferj9sDjL9l1mjzvxDAgIAm7P2jMRzyMEK8S8n215Wo2T9vU2tqFEPtSR1cBaY0J0ENjgRPx9LXmZhTKWYXCivxaBGVXESdwGW4sej4hON+c+zXj2DWTbi12RRd9o62FhKCe5ql/jz4xUtNTegvAyDwoxllbkCJ5pNUrFuSOeC1xOUMLaJ6i1WIV6GcRJ6Z7VVzM/zKKqjw/RkdSS4bYZJf1uc/JIhzgB X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8512b95c-576e-4495-597b-08dd3b02b568 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8247.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2025 16:34:57.9811 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Yi2fM8yK5v+c9ZWoBdiKHlrBAxBwQgCWtcmm64uqVk3GW6WJJjcZSDfpzlZEFnaZ0ZgcW1D5yM3qB+pr/CfmkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8403 From: Iuliana Prodan The new revisions for 8QM and 8QXP have wm8962 codec instead of wm8960. Therefore add new entries in sof_imx8_machs, an array of snd_sof_of_mach, where we describe topology name and driver name. For the new revisions we have new compatible values and based on these, we select the new topology file, for wm8962 codec. Reviewed-by: Peter Ujfalusi Reviewed-by: Liam Girdwood Reviewed-by: Bard Liao Reviewed-by: Laurentiu Mihalcea Signed-off-by: Iuliana Prodan Signed-off-by: Daniel Baluta --- sound/soc/sof/imx/imx8.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c index d6117a3d4266..3b418114e8d5 100644 --- a/sound/soc/sof/imx/imx8.c +++ b/sound/soc/sof/imx/imx8.c @@ -606,11 +606,21 @@ static struct snd_sof_of_mach sof_imx8_machs[] = { .sof_tplg_filename = "sof-imx8-wm8960.tplg", .drv_name = "asoc-audio-graph-card2", }, + { + .compatible = "fsl,imx8qxp-mek-wcpu", + .sof_tplg_filename = "sof-imx8-wm8962.tplg", + .drv_name = "asoc-audio-graph-card2", + }, { .compatible = "fsl,imx8qm-mek", .sof_tplg_filename = "sof-imx8-wm8960.tplg", .drv_name = "asoc-audio-graph-card2", }, + { + .compatible = "fsl,imx8qm-mek-revd", + .sof_tplg_filename = "sof-imx8-wm8962.tplg", + .drv_name = "asoc-audio-graph-card2", + }, { .compatible = "fsl,imx8qxp-mek-bb", .sof_tplg_filename = "sof-imx8-cs42888.tplg",