Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp264536lqp; Wed, 12 Jun 2024 00:15:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUVmt1+GncysuGIsh3qQwJ+besaDtusskjprm/LCGw6VEyp9LUpx1tGyN8cH8dQc1M6EdURlMpPcv50M1TyhrRq1U+unw2fLZFlKgznTg== X-Google-Smtp-Source: AGHT+IG6342ngLAbCbgiEgAGiRdwiZXWeLw3AbVprCIXFJvxw6VyNGIAgiOolSXLa1tsgjldM5iB X-Received: by 2002:a17:902:f683:b0:1f7:db9:aefd with SMTP id d9443c01a7336-1f83b719bd8mr16379215ad.43.1718176537427; Wed, 12 Jun 2024 00:15:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718176537; cv=pass; d=google.com; s=arc-20160816; b=fvvuogWFd5ppPNTKmg2IQn/HbLkrtFo6lyseKu1VXuzBvWOKlNf0vdLE0vG24TdjBi ge1pUFjM9o7gKmu1Jopm1Svsf0XiDFHzCGyWMim49+X7n1G7TW8UaoyLGbcAVvynJ64s 7R5IK6eVX0bYHOxnTtNKXUrCzLOEWh8xj8EPI86I+9RLcoTuhX/r9QnLr9WvW++67Pqz AHO14aZfDUB1iAWUHHbKVyXfKA+2cSHaCI+z3p0BVU3opJ7gISSHCNTfmNzn5c2aP+Gc f590m6Mzl60sSOhxbFlAMzEpDlaG6V2Q+BYtP0o37G34YrCADBmBoZR4mPID+7P69b1Y hunQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from; bh=stDLAZa2v/Dv8JKxl3Nuhlx2n5Y0958SOLK7Hf9S4ns=; fh=qIbaMWBZZ76W2Bh+mddcRb622l13Uy3xtBJ9AHWZJKk=; b=cdSuLW0vg+6bFD6k5FRqHoPmG8qXfFwfWQ7Sd5bejlKCKkOarIlFoRlkvN5I+Z4xoU GQXMhV1bZNAe9XG71CkKOdbcJGIoNYG9rouKM23gev3EgQHSR1NQ1npFLJvKi0oMpceu m7RQSvp4v0sw7gmkGD60pfbNkM/S9LiWrUhV0CvEUB+hXHozsMl3FulqaRXyHve6Rnqb q3jwtShlUHJdQ+Oz/UZ6fJXz5ZnkWjjoIL56vIncWhdT3+dESs0pOGfJ54Z5UVLPU6JA yfGv15lDI9lmPkfATgYfgxVdqFuDO2MTF9TnStyP217S8nBWfL6dXaC+7itA+pusDO+9 jxug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-211036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211036-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f73948981asi21012505ad.325.2024.06.12.00.15.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 00:15:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-211036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211036-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C4561B2413B for ; Wed, 12 Jun 2024 07:09:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 135B916D320; Wed, 12 Jun 2024 07:07:54 +0000 (UTC) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E539416C869; Wed, 12 Jun 2024 07:07:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718176073; cv=none; b=WhlycAQBDcZ2v2E8jNtfzMzl3s6uGXKrTg0LDfrr7TgiEVVpSk34VtaQki3LRq1k5vgQYL4BdHT8HhJJfykLIPZSHgmv7RkEuWqFwKPoV8+sqAv1MVvNKAAkSddf9PZnPg17qTeliVSvyYRMon0O4m69uhlaSas2b+IW5Y42PY4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718176073; c=relaxed/simple; bh=r669ch1jn1copLyRkWU8QWFyTgWYCgtbSASXN3rWsto=; h=From:To:Cc:Subject:Date:Message-Id; b=UL6hQJSwU2HIyjxVlA8WEF+dBKzG00IdckbGUui6CVxVgzvjjdTNj9YSMhj8mubfAOlYCCBLSTrEbLbem4EtGlifbnXXmuGQoHqUtMaheXxRaB/SCg6f7O0DHIWG5LhuQTA9QH8WCcKi9L9yV2ncLLKFJwufA6fRfL4V29g4Bug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; arc=none smtp.client-ip=92.121.34.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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(-) -- 2.34.1