From patchwork Wed Jun 7 03:12:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liao, Bard" X-Patchwork-Id: 690198 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id EA6FEC7EE37 for ; Wed, 7 Jun 2023 02:52:09 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 8DACC843; Wed, 7 Jun 2023 04:51:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8DACC843 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1686106327; bh=K0VFiSwkWEdXkCHBlIvbV1lr5mlswxCupItmMqeviI4=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=RrAZ6PUOkmeMPR19RTfPzJmVfMh6lSIdIbYE8Ijbf7QZrxR6z2gmicuO2hrverPtX wNXLb4q4cJP2AkaznPTRWxcMUXqPRer96ueAo9AvccktAxfOggOqDqPEaBNJB7bYIq z7VJncARHeam3RJdi9ZfoOaYu1U4BTJ/3Gyw3A14= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9B55DF80564; Wed, 7 Jun 2023 04:50:28 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id AACBBF80563; Wed, 7 Jun 2023 04:50:27 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C77A7F80199; Wed, 7 Jun 2023 04:50:22 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 ADAC5F80130 for ; Wed, 7 Jun 2023 04:50:07 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz ADAC5F80130 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=T4Slse3m DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686106209; x=1717642209; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=K0VFiSwkWEdXkCHBlIvbV1lr5mlswxCupItmMqeviI4=; b=T4Slse3mm6/7lHoYScEBpEBCVl5cFo6i82dwXRIL5Yexrp2fCo/NWU99 1IWxi8o7xGQq9jtJjNNOSWDkB6hqpX7avpHJjl9lHm+n9ly47JxEZDfov t0a3f+nR6wFVjHfsIQdG5iRSEwrEY/fQds/9ObicDRatOjooPau6xHmto qT8HpElDxNznzL0hGy2Gw7TiBIx6659CtHsaP6OI7/dTDfIFaLkPp70sv pyd8wRRnXhlQOXKsBgxWAiyrZToMP1mJyRXdnUcmQCbfhcB2XQfbzd8iA 5GTEqHpu2bwQv6WIm6d7fiRipadjFDWYZ3aQN9moAC6HinlcQ1G4g5A7p g==; X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="360183310" X-IronPort-AV: E=Sophos;i="6.00,222,1681196400"; d="scan'208";a="360183310" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2023 19:49:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="833478858" X-IronPort-AV: E=Sophos;i="6.00,222,1681196400"; d="scan'208";a="833478858" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2023 19:49:56 -0700 From: Bard Liao To: broonie@kernel.org, tiwai@suse.de Cc: alsa-devel@alsa-project.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: [PATCH 0/2] ASoC: add N cpus to M codecs dai link support Date: Wed, 7 Jun 2023 11:12:40 +0800 Message-Id: <20230607031242.1032060-1-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Message-ID-Hash: JYNSVD4STJOLINSMLPWOUTYJ33XSQ53E X-Message-ID-Hash: JYNSVD4STJOLINSMLPWOUTYJ33XSQ53E X-MailFrom: yung-chuan.liao@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Currently, ASoC supports dailinks with the following mappings: 1 cpu DAI to N codec DAIs N cpu DAIs to N codec DAIs But the mapping between N cpu DAIs and M codec DAIs is not supported. The reason is that we didn't have a mechanism to map cpu and codec DAIs This series suggests a new snd_soc_dai_link_codec_ch_map struct in struct snd_soc_dai_link{} which provides codec DAI to cpu DAI mapping information used to implement N cpu DAIs to M codec DAIs support. And add the codec_ch_maps to SOF SoundWire machine driver. Bard Liao (2): ASoC: add N cpus to M codecs dai link support ASoC: Intel: sof_sdw: add dai_link_codec_ch_map include/sound/soc.h | 6 +++ sound/soc/intel/boards/sof_sdw.c | 69 +++++++++++++++++++++++++ sound/soc/intel/boards/sof_sdw_common.h | 2 + sound/soc/intel/boards/sof_sdw_maxim.c | 1 + sound/soc/soc-dapm.c | 24 ++++++++- sound/soc/soc-pcm.c | 44 ++++++++++++++-- 6 files changed, 141 insertions(+), 5 deletions(-)