From patchwork Thu Nov 18 10:07:43 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: 12626467 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 07A91C433F5 for ; Thu, 18 Nov 2021 10:10:17 +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 4F03F6139F for ; Thu, 18 Nov 2021 10:10:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4F03F6139F 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 AED7018B2; Thu, 18 Nov 2021 11:09:24 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AED7018B2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1637230214; bh=n46SpkoqjGTyC9qvu/jXeUwAMeZ+dak52xc6LV7soec=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=n5+HofQHVcuPWkmC+8YCwjU7oRZzVJ1l5vcHvKTaegFQ5zVEyULNMzP/gzKwGHSls ew/vBsZRsxJGxnE+Rv99kTH5ptutelihQrb/VMtwMYxx47mPhBxY+Q712v0cslFlGz PPTC4pvotbOdOjycDqT8CPsPSt3AjOZIgTXsgbIY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A4AE0F802C4; Thu, 18 Nov 2021 11:08:32 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5B45EF804FF; Thu, 18 Nov 2021 11:08:31 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2040.outbound.protection.outlook.com [40.107.22.40]) (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 1AECCF8026D for ; Thu, 18 Nov 2021 11:08:13 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1AECCF8026D Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="hJryKLPe" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O+cEOq8DznssYAFhioeGDWDr/AzR0C8ja+iqOY0NS6mj9U+BrOY0da6Fa5leaYgHSAlWtOsYxlBPaMHMT+eocRrl0XDEarCJv9tJjtEw+VR7lVvGZ1IVFeJVO5xcd88T3/3vD4opRhWLyG9HOiV8f4Ldom0sh1J1aGcM3l+1Qm8Z2iDXXPfK9QmHU7OOqqIMHp7/Hb4baO3cEA2bJlg7qbpYSbrPsywHTg/qNJXPLtT1urIBgyne3aYeEkj60rYMP/Asvu4UIokd/V0/5ayuPLza/sxO/2V3vjw23aEBCqOMyC0lwDJZZFuR5Jv2Dlgk/hCFUbiRTClilZmpubCO1A== 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=K/TcaXutvCfzOqQoZbUtGznDhLVWnllTNgKTJn+BGJg=; b=b6hgKOcg97CtyqlN57HtBkESq3iFCH8QQ4cjDB+E9XY/fONuqmNm+xrTt5iAnn0zrsKJ/hZ+Vzecjs+wKqW9ktoN/f9ICK9dwIPH8ww6lZ83wlz1pNfMK4AGzxZXf8n7PSbdrnNbKUHss0C5MJlv6I2ElPF8KocMRqMOsbMmei/8ZyLh2is5TqA2Dev2H02s8Uf/2BZARJMaeKyEkyp6LQrEDQb0EEMglMbjmOYLbE1YNjsbkiBQWUYK+qi7dhV6jLz+OFRwq2uvD1M+ipbWFWx7Mx4ZJxk+vinYVJGN1VLaeV4uTAI2FDpLH3FlARj/vMkjFrYe7OFKmdPQDSXrqA== 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=K/TcaXutvCfzOqQoZbUtGznDhLVWnllTNgKTJn+BGJg=; b=hJryKLPeBm2/vvtqCvXYyPJ5GRf/4i0dBJE1RlZPQl5vhn8Dhi0xvUD10S+JdC8Sg8x/KsCz/bph6U+pj6Zy1hCqVhLc86k9m95bVQRq5NVVEfJj0dryYRZXGcAO0Td17/G9kn8jf3SswDKTNHLlD6U3JJOjS1FMM71ki8c7UGk= 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 VI1PR0401MB2429.eurprd04.prod.outlook.com (2603:10a6:800:2c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.21; Thu, 18 Nov 2021 10:08:11 +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.4690.027; Thu, 18 Nov 2021 10:08:11 +0000 From: Daniel Baluta To: broonie@kernel.org, alsa-devel@alsa-project.org Subject: [PATCH v2 2/8] ASoC: SOF: tokens: add token for Mediatek AFE Date: Thu, 18 Nov 2021 12:07:43 +0200 Message-Id: <20211118100749.54628-3-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20211118100749.54628-1-daniel.baluta@oss.nxp.com> References: <20211118100749.54628-1-daniel.baluta@oss.nxp.com> X-ClientProxiedBy: AM4PR0902CA0008.eurprd09.prod.outlook.com (2603:10a6:200:9b::18) 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:5706:b700:863d:d4f3:969f:6fa) by AM4PR0902CA0008.eurprd09.prod.outlook.com (2603:10a6:200:9b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19 via Frontend Transport; Thu, 18 Nov 2021 10:08:10 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fd8090af-0a46-48df-afbc-08d9aa7b53c1 X-MS-TrafficTypeDiagnostic: VI1PR0401MB2429: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2449; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5lX5Ki7YIKPVgjB1/Jue1MM7P+/SYl9cBDST0yD6zkxiBtI8eKV/ibzw5671k9xMnuRZGJWfUN3SyDR6CHvsILNE5+pjuXMEQqOh97BfFE/D6xERNHSmr+qBBB/XOqkuiWmXbr0xCylDPcqLNdTJPADYhixb30wM0bpFFFCGDT2+9IZN0eBcMutPKemYBXqi87BMHZHBKN/DEh6NZmhXt2raLjoLXC+/wLuraUEKNB24oo3R+zN4RgihIkG4PtoU6ZkXAE3mOYs0uYwLxw5K0ZuWCqwPoEAx9NyM3DY3vvCeVNBmXui98/fS4UxosvrrsivNk6fDowpEQFxwq7stFRnoiLdThK9Uz5qX/Am4zHXW+ZkRpCe6Qwd6ChqrNHd8/lO24/8LQBGAMoSmQ4S+VkApQGFxnC0MrioPaMJGjQ4yELU/5exG4EX9WnHiwr3koWDSdvAVZ0JdH7TgNiZQBnvhFsEmuFuHoi4X1cLfR3H0vl7XEg2rq7uX+xAl0boy01/eCmZG0Ua7GoaRa82YhI1YnYYPc0GKOcGDIl6xRwhbTmbEToAtwBDQVYbsF4+ghTxhFFacym8fyVc//B8OU4wbvT/4O3FAiodzrNIh7ooAChiw30EhKNTZSvL53xoUBq+BJKfZ8oTZjhA57d2dEA== 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)(5660300002)(54906003)(316002)(6666004)(7416002)(52116002)(6486002)(4326008)(1076003)(8676002)(38100700002)(2906002)(44832011)(186003)(508600001)(2616005)(66946007)(6506007)(66476007)(8936002)(6512007)(86362001)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Fma8r53+M0YrvRX7W7+vyyYIra7n?= =?utf-8?q?gRAraYt+FthKwG6Z6wOcjQyf+TUWLqeJvs2ZE7gBElQYCFGCUTVDHcV/A9SqSrEou?= =?ut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yHufgPYEIp1nsYNZpYZ9k0jgM+bcoACiz1HYQ9X/Gqn0KPx+qnX2kqkEMRTy?= =?utf-8?q?sVeZAapJdzxrRHijjExMWp5A8w8o9GAPtpdbevZFFTEDFa0/shMLIusfu3xhzEXvp?= =?utf-8?q?s+MayodIyi5WssgYOVA+lQcaMGgr38iQgZH2+BeztFvW6Zt1e2D44AwkI47c26cRP?= =?utf-8?q?MjvoLqzWgJdurx1cyEYQFXc0SLDd7Be4HxLpyWyB1eGN8EN+woIM/gbvqbYNHFwsX?= =?utf-8?q?RWSuTfk4djoaHE4csedVKa+HtsY8nUEP2mXAIvRXi4qIhpnHy3hB5yvujRKdSlf86?= =?utf-8?q?HQ0Xeg19p1CUlpEvP+d9KjcwEGLVD7IxSQ38qaVQ9kZNh/ywKQMWixrorl5RO122o?= =?utf-8?q?pMFNeTG3+bFs/+MsxyfC9QmU3R0yYK3wlQXg8HdZ0DFEcb9k9C3fDdSRdYud+VceJ?= =?utf-8?q?lnSF4Z1DkGelblyhLsOEuIqtMzDeTuSXa4JarSKMcR9ebF0rse9o9kSSD1FSsWUA0?= =?utf-8?q?yNp+ATa6zZWIJ29o2U1wRR0Ux0HnCdtP9tGF6OLousL6FBIHBLGLu/bA12Wrw+QEP?= =?utf-8?q?02D4uu56pHErLpfkL6akVgCEoQ29T59SLs/0TXWh3Ek+qZVNFD8iHCXx8T9sOHjWL?= =?utf-8?q?YicysQjIxf7Kz+eyoP0K1wnPm9Zv7LlyjBhkL1TYp3o4d3849uZ7Do=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fd8090af-0a46-48df-afbc-08d9aa7b53c1 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5151.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2021 10:08:11.4806 (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: 46HsWQxwmIy3KFKOmcdVN+rHKKCn7D7fUIoLMcRmGjUyUQ6OrVJGWS2yFkcU7WQagMeomVsaIZhcRW0a1E4Tyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2429 Cc: Guennadi Liakhovetski , daniel.baluta@gmail.com, Kai Vehmanen , lgirdwood@gmail.com, =?utf-8?q?P=C3=A9ter_Ujfalusi?= , linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, linux-mediatek@lists.infradead.org, Ranjani Sridharan , yc.hung@mediatek.com, daniel.baluta@nxp.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 the definition for Mediatek audio front end(AFE) tokens,include AFE sampling rate, channels, and format. 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 Reviewed-by: Daniel Baluta Signed-off-by: Daniel Baluta Acked-by: AngeloGioacchino Del Regno --- include/uapi/sound/sof/tokens.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/uapi/sound/sof/tokens.h b/include/uapi/sound/sof/tokens.h index 02b71a8deea4..b72fa385bebf 100644 --- a/include/uapi/sound/sof/tokens.h +++ b/include/uapi/sound/sof/tokens.h @@ -140,4 +140,9 @@ #define SOF_TKN_INTEL_HDA_RATE 1500 #define SOF_TKN_INTEL_HDA_CH 1501 +/* AFE */ +#define SOF_TKN_MEDIATEK_AFE_RATE 1600 +#define SOF_TKN_MEDIATEK_AFE_CH 1601 +#define SOF_TKN_MEDIATEK_AFE_FORMAT 1602 + #endif