From patchwork Wed Jun 12 06:40:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 13694503 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4DA3BC27C75 for ; Wed, 12 Jun 2024 06:58:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc: To:From:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=stDLAZa2v/Dv8JKxl3Nuhlx2n5Y0958SOLK7Hf9S4ns=; b=lkkqLswPlS7pu8/t/fNp9upuoU EQhpRmKOLKO3NurygG9/aET4MnwFiIFun/4kBviFRUxNvml/T2Eb70k5TJoG60fOMy1MJIYC8XHmV Zg3zcUc9VsuLWJYS6vMQZPZ0Dkf9FQKuOitXV3xO0t3j0K1zJx3PPLlJQPgxZ/f+kA67Xd+L74wGx F1Jv+SRjbsBudHljRAv2RewBnNMfBc6uvGb8/bamIacYD4CZvhfKt6BjV/KVhLzEZg9StvZFHoguj LQG9fRm76CRYFo0OqsQcCEWkh6Yn4rJ/J+WJdQ78be9QHN314gYvb3XfFC/FNuiDltynQWYz+gw/4 ILwU1xmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHHvb-0000000BKgb-3cU5; Wed, 12 Jun 2024 06:57:51 +0000 Received: from inva021.nxp.com ([92.121.34.21]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHHvY-0000000BKe4-3Xu4 for linux-arm-kernel@lists.infradead.org; Wed, 12 Jun 2024 06:57:50 +0000 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 98E5C2018C0; Wed, 12 Jun 2024 08:57:44 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4A3CA2018BC; Wed, 12 Jun 2024 08:57:44 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id EFA27181D0F9; Wed, 12 Jun 2024 14:57:41 +0800 (+08) From: Shengjiu Wang To: shengjiu.wang@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-sound@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: viorel.suman@nxp.com Subject: [PATCH 0/3] ASoC: imx-audmix: Split capture device to be a new device Date: Wed, 12 Jun 2024 14:40:49 +0800 Message-Id: <1718174452-17596-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240611_235749_037747_D62664B0 X-CRM114-Status: UNSURE ( 8.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The transmitter and receiver part of the SAI interface need to be configured with different master/slave mode, especially to work with the audiomix module. The SAI1 TX is in master mode, but SAI1 RX is in slave mode. So add another two DAIs for TX and RX separately in fsl_sai driver. There will be three devices for audiomix sound card, hw:x,0 is the playback device for one SAI, hw:x,1 is the playback device for another SAI, hw:x,2 is the capture device for audmix output. Shengjiu Wang (3): ASoC: fsl_sai: Add separate DAI for transmitter and receiver ASoC: fsl_audmix: Split playback and capture stream to different DAI ASoC: imx-audmix: Split capture device for audmix sound/soc/fsl/fsl_audmix.c | 16 ++--- sound/soc/fsl/fsl_sai.c | 141 +++++++++++++++++++++++++++---------- sound/soc/fsl/fsl_sai.h | 4 +- sound/soc/fsl/imx-audmix.c | 79 ++++++++++++--------- 4 files changed, 155 insertions(+), 85 deletions(-)