From patchwork Mon Jul 20 07:20:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 11672993 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D698F138C for ; Mon, 20 Jul 2020 07:23:00 +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 6D3C9207DF for ; Mon, 20 Jul 2020 07:23:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="cUbgjPH2"; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="ORIvvCQV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6D3C9207DF 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-devel-bounces@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 064D01665; Mon, 20 Jul 2020 09:22:13 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 064D01665 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1595229779; bh=np8lUMHQtw7IKYU8wzPdBaID8cKTuiUCC8a+U/Q94mQ=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=cUbgjPH2DQxvuTWw+HBGQPdKz4B0wXJhV8LFdFi/zgJeZf61vb+zB7rEHpKKNAYcr uj2SVrSyurAD0bjEaAi9JBb4ZeZEQ7xbKG3wTmBZAwv5mq7T88UyFBLwg9b20CamIi iy7ZcaZ6Gx8GmSWrfxs1fHsO7b3GoolsmxhLVhQs= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id EC6E6F8015D; Mon, 20 Jul 2020 09:21:38 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1430EF8015D; Mon, 20 Jul 2020 09:21:37 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MSGID_FROM_MTA_HEADER,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60061.outbound.protection.outlook.com [40.107.6.61]) (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 DCA36F80125 for ; Mon, 20 Jul 2020 09:21:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz DCA36F80125 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="ORIvvCQV" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YVBTnRtIBh4Uj1rR6jm9+1yYQYsjkwDUYAkABMcngH4RkEk1hwG+rFAVUbWx2RgxUNKX84BnsReLOlEo1iNw+DJN2AKciSm1mpCbCEAgPmvrRfcT9K9F2vWbpfAGwi3jWlBv0BarPmKb7AVOaNWDOZ54FAVpigECle+m0FFYxGqPRrgGqKkS/fkmphQLWWwld/5AkvCkcB8ERFwc5O+rRCfvYg73kzyNZCzMcGD3/2JwVMOoggvsU4gfUScuC1C0XQYWGCXSZTinEKoSzB37Fd2B+z8hBGojThLxoaEwVJx9ox/yeBxfs+p+UOfKGp0C78Jsx7KMDdIdnpPNVem53A== 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-SenderADCheck; bh=jScGxkXwLTMvCxUuG308sljKFUZyywYxqVjjHX/wgck=; b=cV9NlJq9pJlT8S8XF3v06kSykt2gfsFNiQMXrbBvB/Iut7TAwZasVl60NpT7C/8Q+uJQu3L/JuWhYg+obTkZsVcyjQJygzmdP3fr6Ur+TPiOakh5XiEjqXpJ+3A4B3KyhF5SyeauikCNM1pE/lWIIPuuLoXfvzRe+UF0sBv4mgx9vDsPk1c+CoqiqRQu9eNK87Hn6+mxNSk9brT/PzX03ixknwgiu3WP7+8tqvJfqB3ukn8gYt0xzpyDPOtTfVf9Q7SmN90l686LvgtS9wpEFcYAqA+F85dOBrQCz+SpBo5aGABzUa42q2GvpqMi3FnsF6J310l0NII7QsdkPSsdHw== 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=jScGxkXwLTMvCxUuG308sljKFUZyywYxqVjjHX/wgck=; b=ORIvvCQVgljxmyBpQ8nFKve7sEnfZiCm3fyHxOHoOhWZKH46h/DgI3Xt8tx8I9TJQM2weZL8AMDBAVr+u2wqdyPHC9YFCH9U+Uo4rgwfw5m184RzWNq5LsJtjKwYcbtj8dDlk3hgAQHeeFn+AZ2kSQO3CWb9zcabq9lvGCyu7X0= Authentication-Results: alsa-project.org; dkim=none (message not signed) header.d=none;alsa-project.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) by VI1PR0402MB3344.eurprd04.prod.outlook.com (2603:10a6:803:10::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.25; Mon, 20 Jul 2020 07:21:29 +0000 Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711]) by VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711%5]) with mapi id 15.20.3195.025; Mon, 20 Jul 2020 07:21:29 +0000 From: Daniel Baluta To: alsa-devel@alsa-project.org, broonie@kernel.org Subject: [PATCH 1/7] ASoC: SOF: define INFO_ flags in dsp_ops for imx8 Date: Mon, 20 Jul 2020 10:20:40 +0300 Message-Id: <20200720072046.8152-2-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> References: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> X-ClientProxiedBy: AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) To VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1864-103.ro-buh02.nxp.com (83.217.231.2) by AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.14 via Frontend Transport; Mon, 20 Jul 2020 07:21:28 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [83.217.231.2] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7fdcfd5c-1db2-4dcb-7b9b-08d82c7d8537 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3344: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rElsfXvFnTVfsYcTBxJgNKv3HaH7R8bXwU0NoDLyYIV7X5Y1ncV2V9jG3fM18WDBq0Jtb7ppkfIQQdslTcnWCGjIjnOYCz3C9/vOySFmQDrjwmP8FEOKUGV1mYtHYZ6CYeA6EpBSWsQT7hOAhyiZyCHoHevdrWzZRoZ1825kpVlqzwSnojPpJusisbO8URV6ISVRtl4PbjhMwv+E8hvHZ/NzOvf+0OAqCBKo3RVnPelJBQYsBDwbQ+GQeh8nwTz0+AqE8vwTWkRfjrTk40e5kwMaFUy7Wa8mkt8QwMZA/iL5PqCNmWEoOEa0LaSIjaVvWBB4++KtNKGfq+BnEmRVyg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0401MB2287.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(396003)(39860400002)(376002)(346002)(136003)(316002)(6512007)(66476007)(66946007)(4326008)(66556008)(6666004)(186003)(6486002)(2906002)(52116002)(86362001)(8936002)(44832011)(26005)(1076003)(956004)(478600001)(8676002)(16526019)(6506007)(2616005)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: zXcAWpArF20ylLTRd799DtIOf9QnJVL35D+wAwIyA8NX0fmnghVCuBZUv1tqDxOtnOho54HxxK6w933OztVReiyQkqYhJeGdcNVacNGiL/qCDoY5D1Q8454jCQ8DAZ9ZWQun9x5Vt4TzuCeow6p97uSMf7E0ku3a+9Fbl4z54amnWO53MVsUDETM4KzqsjA8B3i4gmU/GDPwFT4vqQECr8zii3uYeJJTdrooTq4KnF4/kB5FVaD+IkLN+NKhEgNrhqMaE8UYS+RlFdo1smzFGpUArdTABQx4gE0BL3KfRv0zWtMNzNhSQnYD2WqrltE2gCJIkMLnXEhcEmR2nL48L/6DiZmhwivx8O3MV1MlqNxdfW7a6JDMh54YL0yBrP8aMkgEo08sfqG7RzviNoBw/iQ1wECYHkXzFpGf1ErJZx3ljt09L4Vw2YwBJpFQ/98zJfhKSi7Ap9cpUH8tcDuDNG8ZjUfWPdx6p7VEy1XOrVI= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7fdcfd5c-1db2-4dcb-7b9b-08d82c7d8537 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0401MB2287.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2020 07:21:29.3353 (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: CAfVCu5QncvRm1xTe8ltHzycOcXr0SSdqTSHmYLsvEjFRBkKkdivw7ULQPJfpCGMsd5BkuwryP+xLIy1AHUKYg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3344 Cc: shengjiu.wang@nxp.com, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org 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: Daniel Baluta In the past, the INFO_ flags such as PAUSE/NO_PERIOD_WAKEUP were defined in the SOF PCM core, but that was changed since commit 27e322fabd50 ("ASoC: SOF: define INFO_ flags in dsp_ops") Now these flags must be set in DSP ops. Signed-off-by: Daniel Baluta Reviewed-by: Pierre-Louis Bossart Reviewed-by: Kai Vehmanen Reviewed-by: Ranjani Sridharan Reviewed-by: Guennadi Liakhovetski --- sound/soc/sof/imx/imx8.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c index a4fa8451d8cb..b558132bb609 100644 --- a/sound/soc/sof/imx/imx8.c +++ b/sound/soc/sof/imx/imx8.c @@ -416,6 +416,13 @@ struct snd_sof_dsp_ops sof_imx8_ops = { /* DAI drivers */ .drv = imx8_dai, .num_drv = 1, /* we have only 1 ESAI interface on i.MX8 */ + + /* ALSA HW info flags */ + .hw_info = SNDRV_PCM_INFO_MMAP | + SNDRV_PCM_INFO_MMAP_VALID | + SNDRV_PCM_INFO_INTERLEAVED | + SNDRV_PCM_INFO_PAUSE | + SNDRV_PCM_INFO_NO_PERIOD_WAKEUP, }; EXPORT_SYMBOL(sof_imx8_ops); From patchwork Mon Jul 20 07:20:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 11672995 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 176B1138C for ; Mon, 20 Jul 2020 07:23:49 +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 9EF52207DF for ; Mon, 20 Jul 2020 07:23:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="JZrelPK6"; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="YoGIvqBE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9EF52207DF 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-devel-bounces@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 22CB71669; Mon, 20 Jul 2020 09:23:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 22CB71669 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1595229827; bh=ZCVy4eMmcrqkp4hw2RV5tyiFc8tgk3ccBWvKmpePDRg=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=JZrelPK65y49P8U01icGtDB+CicSKVZjWEGNtx09G8FGGOQxH5IbERBEqF9Q+ST96 g1F6bCYWsUE9Rb9zov3eA0U4aVQRbSHDxrjmdEjxDaU1IOpXbVAZLgQ7hjbpRymuNO GiZJKonBI4UjJ5RXNSyXJXGmSzdpe3Ho6y39QPWY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 953F7F80274; Mon, 20 Jul 2020 09:21:42 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 85F2FF8015D; Mon, 20 Jul 2020 09:21:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MSGID_FROM_MTA_HEADER,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60061.outbound.protection.outlook.com [40.107.6.61]) (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 69BFDF800C1 for ; Mon, 20 Jul 2020 09:21:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 69BFDF800C1 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="YoGIvqBE" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R+MxuqmJJpf8YB+UxMm+Z5VzoofyxuHd73Q3SYV6YqfMwt5OhiUHx7GHfSJ/xQRoIwEGmRoVg3zJpILOyEdQ+YwfnwSm9CP3oyrdfeTeeBzs+d7LxFbAnmTEVK9wM0WLSdVwy2a//tNsccVEIWHO5tdy9xx7MUolvTzswf3VutLK4TS8jq77rwxx61DLaEoLvRbNHJS157roogx5/T3QIj2n4Fh68RM59RrKnJeNl9O9mIGv26f2iZ5dbxfbxa/zgTJnE2tINZrV20G6P/LKhC6auRNDMPHCsmREAczBMTZpe/jK4x/mqs7d+BVT6/8nZGWdVESzXT4OsL4HZW71Dw== 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-SenderADCheck; bh=oPyaqWNCVdgTYlLWHRRgaYeOBek2YArBs9LBDLnpy0g=; b=ZE7un+ZWzuZcgu+95FhMquihVRcl2id9XE43eBGBhpeene/A7wxBn0vCTfKhoWN2hRaBwLSnsrUKgXSxqrYHnclbIogk0ut+rZuX02bPqqWdL3NlWd9S5vqge3u/2lyMIz5myY3vPZGiQzJE/2kZZBoBW25xEFC7VNA0DCxTNSyZYZTy9NyeY+sOdHbeODSTc8rfXqdhETjkREF4g8wU4zqyGsf85xVvrD1APpjS7sofYwaDyFkuw21Hc/g/ksyNFVE15hkgzuyev91irqn6EUh1stMDeu7rLlzXWzQ5N54Knwj8+YUv9/F72IwqJ8CRxn0w7g+0CKWN9Rb2RdNHGg== 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=oPyaqWNCVdgTYlLWHRRgaYeOBek2YArBs9LBDLnpy0g=; b=YoGIvqBEUeZFDcJbnokEZHMXxEdOSysuM9WKfss+8hQEGQsSPS1eatRVLk2PCr/4ZKATr8kFLhHVP2+bXf63PU1UXtR4AKDjBlgkGKlg/VMsue89o/Br2zXAom6XgSZPZWRZwMA9hSLJDLRSH6csCS9MGqNiJPjE0jFRok3IyiU= Authentication-Results: alsa-project.org; dkim=none (message not signed) header.d=none;alsa-project.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) by VI1PR0402MB3344.eurprd04.prod.outlook.com (2603:10a6:803:10::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.25; Mon, 20 Jul 2020 07:21:30 +0000 Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711]) by VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711%5]) with mapi id 15.20.3195.025; Mon, 20 Jul 2020 07:21:30 +0000 From: Daniel Baluta To: alsa-devel@alsa-project.org, broonie@kernel.org Subject: [PATCH 2/7] ASoC: SOF: imx: Use ARRAY_SIZE instead of hardcoded value Date: Mon, 20 Jul 2020 10:20:41 +0300 Message-Id: <20200720072046.8152-3-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> References: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> X-ClientProxiedBy: AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) To VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1864-103.ro-buh02.nxp.com (83.217.231.2) by AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.14 via Frontend Transport; Mon, 20 Jul 2020 07:21:29 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [83.217.231.2] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5871334e-ab67-41a5-861a-08d82c7d85ec X-MS-TrafficTypeDiagnostic: VI1PR0402MB3344: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1388; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SV1N/l++4U28Dsx64ghOOaBoXN6UCBbcG7XwAM4Esni6Z3PBU6X+RQ82SwhUqrMAyJ97B1IgWia5MA2e70EPo0j7RVYMKoXLCgvtvIVwHaaHKLUNEFFIXCfXepvX8xUGC+M9W89SWOFRWfXJYJOnO+1Moiu0ifCkrP3OkuVN12QoJ6jnFpImSs1NY81p1SUFTUoPz7b344cQbwPX8hKvz4lOTQkg0XDzYxIFBtOFqxFB9Wpn1eCeJVuZNb374hRbSaJhRvUhjX7xWBeQprEbNUsZi7c1n1oU7+9gQG2eqgdFPGxU9DKimbio9PON4Y3DYfXIlczh6JtxrWiow5PUFw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0401MB2287.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(396003)(39860400002)(376002)(346002)(136003)(316002)(6512007)(66476007)(66946007)(83380400001)(4326008)(66556008)(6666004)(186003)(6486002)(2906002)(52116002)(86362001)(8936002)(44832011)(26005)(1076003)(956004)(478600001)(8676002)(16526019)(6506007)(2616005)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 4P9x0urSvmI7ZHGDMfhAtevFqNE5nMQmgbwhhNeX0UL0qwZRN6jTWpfLlFQzk+rJMBorsWLkxD81/RZzwnd+qSVydhnMekVzVgEXUJWxWE+vHvsvhzdOSGgZSuFDPWIuJ7QPaIKpkPlxMcLSL9/vyAj0/4UFRA5JONTSCiP6WQQU3FtrDQlRTNZk1iB83wuR9OqwzHHSArrJlrR79X21unYgCQ1JbjCC/Xe4D4uB6ODudrUy7mrUL+5kNoA+H84f07lkefLsLmZ8C4L8PHargg9gmObthXqQnMgiNLETH7oDDlvmzEAfTuUOBeU1A6vrNc+Tes5f0VLD/IZNpBBc5Sf69vapLTXc+mSEPiFEKSiOlgtlyQTSYkRzQnZM3rUQlbjJ37WXyed0ULwZkjJMnqIJaWY5HusNoW68Ilch6vNffGPRoZmyIB9+RA/FQQnaPY7yGtY7oj32ZrcYmAAjKQ9/ozaSEMy2Jfsgs6/mbQ0= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5871334e-ab67-41a5-861a-08d82c7d85ec X-MS-Exchange-CrossTenant-AuthSource: VI1PR0401MB2287.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2020 07:21:30.4588 (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: iAd1KFIa3E7R3yYKQR02hGu7a87lOAN9/dgRYZoerjTLlHlFobApV608NE0ZukFL1aYykDNSTe9+G1WsJQjcfw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3344 Cc: shengjiu.wang@nxp.com, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org 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: Daniel Baluta With this change we no longer need to update num_drv when adding new DAI driver. Signed-off-by: Daniel Baluta Reviewed-by: Pierre-Louis Bossart Reviewed-by: Kai Vehmanen Reviewed-by: Ranjani Sridharan Reviewed-by: Guennadi Liakhovetski --- sound/soc/sof/imx/imx8.c | 4 ++-- sound/soc/sof/imx/imx8m.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c index b558132bb609..c7aab646cb8e 100644 --- a/sound/soc/sof/imx/imx8.c +++ b/sound/soc/sof/imx/imx8.c @@ -415,7 +415,7 @@ struct snd_sof_dsp_ops sof_imx8_ops = { /* DAI drivers */ .drv = imx8_dai, - .num_drv = 1, /* we have only 1 ESAI interface on i.MX8 */ + .num_drv = ARRAY_SIZE(imx8_dai), /* ALSA HW info flags */ .hw_info = SNDRV_PCM_INFO_MMAP | @@ -455,7 +455,7 @@ struct snd_sof_dsp_ops sof_imx8x_ops = { /* DAI drivers */ .drv = imx8_dai, - .num_drv = 1, /* we have only 1 ESAI interface on i.MX8 */ + .num_drv = ARRAY_SIZE(imx8_dai), /* ALSA HW info flags */ .hw_info = SNDRV_PCM_INFO_MMAP | diff --git a/sound/soc/sof/imx/imx8m.c b/sound/soc/sof/imx/imx8m.c index 287114a37688..067d2424c682 100644 --- a/sound/soc/sof/imx/imx8m.c +++ b/sound/soc/sof/imx/imx8m.c @@ -280,7 +280,7 @@ struct snd_sof_dsp_ops sof_imx8m_ops = { /* DAI drivers */ .drv = imx8m_dai, - .num_drv = 1, /* we have only 1 SAI interface on i.MX8M */ + .num_drv = ARRAY_SIZE(imx8m_dai), .hw_info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | From patchwork Mon Jul 20 07:20:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 11672999 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 24B4713B4 for ; Mon, 20 Jul 2020 07:24:53 +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 AEE51207DF for ; Mon, 20 Jul 2020 07:24:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="EkS5nzcq"; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="Rp7RQ9tk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AEE51207DF 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-devel-bounces@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 4246A847; Mon, 20 Jul 2020 09:24:05 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4246A847 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1595229891; bh=pXmXL8AwYCP2HadLyivOCQpvJXuAvQ4YquRbZ1woCSE=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=EkS5nzcqXTOf7gPp0PTUvjzXKjK5Xl+Xm8rn4wYmm61Z6ZIgPoGUFxOyukEd5FtaP JHen8ZkOEHN5Ch++X4YITR1f0iYkFEYNU/RMs7N40snrbuIat9S4SI9hdz7gG9mnQU /ZzwUIleps61D+VGDtS0Se4Uc+vECAZGZUciPUM8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 2A4AAF802C3; Mon, 20 Jul 2020 09:21:47 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id C21F9F80279; Mon, 20 Jul 2020 09:21:42 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MSGID_FROM_MTA_HEADER,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60061.outbound.protection.outlook.com [40.107.6.61]) (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 B0345F80141 for ; Mon, 20 Jul 2020 09:21:33 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B0345F80141 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="Rp7RQ9tk" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F5xKPjj87e1X6vSeLZ/UCwI4fMu7nSY1fiHBE5IJ0pmTyh6CmaXVj4u04FdbSVUt+AuEl/hMhOz9hsiFTbeAWXXIl8F8bYEmHnHgjtX3gs/TpZAI3fpyrTH3ZQ1aVjKQxkI3TDl5KUXTGEhrz2HvdCbLEeD8iwDiC5cIlbwGyUo/oel9HaNRvemUlBuA10Bx8xYb05T+MxRnu+OtXDU904lG67Dqemq/BCFT0NGExL5upZ84O8dOrbaTueO8Na3GiMgJTvgimOnkHew1iAX79N2CCB+3GdHLv2Otjc3JXLxZmHBKMnlnOxhWL5Ur7j6xaOzf7yzPigrBD5omRRynXg== 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-SenderADCheck; bh=HrFQyO5aRtGNHudKQwIZBDdAXEsLZCxckW0+MVJPsBI=; b=hw8iUmbGdLV4JwV/bg812UfjzXhUbQDql7eQ0ruPzo5N7uNW7/nqtNaAMRDIUSZ686/tNc0beFwvId+GHq4I6p5eP1vLa69ykUtkZLc2jo//cfXhVaCdnFc7unNpddJ+rLqsnkZh2Puq0RgT17ugZFzsgtee7p2QHMW5x+smvVai+ptmOw3qpzWbaQ9/I+YFI5MkDC6a7rEmzgQn28581rQGFkSLAY2Owt8UGdezJk5pU//tglWehW9k3Lt87KDgS+BThWoXJ3KpLGcen99qE7hUOHs8MlNB00l7YQKioVHlp88coy47kXb5J3bLr34/9sGJLRnMrRYTGN+k9Ra0bg== 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=HrFQyO5aRtGNHudKQwIZBDdAXEsLZCxckW0+MVJPsBI=; b=Rp7RQ9tkAXdcQgULHUl0ZfYA685W9+9nK+dNeU8ss/gHTWLN2VTR8sdYlk+OwOBnBkVtXe582zL611pp6uWy8/v+jTIZl29eI/IiZrwJx+WlthYF5IwdH2pEPOAeGR9DaPYnTgbYL/oimvw8ao2lZBpTf8+MHiDJOfPX3yg6IWs= Authentication-Results: alsa-project.org; dkim=none (message not signed) header.d=none;alsa-project.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) by VI1PR0402MB3344.eurprd04.prod.outlook.com (2603:10a6:803:10::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.25; Mon, 20 Jul 2020 07:21:31 +0000 Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711]) by VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711%5]) with mapi id 15.20.3195.025; Mon, 20 Jul 2020 07:21:31 +0000 From: Daniel Baluta To: alsa-devel@alsa-project.org, broonie@kernel.org Subject: [PATCH 3/7] ASoC: SOF: imx8: Fix ESAI DAI driver name for i.MX8/iMX8X Date: Mon, 20 Jul 2020 10:20:42 +0300 Message-Id: <20200720072046.8152-4-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> References: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> X-ClientProxiedBy: AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) To VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1864-103.ro-buh02.nxp.com (83.217.231.2) by AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.14 via Frontend Transport; Mon, 20 Jul 2020 07:21:30 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [83.217.231.2] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1e43e508-29c8-4986-8817-08d82c7d869c X-MS-TrafficTypeDiagnostic: VI1PR0402MB3344: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:826; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LyPHiPRl7T2uQnFOI/wcLHn5gIZ1bHc2u1e2GlHPdO+yt+hfTcODCIVSh1UjSs7OO7cxJ3jhoQByl41tGW4x6Rnqor7sXMzHGE0rX4WC822LfyQpvq+G7K6nfCqP5D4muhOyL5lXmscoceqwctECrZ43sYSGtVt7DmXyBe2eFE+o+D8amzGAAGpCSfKdce6RdS4hUtam3gOR1JgtAvMdpnqEsRm05TGau4hORJIDJ1PvLl75Tj6i/DmMEEeyaLjmoYg9cU6fuvHvrZB7eafVxwPAxVeI24yk7Z7PDcV173IwRSUcC9mm3gSgixgoTZ6olkizTsIpfYJMbmriM3SL3g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0401MB2287.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(396003)(39860400002)(376002)(346002)(136003)(316002)(6512007)(66476007)(66946007)(83380400001)(4326008)(66556008)(6666004)(186003)(6486002)(2906002)(52116002)(86362001)(8936002)(44832011)(26005)(1076003)(956004)(478600001)(8676002)(16526019)(6506007)(2616005)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: N0r6Y1BEcBaDxfUFqeqFlyu7g/QPvEhGiYy6El6CYpGhx7mJpUP4JIvuZx1YEddbBzkcykEuu58bE7gVdL8aw9/MCW7s+oRTSv5Fnhgb0jcDBgibIEl4GBJmIGhux8Oru6ws6nHqgLE3woqzjA5BfU2GnQ4v0GfH2VPOzocKSgFrHJjVBtGbuVlKLBRjynOmO4NO2eCS9nrZE7QzY1SQHehDB8UAIywdZdWlF4O+24s32T4U2C+kXfNcA7lgJ9AgcSrQXkYZdrQyBPxineUwYCySUq4vj3v7QGIIOPDhTY/tFcC+0RUqPBAE/g3IhUNGq+JfgegZlte63pYtlDrWajeqVKS4+tQ6VfhemF/uiV3qaSzsjdgDh3s4oYS/4As2b1Fd1M1+/mq+1haVHVH7MtBG0fneYPMcyWg8+hxTLoUgCw0K6xSOJ0Hyt717DSy52IqYetcivpDuNbjX7Ic/HEfKepWofIxC8DZcF+DdbUg= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e43e508-29c8-4986-8817-08d82c7d869c X-MS-Exchange-CrossTenant-AuthSource: VI1PR0401MB2287.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2020 07:21:31.5703 (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: 2DAkFpFTxRwg8yhV1k2MXr5mpOeEdtCRSGNdBoEzQTx+I2IwAkoPawSC7ipWlecqtqr4i/dsaXHE3R2R94untg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3344 Cc: shengjiu.wang@nxp.com, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org 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: Daniel Baluta This must match DAI name from topology. Also, esai-port is too generic as they are 2 ESAIs on i.MX8/i.MX8X boards. SOF integration only uses ESAI0 for now. Signed-off-by: Daniel Baluta Reviewed-by: Pierre-Louis Bossart Reviewed-by: Kai Vehmanen Reviewed-by: Ranjani Sridharan Reviewed-by: Guennadi Liakhovetski --- sound/soc/sof/imx/imx8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c index c7aab646cb8e..f1308824e2cd 100644 --- a/sound/soc/sof/imx/imx8.c +++ b/sound/soc/sof/imx/imx8.c @@ -374,7 +374,7 @@ static int imx8_ipc_pcm_params(struct snd_sof_dev *sdev, static struct snd_soc_dai_driver imx8_dai[] = { { - .name = "esai-port", + .name = "esai0", .playback = { .channels_min = 1, .channels_max = 8, From patchwork Mon Jul 20 07:20:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 11672997 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 94C6D138C for ; Mon, 20 Jul 2020 07:24:35 +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 2A491207DF for ; Mon, 20 Jul 2020 07:24:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="b17Smm17"; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="KUjZLHhS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A491207DF 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-devel-bounces@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 AF8AB15F9; Mon, 20 Jul 2020 09:23:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AF8AB15F9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1595229873; bh=L2/2ibwBLqqdhuwv2f2+x5I8UQjJjfQv2r9G0FF94gs=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=b17Smm17QVfwvctt4WFUzsuZe3xvCeB0E4gvPHKGqHBE3sULh614Dn4yfnze/IhmH y0TVFxMWfeNJ7+hwOm7hmBPJVJVNHIqbqrc3wAEHPaFzQlTsTnpyL0/7R5Rm03hpl1 TzNUTFxkN5xh0h3gyrLbSnF+2/HVpOkTXAJqSpBw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 29AD9F802BE; Mon, 20 Jul 2020 09:21:46 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id A9713F8028C; Mon, 20 Jul 2020 09:21:42 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MSGID_FROM_MTA_HEADER,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60061.outbound.protection.outlook.com [40.107.6.61]) (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 003CDF8014C for ; Mon, 20 Jul 2020 09:21:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 003CDF8014C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="KUjZLHhS" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Uf7/4cPqZ6aPJYQmDgzMJ82XqAQMX39PpP3W7q8NuMenbsgUingDEJZse1ebdIz2tQzj15CFUYlqv2NV3OaulapACwY7W4gCTWeuBUseL6GlNagt+5TEZrhLgoHLTpLt6K1jkkqQHVUAKy9wEXakI+5MRW3FdjQOrMV5ItKEQ50f9KlEQ/t5JyAX6/4Bu/HTDACrl/y0vcPkBlIDWYC2i4siqrYoM8nKq+iG4mASb+lw9g9AXAsOwEFJlDSDy6QvBpy/BeA4/S0IbVS7ELl5ZUt3jd1K11e06ypujZzNUn+yy+gOCxTzcY/fQPZ3lhNzKgA1J13Y+gbu8pbPvnb0Tg== 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-SenderADCheck; bh=Ppl+MzYecAUT7GzxbaOvmkNzRp5j3+0dutQZ84AETbc=; b=ApmI8YJe2cKCd9HSNWXIpdnz1oTskdnLjbB8ZLVhJs4TJLQqLwavfMTiNtGlNBNR4ZCGUHdoPqcdsD8JN1bMMGa5Eq1EEJgZUE+26YugKgPcZQeETUkc38WdFgWYGUiMhR6TrFKYLttRl54c2dfuXmhUtD0eRoZCfPWaORVZOUNoihbysO5vDSjvkDF1dZX2nWx+pwAcVosTIfqbIKC5F6ZHu1FKCZ2QFEeiI4UpdaUG0QbYIaUEQPHFwf1WLWLUW57G+vBeVqhQOHgbLrlxvge/uDYqsO+mGl0337hxr6inMVlTJSNHlC3bv7Rh/YBJFrtQe7fBficecPGUvSaH6w== 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=Ppl+MzYecAUT7GzxbaOvmkNzRp5j3+0dutQZ84AETbc=; b=KUjZLHhSVfdEmEbMZ93vyF72mvTCAiKRI0J4zrI6/cPJGT0gPy/zrafXFV7UoEI8T9W6vdl+90v4a0B8ah8PtZ10MKAaV08f5x+3b+pASOkxK2VWpm6cs5zU4NNyAxmBTTtgipJNEwkvLDP6oY/6PF6YjFgN7ABLYTrlJS1Gfy8= Authentication-Results: alsa-project.org; dkim=none (message not signed) header.d=none;alsa-project.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) by VI1PR0402MB3344.eurprd04.prod.outlook.com (2603:10a6:803:10::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.25; Mon, 20 Jul 2020 07:21:32 +0000 Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711]) by VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711%5]) with mapi id 15.20.3195.025; Mon, 20 Jul 2020 07:21:32 +0000 From: Daniel Baluta To: alsa-devel@alsa-project.org, broonie@kernel.org Subject: [PATCH 4/7] ASoC: SOF: imx8m: Fix SAI DAI driver for i.MX8M Date: Mon, 20 Jul 2020 10:20:43 +0300 Message-Id: <20200720072046.8152-5-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> References: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> X-ClientProxiedBy: AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) To VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1864-103.ro-buh02.nxp.com (83.217.231.2) by AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.14 via Frontend Transport; Mon, 20 Jul 2020 07:21:31 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [83.217.231.2] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9d298062-8980-4b5f-d930-08d82c7d8731 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3344: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:311; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ncil2TGu67XkcJ2/bwRp2Bgm2cCC3SftTbkWRyulmAX/ZbETa1AFdd3gIkJzymopvQxm6imKmGDmkhedw52NQEOtkbaMoZSt9y62tjVS/pUXSp176Gq+MILLttjUs+DtS3yMNZligcVoi6cafxhV6f1XvdT1qJBGqvEFSh4l7S3tgMlrmatMAGmoNPg2tqGya6/kjVYtZc/MnaSiuv5szIzLYU0wvnFzD6cz6EaKXh3VL4HPMonT5Ypkjw3cZVj++nkxzDe+EUToMprCm9I+l5wDLK8P68d84SZ/ghqOUU6FHI5ZWy+gkrvWUpqamRtIKXxaSiMuJH7olcs6sd2d+BUVmlwcJuetqr0qLmczQR7TlruLvWD223kzh5zZNEu1 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0401MB2287.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(396003)(39860400002)(376002)(346002)(136003)(316002)(6512007)(66476007)(66946007)(83380400001)(4326008)(66556008)(6666004)(186003)(6486002)(2906002)(52116002)(4744005)(86362001)(8936002)(44832011)(26005)(1076003)(956004)(478600001)(8676002)(16526019)(6506007)(2616005)(5660300002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Q2X24uecKSJyKnxEvEb+PoKY2M5xR3GNYhmcupyp3CwDlILVQuVIbQhI84tCRzRJIiyybpwE7Apzx3r3DJ2jCvFE+PflE0jIwCE1bQIKkQ5aEDO72OjlpudqQBrX48BzfTRJF/y5JfPZelR40KvEjzjSftlCQ0jFpFukYxdhPVzZHbwVQOLMNAioFXCl+aWsZtCGRslEq5lMAXAvGFFvxENlmTJIfKCVK0kBfP1QDy7qgqtp5ymXl9aDIGmzalfl8XRKDlEdKWcAcOp84QgtllhyqmOa3i/3HUd0UgqPPnRR2xYA/+3CjIQ5rMUG/PygdT0bYkKCjXd9lbe140xyvl6LsuOuKfWzApaa5VCiZGr0kmyK2p3wHZI5KazJGsQwdxJVJ9mMsZMkeAFcQ5BDuobiICiM1/yTmlE70trvK3ruzBGWqVkuxDzeVnRTz8hDD/r/GMhNaAfmtym2Ne6J/4lJ0hELACN6QRru4VDUjLk= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9d298062-8980-4b5f-d930-08d82c7d8731 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0401MB2287.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2020 07:21:32.6269 (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: R1YpaxeoogqEBikH7/sc27xHp2HPpaDYxaohWXmi8+sqKeJGpPuyjUZV4cF/XL20WrIuGOuKtf27cbfZx/4q0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3344 Cc: shengjiu.wang@nxp.com, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org 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: Daniel Baluta This must match DAI name from topology. Also, sai-port is too generic. Physical DAI port on i.MX8MP is labeled SAI3. Signed-off-by: Daniel Baluta Reviewed-by: Pierre-Louis Bossart Reviewed-by: Kai Vehmanen Reviewed-by: Ranjani Sridharan Reviewed-by: Guennadi Liakhovetski --- sound/soc/sof/imx/imx8m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/imx/imx8m.c b/sound/soc/sof/imx/imx8m.c index 067d2424c682..3b9c560cd40f 100644 --- a/sound/soc/sof/imx/imx8m.c +++ b/sound/soc/sof/imx/imx8m.c @@ -239,7 +239,7 @@ static int imx8m_ipc_pcm_params(struct snd_sof_dev *sdev, static struct snd_soc_dai_driver imx8m_dai[] = { { - .name = "sai-port", + .name = "sai3", .playback = { .channels_min = 1, .channels_max = 32, From patchwork Mon Jul 20 07:20:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 11673003 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 72861138C for ; Mon, 20 Jul 2020 07:26:12 +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 08E5C207DF for ; Mon, 20 Jul 2020 07:26:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="M8vg1lLX"; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="SciYgYrV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 08E5C207DF 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-devel-bounces@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 919971664; Mon, 20 Jul 2020 09:25:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 919971664 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1595229970; bh=GuIoZPtDfCMtbLb+m8a7jIDKTby80hUsmPwpL/6Vd9c=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=M8vg1lLX3SpRkCfxC0slX8q2irx67aompHaVw+tlOdFecjVGQr+/nQBrnjmzgC02l Ynk61EyNC7y9L/BVNZ0Xq1efeMVr5YWbed9AkUb4Cfq4M+EY97OiF970kST5D9Un1z BE0lobcj400JRbMTpHDnwDSSz6kGTNC/WjG6d7a0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 77559F802E2; Mon, 20 Jul 2020 09:21:51 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9A195F8015A; Mon, 20 Jul 2020 09:21:44 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MSGID_FROM_MTA_HEADER,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60061.outbound.protection.outlook.com [40.107.6.61]) (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 431D3F8015A for ; Mon, 20 Jul 2020 09:21:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 431D3F8015A Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="SciYgYrV" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TxB2t7DmxC21AKIDXwcTg5MnR2n7Pg1TmcthsZWE4T9ozjeCURR4bxmUG6MAf0MCMuMCS2ByEEMLTit7I0XYaFoHFrg3nmA00b5fyqSokK9l9imK0DWACw4R8aqli2EaRtrSpUgT/SHw0NShPoaIOpk2Tl9aqFPD4dAl6z7y/OW7GV6VJxSw5AObUcjmtOUceHttPJR9rrZGMW4tinOVPFfMRXBcasT9xO+TGigtsMh3lGCD1hU9PykjRAmbVBnrIMxv+LVv+N0svUab3/9boVQ+xqTcYFot6uT3UPEc9A6t1vMTVC628AzuEF/k6Nvkhzsr6LMQ79OO6xN9vgz+4Q== 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-SenderADCheck; bh=RPerqZdB8ZRuhINmAG0H9T5I4wQjHd9CoVe4inm//8g=; b=Ql4spEkCNbMp3NTJaT7L03RuI6xVXoi85ffRxfIl192U55fD7pn37dVIbXJE1LZYqoO9ClZP6yzAmTFNrtK7HGflhncHmExev8o21Sf/JV1FjZIaFL3myLkVVzPxrBl8zyAHzMx0Vmadpu07Q0bWTNnQAUkz3nPVeMFjrWJAhuQso7DHriyN6896TVZ3tHUzYMq9jRdn5EZFdpfNgsdb0r70PEYVci4BEsO6Pon2CCJl8UTJ8k5govmY7HRFpVSeh+gNxsBHj9+CCU2DdpAV3l+u3nJXQFH0UeLuMWMlP77fsYwfyljtZJi1l+kcHqJB//rNxabujoyHJTs2/pTaVw== 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=RPerqZdB8ZRuhINmAG0H9T5I4wQjHd9CoVe4inm//8g=; b=SciYgYrVUWFk/j03+UTIygotmQB7DPsajLkS/CROVEuT3OUTFaEp1abY2R1IBSBvsV3lB5q9Op6xIyJMDQwX4FwJF/T3kk6rvmy50RXf09ymw78s9i1Fs32UG8uibJtBBuGDa81TX1IFqzPzfjiWRoz6OfWTBvYnwgCj+Yd8jL4= Authentication-Results: alsa-project.org; dkim=none (message not signed) header.d=none;alsa-project.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) by VI1PR0402MB3344.eurprd04.prod.outlook.com (2603:10a6:803:10::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.25; Mon, 20 Jul 2020 07:21:33 +0000 Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711]) by VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711%5]) with mapi id 15.20.3195.025; Mon, 20 Jul 2020 07:21:33 +0000 From: Daniel Baluta To: alsa-devel@alsa-project.org, broonie@kernel.org Subject: [PATCH 5/7] ASoC: SOF: imx8: Add SAI dai driver for i.MX/i.MX8X Date: Mon, 20 Jul 2020 10:20:44 +0300 Message-Id: <20200720072046.8152-6-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> References: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> X-ClientProxiedBy: AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) To VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1864-103.ro-buh02.nxp.com (83.217.231.2) by AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.14 via Frontend Transport; Mon, 20 Jul 2020 07:21:32 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [83.217.231.2] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d4fb3213-d776-466b-0f84-08d82c7d87dc X-MS-TrafficTypeDiagnostic: VI1PR0402MB3344: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:323; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rgWlLOiB50g2t2y8GoJYEaMK1DBJj2GLPnY0F2FUjxoa3G23YveZhyl63ShFbLNR0b7t8W6K/lKlPy4TtdGLG+cPvDDYs6Vo0hM2IP80yCV/hctc2suhcC7ymlBDyN8gB0zqYYPLqSosXQDN8iW+z87ypZAdsIEATv+bcMj7b4TtkxpOysYLNnTXGG1Zrs93A+NM0EFJxoM87CIWHAMrfPAPRUjnmeuz26tydtXMoJBlpHpL9qD5VGd2RnIlc3IdVtXSSquf+1HiLZUWGkGO5+MC1ALona1S2LoPx2l0WeB8HxoaUvB3tZNdEWo9Kz+VH5MZHes0GZctPB3QDlLV+w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0401MB2287.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(396003)(39860400002)(376002)(346002)(136003)(316002)(6512007)(66476007)(66946007)(4326008)(66556008)(6666004)(186003)(6486002)(2906002)(52116002)(86362001)(8936002)(44832011)(26005)(1076003)(956004)(478600001)(8676002)(16526019)(6506007)(2616005)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: AqC10o12gx6AWPdRsBUG0uBFAM/dz4VH9n/V/JZMI5S4Xlkdu46X2Q1r9QqRmF22PJ2ZltDJsQkSsX1KUfFqflBfruaVUMzaoi0zS1jBxq6hc5P957czLv6fa2hjBLQA5eQgG1iFAU62/Mirxvkp1xRb1txmr0kZN2Z7NGwaSAXTl6f3S9tTkZlyW1RFrMh/SorXI9FWbMxcRmEDuK3UFAlvkP/ObJMiEcYtTbi67qYQ10Y2Yj6Vim99KqMkVD2fvYwLj2EUow40PNsqtJbZiSJ/PC1Fw37Uv4nEkg9jucEYH3GYi21QgjytvdsgL81S+FJGtY5McUgSyX0Dlv1pQ/XsnJKZCk5gxKMJeLu1Z1ogcYv0aj0C26RaaqjpkLccraEvQMWNkPvZgO1YWRexlgtretJKz1vewUO1Ngjeb+8u/q608lNbIuz8nsb7C+hkOV4Os9Q9Tkt/lhX8/ZuEMdgjMfmfbmTsJdz3D0fxeos= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d4fb3213-d776-466b-0f84-08d82c7d87dc X-MS-Exchange-CrossTenant-AuthSource: VI1PR0401MB2287.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2020 07:21:33.7674 (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: U+wfLscFPdLsFeckGpRjynMTqe6Gk+mrwa3xPFtAHdDvIGQXhccVkdfa0HdFb0MuY3UTms6oXdizpuZwJYCV9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3344 Cc: shengjiu.wang@nxp.com, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org 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: Daniel Baluta With SOF we support 1 ESAI interface and 1 SAI interface. This patch adds SAI1 interface support existing on i.MX8/i.MX8X boards. Signed-off-by: Daniel Baluta Reviewed-by: Pierre-Louis Bossart Reviewed-by: Kai Vehmanen Reviewed-by: Ranjani Sridharan Reviewed-by: Guennadi Liakhovetski --- sound/soc/sof/imx/imx8.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c index f1308824e2cd..bc0628c7b88c 100644 --- a/sound/soc/sof/imx/imx8.c +++ b/sound/soc/sof/imx/imx8.c @@ -384,6 +384,17 @@ static struct snd_soc_dai_driver imx8_dai[] = { .channels_max = 8, }, }, +{ + .name = "sai1", + .playback = { + .channels_min = 1, + .channels_max = 32, + }, + .capture = { + .channels_min = 1, + .channels_max = 32, + }, +}, }; /* i.MX8 ops */ From patchwork Mon Jul 20 07:20:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 11673001 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AE42C13B4 for ; Mon, 20 Jul 2020 07:25:30 +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 4213A2065E for ; Mon, 20 Jul 2020 07:25:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="dLlUDF46"; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="TYP/Nlen" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4213A2065E 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-devel-bounces@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 8BA2B1669; Mon, 20 Jul 2020 09:24:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8BA2B1669 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1595229928; bh=0OVtiIMhVLjyKDbYCP8Fp/hgb5x858gRpcVc9jEyzFE=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=dLlUDF46yhJbQGJOMCLwFqQvSBbUDUOFjC6HcfKnXl/AF56k40hjP0B8d7VlDHrcj tcYg4F4yJPP1Jry/KKC4LFMLcUwlVKB01x5dYI9sitjxerk5U0tPz68DmxhGiTJAPG J9Xz/iB84xR6SFErsIWrZb40lVgRyv7cMwkwoZqI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 6E0A2F802DD; Mon, 20 Jul 2020 09:21:50 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6588CF8028C; Mon, 20 Jul 2020 09:21:44 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MSGID_FROM_MTA_HEADER,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60061.outbound.protection.outlook.com [40.107.6.61]) (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 906F8F80125 for ; Mon, 20 Jul 2020 09:21:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 906F8F80125 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="TYP/Nlen" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e4WjRFIDUIrHIhDbDOOREEmCYO3F3hufvTaqKeZSMDNys/9SN2KZ8YP8wuSwosVGiQnfqLAF6MpLKxMtH42hrWy6cJkG3wWBxRB8ZFGun4Ib/vcvJ4qEKOPPgwmwt7z7ah0viNDd87XJANC8tJlE0+WeGJsvzJO/MfB76kn8x2JwYYGT2o77hDJbGUcMP/8kmUU/rLjgMVSnjouRJ8VE6cm6Owr4zIEwpVBSf7caER5ybm4vs3d1hcJNaEw+yIliliAH1tLik7x1eYWeVkzSF98yj0vqVKTAoPq3e35wa1AW28e71RWv4Ze50Qy1T09m22wbz7aB+9noo8zb7UG0Hw== 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-SenderADCheck; bh=Obu0W0N96YdFBXOQTgzEk4n34waSl0fc/fO2PdGasW0=; b=UnEvmKOEiGQtHCuZON2eCpqaxuR55X8Rzz0iqBJd9f+3t7ue7ib65JvuhRyvQqo3PSJOnQYASQeveDSgLkxirXfgAH1G66zpOiUPgSts08PLH7oggSQcPAD+u5EfdBqMAkAnrcb41uTmi+7fAQsyCCIpLC3EGUXSBEGcmJbBkFv/yISRK+1isrkPAGupoIMs0kk7zEbtjICorb9jUS7T/wrzjVix0PpgJEPNxpUlf3Uuj+zNGelygdgA1IhPqs7l6Wkr/5Q9rF3Y+f8w9knt92JYdV1wLt/a4ZrQCC5IayAF7Bll/coSAbA8CDRLDZeihxr+KnFuTG+3JcEhLlr3pA== 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=Obu0W0N96YdFBXOQTgzEk4n34waSl0fc/fO2PdGasW0=; b=TYP/NlenZ+3NA9ruNhfZVIS9R0sQRduw5MqdjKBx0ls0CN9VzOq1WHCcLiMWQjI4SqCBQbpeVbPNYumLTDB31ctZdwEykW0nPWPKbS8B0pb6jXuwszi58bGUnHLPqPrjCv+0mW+YEUlYaIeH45OWpDJuUVkMF5pOTNc8qEGrDEo= Authentication-Results: alsa-project.org; dkim=none (message not signed) header.d=none;alsa-project.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) by VI1PR0402MB3344.eurprd04.prod.outlook.com (2603:10a6:803:10::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.25; Mon, 20 Jul 2020 07:21:34 +0000 Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711]) by VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711%5]) with mapi id 15.20.3195.025; Mon, 20 Jul 2020 07:21:34 +0000 From: Daniel Baluta To: alsa-devel@alsa-project.org, broonie@kernel.org Subject: [PATCH 6/7] ASoC: SOF: topology: Update SAI config bclk/fsync rate Date: Mon, 20 Jul 2020 10:20:45 +0300 Message-Id: <20200720072046.8152-7-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> References: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> X-ClientProxiedBy: AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) To VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1864-103.ro-buh02.nxp.com (83.217.231.2) by AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.14 via Frontend Transport; Mon, 20 Jul 2020 07:21:34 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [83.217.231.2] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f7b41021-2127-43f4-45ca-08d82c7d8886 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3344: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:357; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lZUsVdO41SU31qfYzLT076VXzZ7s4szzl6W08NBlCUYiX8GPMmJKgkwKf/bXYhU3wuCGuUUobgDd1qmxVs5ZvdhE3E7QJMoisEb4ck7qo1zhd8jS165PG+j5gtzwvJFG2Slg8AJjnIrdqFMsa1Yc/9gcrQL9qyOz1n7Lqmyhg2S7wvH/Mp62RqggcPCqDI/icQyCRu2FqEDMLEE5DyoT1woXr3qtVBicsC/RTwZ466MvwQJeML1ElfpC5eMJ2jMogeGgL+K79NmvGVtwiJ8OvxncahHrSMfbbMxC3rJGcj/U9Iw+F2GpkJDTBZyWQy6GCmLL0uwRYSa1jBv3YJL4vA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0401MB2287.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(396003)(39860400002)(376002)(346002)(136003)(316002)(6512007)(66476007)(66946007)(4326008)(66556008)(6666004)(186003)(6486002)(2906002)(52116002)(4744005)(86362001)(8936002)(44832011)(26005)(1076003)(956004)(478600001)(8676002)(16526019)(6506007)(2616005)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: dpfqD2asHLdlBakHzVqR8jUJupD/R9V9C67a6syWWjhBV7kFfaLymLvIj5eJg9yj9vh3ST4NgGudfmnLvXzTUE48VfuXn49e1Gn2crh944PVz4wFPjtFecTX3He5VaPiu18TFhSYuJY6l4ljGzkpgWBP8Sjb/HE0SiI3WQ/iAIk0ldeHwi03Bf/4Vvxp8U28bG12Zk8A0ZkRh4iX5uju34CzEKGPHm9h2xxvlZ7l4t1Mbf0hs0UK0ipZMHluAZ/IV/b9X04Pw5TqZx9pFBOBWiSRua7XBzXexRjB8WQ7eAgcj4iM2NPPKdwrxJA6bOj4UqsVGj9EYcL58qmr2AZMvzh89KlktqUSfNNk5l2Ye/8cgSW4fr2N5hecSopIlo7z01XszaHoxzMM1GKArT7VBruUtdXMbZudQs6Jhn8oay27H/VeiT3JuM/olFjZsa7eaSQIsn4ysjgh7kTbb8/gzHSfUmkn2/gMo60EX23coWw= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f7b41021-2127-43f4-45ca-08d82c7d8886 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0401MB2287.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2020 07:21:34.9069 (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: vPKOcNRWrrzA9CRMEKVOlsK3VQPVTUQ6vLwBkOuLtqdnDJ/uPUvHwa6q4NIxaIVsBLJ92w6BnKzpIyb6BqHQIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3344 Cc: shengjiu.wang@nxp.com, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org 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: Daniel Baluta These parameters are read from topology file and sent to DSP. Signed-off-by: Daniel Baluta Reviewed-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan --- sound/soc/sof/topology.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/sof/topology.c b/sound/soc/sof/topology.c index 6a9703e5ff60..13e10a0c0b05 100644 --- a/sound/soc/sof/topology.c +++ b/sound/soc/sof/topology.c @@ -2831,6 +2831,8 @@ static int sof_link_sai_load(struct snd_soc_component *scomp, int index, } config->sai.mclk_rate = le32_to_cpu(hw_config->mclk_rate); + config->sai.bclk_rate = le32_to_cpu(hw_config->bclk_rate); + config->sai.fsync_rate = le32_to_cpu(hw_config->fsync_rate); config->sai.mclk_direction = hw_config->mclk_direction; config->sai.tdm_slots = le32_to_cpu(hw_config->tdm_slots); From patchwork Mon Jul 20 07:20:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 11673005 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5B9CD13B4 for ; Mon, 20 Jul 2020 07:26:32 +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 E5242207DF for ; Mon, 20 Jul 2020 07:26:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="sZVsYW2c"; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="R/JXEVmQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E5242207DF 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-devel-bounces@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 53F71844; Mon, 20 Jul 2020 09:25:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 53F71844 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1595229990; bh=VH9h6kujXGzsgGPV0xRJI89npBS0vGy1bvQysHbsZ4Q=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=sZVsYW2c8Ry5ZrB5SgPyxzjUiGUDXKmTWWiMD7BeeXlAYxKk3Ee1nItMbx5vfxdJI VUN8MnN5Gvxzdbmsc0Qg0ZML147hLdexmQVIimiSSDj2a0r6nX0CbgBKpm7E0GySOR puVfU549AVh+pZqAFe7QBsfag8fpn082Uro2BhRg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 81FD3F802FD; Mon, 20 Jul 2020 09:21:52 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0AF93F802DF; Mon, 20 Jul 2020 09:21:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MSGID_FROM_MTA_HEADER,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60061.outbound.protection.outlook.com [40.107.6.61]) (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 EAC49F801F5 for ; Mon, 20 Jul 2020 09:21:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EAC49F801F5 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="R/JXEVmQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NnGzGZxzfjElFx7FAIZyCITwP8oHVCpmlEWqE3M3O40pgDENMaH6xFx3u74ThVTR9NGAiafr0ABJBXbiRvK4w1Q/4d1VUp//f8xwYcrRorjx1EdV8FjOHeR5f6gcLJtXHHCYG7+VtqMrOWYj3oTAXoHQm+FJwtQh72wBoisyY97PBDrnKWuFB3BTTODKetQkIQAFZ2Z9cSAme2zB4gux1YCgM9lVVPpvXdJUT60vvzgQJeNO6klca9Er1o3BQy+pSVQ9yksNdGxKZOcq11+MdE9d2jbb9f9i/7IFDFFzdDB5A42WVdnnx6OLDj+FA1FqwrLnHE7oowb4uOgk8e+ERQ== 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-SenderADCheck; bh=GXhWISAtUg/VB3boXVA4OYfWfWB3AQBw12ZzUd7ceyQ=; b=IyIiW03IYis7quggAF+ZWYnObzJ1YJko5Mp52TeYPZqxCuDcKCOC71tsLij7als/yzHN/AMnxRlA93GAgM4P9hw4HAOyc6f9atP98IgWnV0WlXOoCWoWlzRduw3d3sVMCACQxtXhDPRxvI+8Je9uiArguQFNNHJP4WuCmwwe+XAPNp4Jysn3L6A+k74BTdnIgucDzOTIWHE5omFQuMBO4fKrOAn/gZY+uXsAYIMDhq+oO9sw2UQgfRAMezpGGg5zzfsihz3prsxlKNyt8bWRd+Aj1puo2iI0L5/MtOTQgcS+HVmCHW2cNVRl1405flPev+r3/+ErnJuXI+Isc+3heQ== 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=GXhWISAtUg/VB3boXVA4OYfWfWB3AQBw12ZzUd7ceyQ=; b=R/JXEVmQoqOD8zYsa6pIb3B725v+hSrNa48tte4u2OGzXKha61qx2ycrsYtzflNCLV46nSYmUFe4Qo2ZBM5WHvIeLcV7lKYKCO8YTwllb++0YMuBfrd48PjMHhl+ofeBSTj6I9iCbiZXTXXbnWG+KiRumnFia9yKhKg3aR6NXQo= Authentication-Results: alsa-project.org; dkim=none (message not signed) header.d=none;alsa-project.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) by VI1PR0402MB3344.eurprd04.prod.outlook.com (2603:10a6:803:10::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.25; Mon, 20 Jul 2020 07:21:36 +0000 Received: from VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711]) by VI1PR0401MB2287.eurprd04.prod.outlook.com ([fe80::6888:5014:6c94:6711%5]) with mapi id 15.20.3195.025; Mon, 20 Jul 2020 07:21:36 +0000 From: Daniel Baluta To: alsa-devel@alsa-project.org, broonie@kernel.org Subject: [PATCH 7/7] ASoC: SOF: pcm: Update rate/channels for SAI/ESAI DAIs Date: Mon, 20 Jul 2020 10:20:46 +0300 Message-Id: <20200720072046.8152-8-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> References: <20200720072046.8152-1-daniel.baluta@oss.nxp.com> X-ClientProxiedBy: AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) To VI1PR0401MB2287.eurprd04.prod.outlook.com (2603:10a6:800:2e::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1864-103.ro-buh02.nxp.com (83.217.231.2) by AM0PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:208:ac::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.14 via Frontend Transport; Mon, 20 Jul 2020 07:21:35 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [83.217.231.2] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7cbad908-1cb7-4401-afaa-08d82c7d893c X-MS-TrafficTypeDiagnostic: VI1PR0402MB3344: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2331; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LZFHf/cQ1TuLkm9jfm+VziNbPjfzu027+ULSJFucZml27K6dkiHBWS6N2qfTXLpO/I5i1xYhoQ+Dd46zTaBjLdhp5X6xUCv8ZDliO2TDsd+8JUwMIHBV0DmlsdUHnalG9kWNpJNBIa+o73S7Sr7s/DW8rzNcW51OzUmg+4oH2NfQjTrHiUzzadkMBtEd3HDeVk9hjbrJY1l3c93x1kyqospNYp8TfEcv9+lspgglV3uFMfo3De8H3c5lO556vKDGUcSh8V7jE3ZCMkILz0+6KucvUcBXBWh0zrzPH9U0KfSQGTkD9A9qH/IdGkJ/LnI+yHzbSyrvfc2xqEe1KhCoMQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0401MB2287.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(396003)(39860400002)(376002)(346002)(136003)(316002)(6512007)(66476007)(66946007)(4326008)(66556008)(6666004)(186003)(6486002)(2906002)(52116002)(86362001)(8936002)(44832011)(26005)(1076003)(956004)(478600001)(8676002)(16526019)(6506007)(2616005)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 7amuy1bCSliXJGQSirdtSASELA3plvoWIpIT/9dQ+NSg85IxsSHIkFRyc/AqWgAKWvytfigwUokccGDvSoSdA1wvDaYEE4YwwTPiHFagE47gFS58lQikRq4mI/R8bdvMeCWAAmwUZh7Igtwlr5fQd9HXElIr9GGuwf5U1trYvHYwos1dcsPLNgDL7EwC80QxWJBBCMtKnfWanT6c/qAXyQDG5WZ7OvHPVOLviUnyJBRrQ/Ybdb2HInzTCQ65NZC+IG0Hnd7fuI7cDkcPv1eVeZJXQImBF63BBXZfWZ5Li4231ZibX82+zpfaQeOU01Q9zGkRO38978xCYDWdSijakasm5qvVBrFh+6FoEe41v3UGYVKIaMOPB0lU2K5Us7PlG/+WQI1ltGiXQU6jSMikoPn0s2zejELzMAYJiLQ41BNAihkVQuIpRIuv/5cO5q+4xHKpjqCTHenr9xDGGclmPN8NZPAgk0VH2AdRJRf1N1o= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7cbad908-1cb7-4401-afaa-08d82c7d893c X-MS-Exchange-CrossTenant-AuthSource: VI1PR0401MB2287.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2020 07:21:35.9914 (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: Dpjh49I+n8ZvF1+Q/Lde0PActmcbQGCjp91BrQO4z33togpWfw6F3XMiUdLf7p3txKGLgwTKrsnCy9nmIoP6Ug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3344 Cc: shengjiu.wang@nxp.com, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org 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: Daniel Baluta Fixup BE DAI links rate/channels parameters to match any values from topology. Signed-off-by: Daniel Baluta Reviewed-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan --- sound/soc/sof/pcm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/sof/pcm.c b/sound/soc/sof/pcm.c index 22fe9d5e932b..5cfd2611b252 100644 --- a/sound/soc/sof/pcm.c +++ b/sound/soc/sof/pcm.c @@ -718,17 +718,25 @@ static int sof_pcm_dai_link_fixup(struct snd_soc_pcm_runtime *rtd, /* do nothing for ALH dai_link */ break; case SOF_DAI_IMX_ESAI: + rate->min = dai->dai_config->esai.fsync_rate; + rate->max = dai->dai_config->esai.fsync_rate; channels->min = dai->dai_config->esai.tdm_slots; channels->max = dai->dai_config->esai.tdm_slots; + dev_dbg(component->dev, + "rate_min: %d rate_max: %d\n", rate->min, rate->max); dev_dbg(component->dev, "channels_min: %d channels_max: %d\n", channels->min, channels->max); break; case SOF_DAI_IMX_SAI: + rate->min = dai->dai_config->sai.fsync_rate; + rate->max = dai->dai_config->sai.fsync_rate; channels->min = dai->dai_config->sai.tdm_slots; channels->max = dai->dai_config->sai.tdm_slots; + dev_dbg(component->dev, + "rate_min: %d rate_max: %d\n", rate->min, rate->max); dev_dbg(component->dev, "channels_min: %d channels_max: %d\n", channels->min, channels->max);