Message ID | 20211101080026.297360-7-daniel.baluta@oss.nxp.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=20LX=PU=alsa-project.org=alsa-devel-bounces@kernel.org> 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 18782C433EF for <alsa-devel@archiver.kernel.org>; Mon, 1 Nov 2021 08:04:33 +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 8D64260FC4 for <alsa-devel@archiver.kernel.org>; Mon, 1 Nov 2021 08:04:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8D64260FC4 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 E24F616E3; Mon, 1 Nov 2021 09:03:40 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E24F616E3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1635753871; bh=QIlBLTofvB7/qZLHcAWlWMyLlvlcWEDAwKQRByh9V+I=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=pGtVV4ROfzGVgTUsAktz/cTrJoCF/YhOjKw1YbhtXQWGPRZHUmch3pv2QpQjmFKmN nbY/hxAdXJPO4YO09L1mG6JaUMvRXCx3MzmRPTf/c3zocjjFOlD0+QYNM52olDP1XR xQLxs2P6CKrlInhLqNUELOJEpya3tl+lUoCtKKFs= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 0F81DF80524; Mon, 1 Nov 2021 09:01:51 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4031BF804FF; Mon, 1 Nov 2021 09:01:24 +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 5754EF804E5 for <alsa-devel@alsa-project.org>; Mon, 1 Nov 2021 09:01:05 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5754EF804E5 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="CWr5eVfL" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kQw8agy4ZZ3AsGzBYBm+glKt265e0t+VTnPQlisKHixy3EC8462M7RqCX3ofNz7Lz2IbwYrrTiKCRGw4Owx/zTZKTCOZTThqH+9Y92u+sw6JHuUavp1JaEErD0Pglbj2y2zTQgUm/Iutcoril1exKfqPnALE8R0bq19yR0Ddyq2UehoFRG+LBSICv6CZxiYTnTC1f5/hWb4RTIMx9n6BEnHObgjvdnvdp66IIclU5iNTseQJ0c6NXRpW/mfIVyBkxGVqCzDrU0AdxxnwcokJXfvBqGIR/nELAdfS2P4vfbdOscmG7RN5EdVx2+fOGajY+6tfj9fFGvwt5lbijedNHA== 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=1q71ZX0OhL93dqzfgutAr7YL9qPpnE4lAhTciqDhHtA=; b=OLk8ZlPRcQP2ctavDyCyTo3x39oG/84dB8805GjsWVlV+mHPIVqGPJGMMej8pO/nBSvpP+BgQw+6CJUgpSFDZ4AhECrDn89lBaW4Vv7LPeyH20z56KT7xeQrxI7CzrShTmb2inekPsTJAhW9AaIAX/309NQ/TLAg4zIo6ByDr2AzoBMxcRluEY5fOBAK7EgtCv3XjnbXvQy6B2LRyUDFRPmu4MEyj3fdi22tI7iAeeWRlySk4wcQ64Kb0gfvXUy8FIdD6YRs/5xAbDWNmLKyLMGYiXyEd5uaum2U8Q+ifaNw0Llg2O33YOYL6Nlehky/u3wItJAoC3PMpo16cey04g== 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=1q71ZX0OhL93dqzfgutAr7YL9qPpnE4lAhTciqDhHtA=; b=CWr5eVfLgLe2EzoESluDzrj1MbcjhTq2OR8eMii1mw88UO11XTWBgpEN1eWUW27PD3s/VK+32OL6dhZR55tbjgAtdpS4b/nnGkYBbObOjp4g1210ufTk0PVvkm8WfhXrc4ZmksVTxL7gjDOLdlwagsKPFriXbzV/ibgYvrWgQi0= 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:56 +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:56 +0000 From: Daniel Baluta <daniel.baluta@oss.nxp.com> To: broonie@kernel.org, alsa-devel@alsa-project.org Subject: [PATCH 6/6] ASoC: SOF: mediatek: Add dai driver dsp ops callback for mt8195 Date: Mon, 1 Nov 2021 10:00:26 +0200 Message-Id: <20211101080026.297360-7-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> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fc06250b-86bd-4c82-9f66-08d99d0dbbbf X-MS-TrafficTypeDiagnostic: VI1PR0401MB2430: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: <VI1PR0401MB24301E8B0405C2D7583B3BB0B88A9@VI1PR0401MB2430.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:1284; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gixH+zPFUGQLFOeNwssajxmTA1CXsBuw6Mon77w2JOxxZ82wBqZsx+/oWq5fVVNhA5jsSh1PhLQfIN3GQ9T5JhZBgi3uPWu37tse0mG5PAlzVsjizDZqx4EjkJQcpOmQJi6d+ztz7Oq3tcOqdKStmDNQSq9xP19uPjjcksZ01DrA9R2+6BbUxfnAs0yP3ieGVstrFpk2IKJs+lOoct1ceCZ/0kOU+iF1nI9thXMjXgA+qc4Vq7hyEvSsPWhu+75zWFR+s7H3TzD/yCBEAf7L2U6V62AAMnhfMQgSWUJTAq90nYB++70I/2GnXSCpZHdCiK2GdgN6WVsHSHZRaZKQp4iIoQjbakRKrgGSTb3PNpjHpoD8xWjExwQg4u7TM/kN62WKOVHNCc8wLXD8F0WC8irFQ/s052ez4S1hD8EuwB3HvkJC+yC+GTdbyGnP+kWX0iHcPHnthPASh4RSfdevdxuptWEhuKG3RDUQrYhoUvxoTJrSpnpO2cBrOUqnSpmIDXENEiHUF5Afr66xfdNpT7rUf5sncdyJ8NTGJijnzZ1FvhE3SeB2jFePkvXYoIULq9tamwE+3EC9Ily/UiRn5v7l/WpKk50yLUQhONHStV/J9tCO/wp8T8gfGxjay+mj+v9pFsah8GCp/0+w4y42NA== 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)(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-Ex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Eekp4RMqRkuSqa/IcX9yYWD9r+rVYk3eN3zDYJd8c1?= =?utf-8?q?SvgiIJVUlXZeFPj3H7y5FjWc3XQpCagmLyphkqfiuHhyBTsjrwl8ykL2+pGbHb+Dj?= =?utf-8?q?UsCMl0O6Hxm5aEClk2OUIE/cvLarK8JQruS899BGm/EkJo/xJ3jsoEHffS7uBmrqw?= =?utf-8?q?1I114Klut2YlIZF48eMOMeZ0lyvlCaL2lROaAP5zmuB/NksXkxRH9U4NroO763nw+?= =?utf-8?q?xI0oLxG+j3GYmAPaxKO83egwvY14Uf9JDcm8fge3mX/SdkqGlSMQ4rjVX/1OmOrDc?= =?utf-8?q?lL9GCwCocuAfFt5/dOXkhaKtaRZI1fca1bbCWBGt70dF5s+K4/tl+YWAjzCBeB8EJ?= =?utf-8?q?hlDFtITnAR1IsviJQ2g9dfHfUj413lVHf+ydrjj8Nud7xw3WjJmfoUmTbodlmTYuP?= =?utf-8?q?6pHN0ufuWC+WeYfFm16kYXCWmO7slUznBInN5jpReQkVN0Me2ELLqxQJpk8fTEyS9?= =?utf-8?q?OXFZUsJ+Zl4wmg4xWaYdue/3Lyonax51rNk7vAKcKmzRMexjhs4GP8oTDUslREREv?= =?utf-8?q?vrySV0hbPAHO2AlOwn7dTssf7iBB3zCMtCD/eDA6Klh60Iv8SoaDq4TOYMq/8jr/9?= =?utf-8?q?gKLy5jEzaL7zVm3BnCQOahlp6lBM2jihC876NqGsA7IVxvNEMAzleyAKdrcKSOlY2?= =?utf-8?q?VrD74pBigdAXfD9SxA5C8gjYjRXjL9hSMR7F3s56or3xXny0HUz3DSDlBj1oRmxRG?= =?utf-8?q?anGSbWa48WW5stz99zmUWUx1lIBO4jYe8lQAzmKEBSy3xASXM+Rm4Y=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fc06250b-86bd-4c82-9f66-08d99d0dbbbf 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:56.1188 (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: 9CDZbjyQchYSGWQh+7+/B8ZyWuCYltxNZZky2FxEERX51wPBwTVdmfG8pXPddCg/j9dtdCZJ+xYhcHZtR4b4Uw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2430 Cc: guennadi.liakhovetski@linux.intel.com, daniel.baluta@gmail.com, kai.vehmanen@linux.intel.com, Daniel Baluta <daniel.baluta@nxp.com>, ranjani.sridharan@linux.intel.com, lgirdwood@gmail.com, linux-mediatek@lists.infradead.org, YC Hung <yc.hung@mediatek.com>, 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" <alsa-devel.alsa-project.org> List-Unsubscribe: <https://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <https://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" <alsa-devel-bounces@alsa-project.org> |
Series |
ASoC: SOF: Add support for Mediatek MT8195
|
expand
|
diff --git a/sound/soc/sof/mediatek/mt8195/mt8195.c b/sound/soc/sof/mediatek/mt8195/mt8195.c index 88da6c2de070..99075598a35a 100644 --- a/sound/soc/sof/mediatek/mt8195/mt8195.c +++ b/sound/soc/sof/mediatek/mt8195/mt8195.c @@ -299,6 +299,37 @@ static int mt8195_get_bar_index(struct snd_sof_dev *sdev, u32 type) return type; } +static struct snd_soc_dai_driver mt8195_dai[] = { +{ + .name = "SOF_DL2", + .playback = { + .channels_min = 1, + .channels_max = 2, + }, +}, +{ + .name = "SOF_DL3", + .playback = { + .channels_min = 1, + .channels_max = 2, + }, +}, +{ + .name = "SOF_UL4", + .capture = { + .channels_min = 1, + .channels_max = 2, + }, +}, +{ + .name = "SOF_UL5", + .capture = { + .channels_min = 1, + .channels_max = 2, + }, +}, +}; + /* mt8195 ops */ const struct snd_sof_dsp_ops sof_mt8195_ops = { /* probe and remove */ @@ -329,6 +360,10 @@ const struct snd_sof_dsp_ops sof_mt8195_ops = { /* Firmware ops */ .dsp_arch_ops = &sof_xtensa_arch_ops, + /* DAI drivers */ + .drv = mt8195_dai, + .num_drv = ARRAY_SIZE(mt8195_dai), + /* ALSA HW info flags */ .hw_info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID |