From patchwork Mon Nov 1 08:00:22 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: 12596019 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 74834C433EF for ; Mon, 1 Nov 2021 08:02:50 +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 C930B60F70 for ; Mon, 1 Nov 2021 08:02:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C930B60F70 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 3C3D216CF; Mon, 1 Nov 2021 09:01:58 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3C3D216CF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1635753768; bh=0AdWe+wESoIZLkxShjcJpWZfEBeCUzz5t4tdBvx0xeU=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=jWNT3ptbj89L5heJpDrX0URUf9ec9QyVM95OMcrqHoSeh+3OwnGzprwfE5bppzNIz 1yIoChHf3CKh3Lj+YpIwqGL3BQF9xPRPgfbDh0CcPg1tAB/MIN3rsESRNYjVci53a3 54JL6hmgg8/JkKNCEn1WoD7grZjZ+l+40SbXF21g= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C8E8CF804F1; Mon, 1 Nov 2021 09:01:16 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6E8FAF804ED; Mon, 1 Nov 2021 09:01:08 +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 7095DF800F8 for ; Mon, 1 Nov 2021 09:00:54 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7095DF800F8 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="B5UESwyL" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gzAfdJeoEPj/Z/W/jgXqdW+Tw06u6xkErJHMkUouc9iLnCrdfBmdvJLsXH6xVuybdy9ZyHMAW8VDSCU/NXbYFaCytFnxGQtQn0c5CRfKdtPhe9UEGAaUiTJ7lFabcXGAB6wQ4PHl5b0+g6suez2A5qiqDuvOemZy5ImPkqc3KEI6jGdnoubQPCVFUVlYKxYc1W8I2obwb5xtzStrP44JZN9CM6eUqhmzTWvYAxprfy367DP9qi07GKHqdMJr6Zj077/jTq7Lcn9M6fOARPfgso06boW+anrHEvuYugAA5YWv8EGAz7Y4eZ5gXlWSZ+/XbiVaWFqyrfi2oZOeaKQL1A== 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=Aqt20fJUIGTFP4E/vWRRVNFTpG1mnUMB2/YdINTbsV4=; b=fIV2CzHBr/UsfNGnn03UXqBZJqQOD9rin2L8SWPjyaEI+Y80TExsBnsRcjWna4mXiE8DjCpCTQpqNU9PSwv8c4cZHaWshmiRleywdDuQSnxSMAVVjNLqHdYW3JKIRSom6udsCdpl/jOEbHluLwURWy9TRPKEclwkv386KNHoCl6xiJL8Ym8kZqtH/xOb5sjy2xv3fh8IqA0Utm8rc9+yjotYBOtV1od66r88hKFFcZwtztaRVWIVfQU2xQkUD7zafAgHkyKWwxhmd5WAq1SakTiaqZWck1rzxGF2+ZAUOLeKwZzh6R9JVSmgGYa3aKnjFVR+RmJ3Z2/nCK1pWHK54w== 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=Aqt20fJUIGTFP4E/vWRRVNFTpG1mnUMB2/YdINTbsV4=; b=B5UESwyLVTEjNWZB3za2DG72jGdw5Wogp2Hk4F8yZYKyw6pDCr5wyKTyIJvocJV/s9krzKwh4J+l9n5yjN3NG8L8sLKAFm5AX7jbuvXuNZNXVCvqEY8CcLM/+SOyoDUCw9JD5lR0ClkoUY6iciiPkjr+lAK8Ncv7YA8uX2T06wA= 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:50 +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:50 +0000 From: Daniel Baluta To: broonie@kernel.org, alsa-devel@alsa-project.org Subject: [PATCH 2/6] ASoC: SOF: tokens: add token for Mediatek AFE Date: Mon, 1 Nov 2021 10:00:22 +0200 Message-Id: <20211101080026.297360-3-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:48 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1c9dd50a-e17b-4483-0c26-08d99d0db816 X-MS-TrafficTypeDiagnostic: VI1PR0401MB2430: 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: EqxBmEOIB79aqUgcsADftyXcxLEnzYkKud9uGRBuEls6BFN/jLs+TETgRXFe6ozov8CmvhQAAAYCD60JHGKiKjtcY5oW57MURWOOvf//1yq0CQTzRsd0j/V4FJrEA3gqKwhZnIgOwysBlr9g7dEkT+/vmy2R8JYCMXkk8hFh0rcN01fyJXlLdUkZfRV7ucOXB/AwJbvMChI8WHwuoLcJc3+qAHzRqM7uLk1KFvfqWaBJATbR8dXd2JsLTqKHbPSKuM6GKUEV0ctujlomEpeKFdU8JBWbiHnVMV2RwAMet3CeNhw614AQ01Mf/WZNzzXjqUAXa+XLSHMCscquNhCR6IGkqFHurm3He67c2VKBcOoDPuZdXxxxsye2oxM3fDfExesmaheyh5as8yvtjFeZxXMg/EhCyGkVjKNV+qzlsUT89GWk79ZqJ7DDO8C2lwzwSPQiUTU7ENS9OR14fo3KDUHBAYcY9wniipeTOmOD7LIUNHjeK2qMLINYle1X7RxNpi9Jbd+HCkLwFvpsbWm7g3gbw9XF1gxZ36sX6al6VWOwYFFN6DDvOy4Ww60teyvdHdr7GqFS6CXar7pQ0T4a7L6nyUeUX2UTxTM6JD+bckCsFvfk8Mhj/fDJvm0LyttAmxtL/1Et8LMuq1lSp8JOPA== 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-Exchange-AntiSpam-MessageData-0: =?utf-8?q?sKQtG1D2tdnw3lZI4IMjx6O5AVk2?= =?utf-8?q?zjY3XHJWZyge6NnN4vNg/Z7S9UsxgTISy0+EB9A2lc/TuGhT5ebh5/f2PD6hDx0H8?= =?utf-8?q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ndmIlD0wdXZei4cO0L2yhgE5IF7pYZVLWuz6KGbwHmFi0iyjfi7g86dapATyhb?= =?utf-8?q?05ZJJ2NRVPzATIV510GqOpM7nkg6hTJ8VIVA58nAm6bq/ljyWbdfTp58inEGqL0QE?= =?utf-8?q?fKtBFxY6x8TDD4HR309FdH9bHXiQnJTqzqhufmR4of+WSAnb4EGQl8i+ZPDXZBGn0?= =?utf-8?q?y0c1lgmib00OzMscFR9SLQCmtoVu9agKzB6kxU7yJas/hkydnm/dE6vkiUq4ED0Ru?= =?utf-8?q?6LHavezXCcVz65L+xedoVgkM/Tu7E+1P6cGrvNDbBJ6NfZniaIP0jLE3hwhROeHeX?= =?utf-8?q?l/81iNRXKq6aRr7Nz2GQVr25nhKit/v+JzDMa3x6xrSGe59w5YKQT5kgTIU7SDbSH?= =?utf-8?q?xDK4831Xf+QwMBZaseQuEfpCo3dFWMIPUTEEtNbMKQeAqixG4Hy7q52aHLQzZ/4UA?= =?utf-8?q?gPXcOIFIrOov0pNy4v0mGVE5WXdF7K1fUi9bCv8kZjD09fLJ1m5/KSdg2yq0c/FB9?= =?utf-8?q?99qbutL3UvfPNNyLI8UpuHNs23cwYur3n+zHRPpbPMmTQUaUammtm9kKShXnIPksK?= =?utf-8?q?ZDQ3K01qWZrbk4TGASiRocIOUKKrCbOo5z5V1VFiurI5ZnuuYei0DDmYAoYD0eITH?= =?utf-8?q?lmPBdjMIMc0FN6KXwLiSFm8sHwWBSb+oDEBfVsEl42tIB0Y+e5h3C0=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c9dd50a-e17b-4483-0c26-08d99d0db816 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:49.9923 (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: cx6JJlzCq98sDjkq/HnSqM4ICmM9NROzjSnFVnRmv/qO8rJIR3fJ6q2i4xSx7I9aqJNo4naAb00OR3IduB+FVA== 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 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 Signed-off-by: Daniel Baluta --- 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