From patchwork Mon Nov 1 08:00:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 12596045 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03CC2C433EF for ; Mon, 1 Nov 2021 08:03:39 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 564A560EB9 for ; Mon, 1 Nov 2021 08:03:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 564A560EB9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9B41C16C5; Mon, 1 Nov 2021 09:02:46 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9B41C16C5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1635753816; bh=OJpGgYRNIncpF2GwbiQ/mq6gk1bqLz+54+/80XqZOhQ=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=rKleCJNDX4XH7pyN/fUbnh/4A6cVbpQhpcO/2evUEGRKbFid62SP+/Ndo3uTmhZ6x gElYYqKfWwRiEq6vyCa50Z8PqqzC9gyI8v4HnXfA63GVHql297EmPMFj/xt++//gWT 5pTBE0ejTLt6tsho42f5C287NygkDucD6XsRHZUc= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id E4552F80508; Mon, 1 Nov 2021 09:01:28 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A5B7CF804F2; Mon, 1 Nov 2021 09:01:16 +0100 (CET) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-ve1eur03on061b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe09::61b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id EAF95F804B1 for ; Mon, 1 Nov 2021 09:01:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EAF95F804B1 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="bAL+m+UJ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cE14NhI/usy5G6AB7Gzcj+w526+2mptmyLU8KSSetRUnAK+SgjeQur13Ue1nBTW3uRJL+bkdAtzi6vokFTHhalaNtt8SQ77Mq8CfXqBgNjoZ/+yGwir0uUzjpS00uus4rq4L6qychM2rILWehZhcU9mwMoxw201IC8V5m/iQVBYgQfp3pM+5KBMSSOn8ytD/PnhmPW6pBYgNd3qbv41OzIxzqSD1n8chHddCoxoQDIJo7Thn6a344UBCP//pqAPR0LC27gYkZvh+y2xKxebJzXfeuNsrlUaRXugm312cug3i8NfXc9u41P0eCwvvBrdFsScHFS5RYsu9gVjNZb249g== 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=cG8P/WfZcRAHN57UVOx+Wd+RrVgZpkhz13HcXc8Xm+8=; b=UvKUdJZl/htNWK9Mey3KudOjtV9peAage9DtcwUN+/X9StH+Bw9HwZDwSBtij5BI/lKMfdOjksuIgINBROvoC7GlePDZIGia6Q24KmtxSwVCLet6mj8wdx/ioYBSqheHt0pnCjbF0MN6UKGMuLKML5zSfGhNIpodZXUVPiMCPcMd/jFP4CA0q26Mgj+qdLrgy2QL5bw6sOczpG7EvgnUNQEQyP1qeoQIzGPdqlXxuAFC+ur9QI2NAf7sScJWPFH3DPyoZ12YMWhPqsRS8PZwkTenL/vk4XjDRUEn8+1izUfecM3vINwk8rIk4dkHF77tNQRkXVrjevlGxF6Xq0UIPw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cG8P/WfZcRAHN57UVOx+Wd+RrVgZpkhz13HcXc8Xm+8=; b=bAL+m+UJvKI2Ew3oC435IQ/VBbtZ/7ap+7IRK+QpcQyVcDJoTT+iZYYFMNTnCfduRyGENCln0fp+3sAyrExjzN+DwxjgPVkwIjRC27Bs67Jek0BetpZ8GzynKgwjRvtbSrWWnz6T7ssBmqUSJS11zy1WbY3GP4xeHSWStTPM7eg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) by VI1PR0401MB2430.eurprd04.prod.outlook.com (2603:10a6:800:2b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Mon, 1 Nov 2021 08:00:54 +0000 Received: from VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::85af:f8be:aa99:ba5f]) by VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::85af:f8be:aa99:ba5f%3]) with mapi id 15.20.4649.019; Mon, 1 Nov 2021 08:00:54 +0000 From: Daniel Baluta To: broonie@kernel.org, alsa-devel@alsa-project.org Subject: [PATCH 5/6] ASoC: SOF: Add mt8195 device descriptor Date: Mon, 1 Nov 2021 10:00:25 +0200 Message-Id: <20211101080026.297360-6-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20211101080026.297360-1-daniel.baluta@oss.nxp.com> References: <20211101080026.297360-1-daniel.baluta@oss.nxp.com> X-ClientProxiedBy: AM3PR07CA0070.eurprd07.prod.outlook.com (2603:10a6:207:4::28) To VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a02:2f08:5719:1500:cdb2:376b:257c:429a) by AM3PR07CA0070.eurprd07.prod.outlook.com (2603:10a6:207:4::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.9 via Frontend Transport; Mon, 1 Nov 2021 08:00:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1e7550ad-8ac4-4874-9e6b-08d99d0dbad4 X-MS-TrafficTypeDiagnostic: VI1PR0401MB2430: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1201; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OT1v0NMNEVyYjCX3MI+b26GYWR40vFqDNFZPfHZxcfXUzZxDVf//lAVB5hdC51RU6aF1jxwsziS6LBoSGG8efRy9KDF012lFIOlb5eXU1DfwqGx620+kXYCjHvoC4HLFmRWBSoDxvjaHdpbz96TWqGAxKdUTz/Lx7z6x+XJZJzWN+JH+L4edU01DG3A0fyEDB8a/3dOmbBXTk1tpHoD4Q4m2uUDtfKmi8G+AvX6hUUDxvCf6JkdN+atZj0uB5SZsHJwCSrlGuk+59J95cQnUQsA3d+eUm5JdroDzvWoIC0emefvEvsvW6I+HfajOkEfWmiVWiFj7lQsb/fkVAWhXk6mHRuHnBfb4CF6jRzeYToQruFVo3x5kGhDFt1gX5Xm6MRZ68dpl7Bx9rs1xtk4yIHfQWaBB9OpIj7uJ+RFLIEJqQtvGVF8t94YHGWfxxMvZsJo30I5emQn9Z3SFC/aMYLEdc/AGofh/4KLQQ9XnWf33Gx44AwCojrjmQFUKwbj+rgzkcCw4TYwezscNbVmg86J4JqJIM31K+nUUuT+A/lOVmzfrN+7PxlozGKvZdUeXKCqYiWH+/NEaRW6eMDMoLCLQJYPQqM3S8dMb0918zoYdCgZTT5evVBRuYNTp2vIDRuNmdl2LaXSQ0BT/8IOqxQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5151.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(316002)(8676002)(508600001)(54906003)(6486002)(8936002)(6506007)(1076003)(5660300002)(66574015)(83380400001)(52116002)(6666004)(44832011)(6512007)(66476007)(2906002)(7416002)(2616005)(66946007)(38100700002)(186003)(86362001)(66556008)(4326008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?sWPw2L6K/E4FpMQ7iRXbyQYdZESz?= =?utf-8?q?yEuxA8wDJ+Efp5KhtK03j6izyqjZ6vlAnUrVOiZL02yZz4FIMp0U8WqmExKEzjbh2?= =?utf-8?q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nLUG67tPfw8kofun5clKF0d0RstFjgIzVpNrvtBXeC8k8SEsHXzRKW0lwBp28F?= =?utf-8?q?gUc24uUfrnpjEfIgKGTx5LSKAjtJBpjTf3Hq9KEOeI2TIDZ5qnNaQRLW+ODUc7ebF?= =?utf-8?q?zEvYY9CTQViWR9FH/krubMKDy5X27Ws3mfwVQU96gGaRj6oWz/hEynh/YD5Zra5KT?= =?utf-8?q?Pdm/XhyBxC2mqgV0/eKb/6UlSDVU3ithGvKt7GqdgxrZmoECxUE2tOHHNMwOdKLOo?= =?utf-8?q?WdeRt+JE1PWjq1HqNyOKxKRrDAt68aTcSwlXjJEmLK9nlLGa3A4SYZVbJv+gJ6Fni?= =?utf-8?q?ay33SeiNmwIqRERkBPi/m3iUAg1VTQX9WTuiFxJL7OrkC7POxMsOD6mQnq58TG7qX?= =?utf-8?q?ggvQTZkk5OTHj34lRZgtNKoRhzSktCvSMK8FkuiF0FdGh7gnCK9f5ckxZ0rbJxaUD?= =?utf-8?q?FgnfcAJ+ALMbn2zoBYDowd3ihrXrJVMwX3MbcSl7MurhJklplNyeCqoXqx39ONLA9?= =?utf-8?q?k9wfXJUYNuRha78EPY4f1B+1t1Ym+tzGGt2bUjcK99O87RrLDRDJEB7dGFXORKy9r?= =?utf-8?q?8P6oq/xQwHBBcYlalNevPHsrW0r6YhxXbaJKiRyoczhp5DiZ8jEXe0FRnIdMMre01?= =?utf-8?q?9ck3K59H/7fMIAj4iOK086FuyHuxtTG6cYrKWu7qYeU4bXJ6ROfUvo1HHgNXkIbw4?= =?utf-8?q?tDSRglK82g?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e7550ad-8ac4-4874-9e6b-08d99d0dbad4 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5151.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2021 08:00:54.5747 (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: pj7h+X9deZmePj11gQdqwp2uiNcnR0TNBuoTkOOiytnJvIt1XvH6MwAJLje7UUYyEtnF0OYdJzphM2cbkjgWNw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2430 Cc: guennadi.liakhovetski@linux.intel.com, daniel.baluta@gmail.com, kai.vehmanen@linux.intel.com, Daniel Baluta , ranjani.sridharan@linux.intel.com, lgirdwood@gmail.com, linux-mediatek@lists.infradead.org, YC Hung , pierre-louis.bossart@linux.intel.com, peter.ujfalusi@linux.intel.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: YC Hung Add SOF device and DT descriptor for Mediatek mt8195 platform. Signed-off-by: YC Hung Reviewed-by: Péter Ujfalusi Reviewed-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan Reviewed-by: Kai Vehmanen Reviewed-by: Guennadi Liakhovetski Signed-off-by: Daniel Baluta --- sound/soc/sof/Kconfig | 2 +- sound/soc/sof/sof-of-dev.c | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/sound/soc/sof/Kconfig b/sound/soc/sof/Kconfig index fd6ae0629a1c..0147d089553f 100644 --- a/sound/soc/sof/Kconfig +++ b/sound/soc/sof/Kconfig @@ -42,7 +42,7 @@ config SND_SOC_SOF_OF depends on OF || COMPILE_TEST help This adds support for Device Tree enumeration. This option is - required to enable i.MX8 devices. + required to enable i.MX8 or Mediatek devices. Say Y if you need this option. If unsure select "N". config SND_SOC_SOF_OF_DEV diff --git a/sound/soc/sof/sof-of-dev.c b/sound/soc/sof/sof-of-dev.c index 885430a42226..412cbb824b84 100644 --- a/sound/soc/sof/sof-of-dev.c +++ b/sound/soc/sof/sof-of-dev.c @@ -13,6 +13,7 @@ #include "ops.h" #include "imx/imx-ops.h" +#include "mediatek/mediatek-ops.h" static char *fw_path; module_param(fw_path, charp, 0444); @@ -50,6 +51,15 @@ static struct sof_dev_desc sof_of_imx8mp_desc = { .ops = &sof_imx8m_ops, }; #endif +#if IS_ENABLED(CONFIG_SND_SOC_SOF_MT8195) +static const struct sof_dev_desc sof_of_mt8195_desc = { + .default_fw_path = "mediatek/sof", + .default_tplg_path = "mediatek/sof-tplg", + .default_fw_filename = "sof-mt8195.ri", + .nocodec_tplg_filename = "sof-mt8195-nocodec.tplg", + .ops = &sof_mt8195_ops, +}; +#endif static const struct dev_pm_ops sof_of_pm = { .prepare = snd_sof_prepare, @@ -130,6 +140,9 @@ static const struct of_device_id sof_of_ids[] = { #endif #if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8M) { .compatible = "fsl,imx8mp-dsp", .data = &sof_of_imx8mp_desc}, +#endif +#if IS_ENABLED(CONFIG_SND_SOC_SOF_MT8195) + { .compatible = "mediatek,mt8195-dsp", .data = &sof_of_mt8195_desc}, #endif { } };