From patchwork Mon Mar 4 10:36:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viorel Suman X-Patchwork-Id: 10837577 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 877EF1390 for ; Mon, 4 Mar 2019 10:37:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E0AC29D27 for ; Mon, 4 Mar 2019 10:37:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D2CC29D4C; Mon, 4 Mar 2019 10:37:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 27A1C29D27 for ; Mon, 4 Mar 2019 10:37:27 +0000 (UTC) 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 86D25851; Mon, 4 Mar 2019 11:36:35 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 86D25851 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1551695845; bh=8kjJUFd/aPFrBTxEs0qob+fHJsIDOPuIjz/wfGdvsuo=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=b298aCUwRNH4WNnCb7747gSmVwSAYukA378sp2xKKwTEudNMvIt32BPwXeUguPtvL P6YF3ndSkUtlssEjNdw15sUTMx9tHMj0TRL6FrP5vlQZwr7GEMPZYE/M1l/yA2Y95y u+H4FvMrUcGxu5HdPUleofJvy6FGNgkBpYuFl8y8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id DE94FF896EE; Mon, 4 Mar 2019 11:36:34 +0100 (CET) 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 AC677F896F1; Mon, 4 Mar 2019 11:36:31 +0100 (CET) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20067.outbound.protection.outlook.com [40.107.2.67]) (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 0783DF80733 for ; Mon, 4 Mar 2019 11:36:26 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0783DF80733 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="SBzzQwnD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VaWLUOXAFc2s49vUjV62Rj8Iw9GxDvXTc/QlUiIb17g=; b=SBzzQwnDBl8QvFGJCavMWHFEg638c7VGliQebnCkjEpAWt9KfRWj2oIak4EpfB52/jACL4gMTkicR4zHqorBVWs++dmSyoSVRRWsqS0fKheI+iKZbLer01Ch2MxZsaRS8Ttppd1tOFV0YQKNPBjNaylrGmL8krRZn68kT/Kaf0g= Received: from VI1PR04MB4704.eurprd04.prod.outlook.com (20.177.48.157) by VI1PR04MB6270.eurprd04.prod.outlook.com (20.179.26.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.19; Mon, 4 Mar 2019 10:36:23 +0000 Received: from VI1PR04MB4704.eurprd04.prod.outlook.com ([fe80::78ad:1f42:aeff:b22e]) by VI1PR04MB4704.eurprd04.prod.outlook.com ([fe80::78ad:1f42:aeff:b22e%4]) with mapi id 15.20.1665.020; Mon, 4 Mar 2019 10:36:23 +0000 From: Viorel Suman To: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Jaroslav Kysela , Takashi Iwai , Timur Tabi , Nicolin Chen , Xiubo Li , Fabio Estevam , Viorel Suman , "S.j. Wang" , Daniel Baluta , Cosmin Samoila Thread-Topic: [PATCH RESEND v5 0/3] Add NXP AUDMIX device and machine drivers Thread-Index: AQHU0nYcwuzeOMGUAk69vV2GSiFK1A== Date: Mon, 4 Mar 2019 10:36:23 +0000 Message-ID: <1551695748-21541-1-git-send-email-viorel.suman@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6PR01CA0067.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::44) To VI1PR04MB4704.eurprd04.prod.outlook.com (2603:10a6:803:52::29) authentication-results: spf=none (sender IP is ) smtp.mailfrom=viorel.suman@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [95.76.156.53] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dc8d75a3-43f1-4a20-6a45-08d6a08d3f3c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB6270; x-ms-traffictypediagnostic: VI1PR04MB6270: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR04MB6270; 23:MTzIBDbCMGoEET/F0KaTQX4dfSaFqApgr5eZeMx?= =?iso-8859-1?q?i+mbTFku05vIgcw?= =?iso-8859-1?q?vD1ofYU4j3O22qBkDsgVLiNtIKjrqjkDhJQbVZaozUyoPeVW1hOkGcJnsCVs?= =?iso-8859-1?q?RpxneqzSBUdf3oZX4vSRlJCDdttXdWBY26Gb/JWJsdSBnvzZoqlZyqjtEkid?= =?iso-8859-1?q?E88QPGQOQJ2sGOQUdcgjvTFkDxp3ec+/mrXPHGqQEqTf4BZupXGNPVPYKtWS?= =?iso-8859-1?q?Yuw7AYESYN5u7LVYet40OkM/hFDEi6yy0q4DArYuNR6fDFl25GotFCvUPEhe?= =?iso-8859-1?q?DbIaIXWU4Q3yrufGuNDXVXGrxXON/+9z3j32UlIRgB5DaU7SpRUgUeHPPON9?= =?iso-8859-1?q?YJDxkhYlBgBch4GZNF339TXJOEHcX1JmttzhwHIqTnL4eJRgjvN1YoR51GNK?= =?iso-8859-1?q?46oDpp/rpXGPLkQ84nXiRnFhDWhi6ai8TEDCDvKbYrDIZvBqH5nySjBgVqgA?= =?iso-8859-1?q?SDUcA2N1mDWPnrG+Z9U5nrd9S99G51n3wnl+TdB2lsAWzAHI2ODa2Uitw6AM?= =?iso-8859-1?q?LRm3DpJfAJGA0j3qbXrHyD9Q9ZEJ8srvCuMyWj0Qy7DGGpsxlKOclEbUZGnZ?= =?iso-8859-1?q?xPu2DqFpI+yPv4WI8fuonYEibvWLccecIa6pGl/3RbGr0Vf9UvHx2V7pAjes?= =?iso-8859-1?q?N4D0IktB9cQiCBwjKhXl/8D53235hmefioaMTJDdCFONw1NRWP+gvc9yB6Cq?= =?iso-8859-1?q?bqzgLh3SA5kW/PqP5UWeqFU5V41icnUtnS2w7rErZYPaRicQWS0981wrnQCG?= =?iso-8859-1?q?Ohd/HY/BM0JLOLmanBgPAtjv0AKxhA4WC3N+ad6GS4xlN7yDKkPPq3U758E0?= =?iso-8859-1?q?i+ADwVylQa1oWgkWruff8VGWfu8/mcLcPm+0EQTNddtNzSkjkpFKGRhKHyeb?= =?iso-8859-1?q?Jm1KvpUWgpajxmgLK1ybWS5ZLw2m1mn66ivNKIUHEFnM3wmMHwG850CW/00y?= =?iso-8859-1?q?YpwDevlIwDiMWH+pWma8VkKaswRhQdL9aPs37seVjCvpigJ67yARQPEK3D6n?= =?iso-8859-1?q?acSurJz3awzdwcDMZB6wGpE3Z0jsbqDVSGDLnnPR2ZHBJhLrzttZbhj08UrD?= =?iso-8859-1?q?zr2DjX+/u2HZi15bU4cDtEi2UKETKLvY/wSnvzbZLEGJM4sgZaNaAt2jVGhy?= =?iso-8859-1?q?vGWf7hVxmUkSD8rE/KemuYSCmM6UvUtcmGDBTaFw7vj+KlyAB4lc2QUCttYH?= =?iso-8859-1?q?M0LaeZWQkdIAbXoeQXlXtPkMklttMFFSaHhygwS1bozQ=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09669DB681 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(366004)(346002)(136003)(396003)(189003)(199004)(186003)(26005)(81156014)(81166006)(8676002)(52116002)(102836004)(66066001)(2906002)(105586002)(386003)(6506007)(106356001)(478600001)(86362001)(305945005)(7736002)(99286004)(256004)(2616005)(486006)(44832011)(476003)(316002)(97736004)(6116002)(3846002)(36756003)(4326008)(8936002)(50226002)(68736007)(54906003)(110136005)(14454004)(71200400001)(6436002)(6486002)(53936002)(25786009)(6512007)(71190400001)(5660300002)(7416002)(6636002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB6270; H:VI1PR04MB4704.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: FcAq6+VwGIFCbcXf2XYiBxx+OLkPiiMtl9Bm56YRf0+v24oPhPQplZSI41mlfEoA0IWCpJaK7LhTwPKjWP/LrwzMRMxlDRK1lV0+a4lmU0WkLkyUoxXsHe65qSk0CIIqXpoZ+R9QBcW2OTYvuTxsmV7H8saI7NmGLqZEIDWJebbGZjmAkW5EfoGasfgkBjvrb4vUVfOK7JL/nFvwKDT7aIVDDyhTaDPDli0O5a3pGLaOJ5lRGkotLIIljqAT7rfh+zVs1y7KHQQbNeVypSxIV4h4J8VK2+N2yWXK1FtxcotBvzHz+GZ0J8azEVxFfnDIfslNCSmh10Li5NpLEym3YjMXIWYshPL/aznsQtinPvM8CqBh3fWCSsO5pqXnDGqjwWYqFUKzOa0/jhR7QwGWKUwR7KLohlT+vtucw6+ViXk= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc8d75a3-43f1-4a20-6a45-08d6a08d3f3c X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2019 10:36:23.4472 (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-Transport-CrossTenantHeadersStamped: VI1PR04MB6270 Cc: "devicetree@vger.kernel.org" , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" , Viorel Suman , dl-linux-imx , "linuxppc-dev@lists.ozlabs.org" Subject: [alsa-devel] [PATCH RESEND v5 0/3] Add NXP AUDMIX device and machine drivers 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" X-Virus-Scanned: ClamAV using ClamSMTP The patchset adds NXP Audio Mixer (AUDMIX) device and machine drivers and related DT bindings documentation. Changes since V4: 1. Removed "model" attribute from device driver DT bindings documentation as suggested by Nicolin. Changes since V3: 1. Removed machine driver DT bindings documentation. 2. Trigger machine driver probe from device driver as suggested by Nicolin. Changes since V2: 1. Moved "dais" node from machine driver DTS node to device driver DTS node as suggested by Rob. Changes since V1: 1. Original patch split into distinct patches for the device driver and DT binding documentation. 2. Replaced AMIX with AUDMIX in both code and file names as it looks more RM-compliant. 3. Removed polarity control from CPU DAI driver as suggested by Nicolin. 4. Added machine driver and related DT binding documentation. Viorel Suman (3): ASoC: fsl: Add Audio Mixer CPU DAI driver ASoC: add fsl_audmix DT binding documentation ASoC: fsl: Add Audio Mixer machine driver .../devicetree/bindings/sound/fsl,audmix.txt | 50 ++ sound/soc/fsl/Kconfig | 16 + sound/soc/fsl/Makefile | 5 + sound/soc/fsl/fsl_audmix.c | 578 +++++++++++++++++++++ sound/soc/fsl/fsl_audmix.h | 102 ++++ sound/soc/fsl/imx-audmix.c | 327 ++++++++++++ 6 files changed, 1078 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/fsl,audmix.txt create mode 100644 sound/soc/fsl/fsl_audmix.c create mode 100644 sound/soc/fsl/fsl_audmix.h create mode 100644 sound/soc/fsl/imx-audmix.c