From patchwork Fri May 12 17:46:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 681843 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 44E17C77B7F for ; Fri, 12 May 2023 17:47:49 +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 CDF41E7E; Fri, 12 May 2023 19:46:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz CDF41E7E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1683913666; bh=wgeVii9IRi5ReIm/wE+3Nuc6XCZ/Cs5Ln5gztqksKxs=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=lCEol8a8gvAG8DvkL9SDiVxhL5dcceJYkb2hlf0GFOQzSx8wAIq6CJcog1tOCLgxh lx+hrvEFXqzPwcSKgI0RhyYlhSknmUI/0QYnbfQHkIyNdmJbpfhN1OJ+WfQZGeDh5Q alJvzDFUcxo4aEGbyn5nrc1oLTda9mZP7LxDEEoQ= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2E18FF80548; Fri, 12 May 2023 19:46:29 +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 7EF82F802E8; Fri, 12 May 2023 19:46:28 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 141BEF8014C; Fri, 12 May 2023 19:46:25 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 DEFA3F8014C for ; Fri, 12 May 2023 19:46:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz DEFA3F8014C 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=VlQPz1VE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683913583; x=1715449583; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=wgeVii9IRi5ReIm/wE+3Nuc6XCZ/Cs5Ln5gztqksKxs=; b=VlQPz1VEYk93tSi/sb0ha36kh1Pz1pqbi4/rPfkj6c6IkAouDI/DJgY+ 0sl9Ztyr67ZqZUJOTYEPWulxQMn93+w5ibyLcPRsgb8zX6ZjD1MgEXOUT d5rOwRWETKLTJ44i1snFzSzlzsqdQU0glRMrUuz3o5/JJj5MkU6KeNILA KHRCT3ojSoNSJpSdyQdjgo77xotCGs+vHAiq+248T8/ju0NpcPbmWr2o8 QWPd4VmgwDnuCR6erGMnsnhN/AZeh9MvERreKpAl/24fMFRPBtlqJ40Q+ VRzan1cH/lYEWsJaqtSytHQLsa1kHgECCrIWmaesJKS6WGxbQNCnghoqE A==; X-IronPort-AV: E=McAfee;i="6600,9927,10708"; a="349688040" X-IronPort-AV: E=Sophos;i="5.99,269,1677571200"; d="scan'208";a="349688040" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2023 10:46:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10708"; a="812167737" X-IronPort-AV: E=Sophos;i="5.99,269,1677571200"; d="scan'208";a="812167737" Received: from winkelru-mobl.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.212.144.249]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2023 10:46:19 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, broonie@kernel.org, vkoul@kernel.org, Pierre-Louis Bossart Subject: [PATCH 0/6] ASoC: SOF: Intel: hda-mlink: fixes and extensions Date: Fri, 12 May 2023 12:46:05 -0500 Message-Id: <20230512174611.84372-1-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Message-ID-Hash: ZQH5ZHDIKLXVCFOLSQEGLVW3VA3VOAX2 X-Message-ID-Hash: ZQH5ZHDIKLXVCFOLSQEGLVW3VA3VOAX2 X-MailFrom: pierre-louis.bossart@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: With additional testing with multiple links and multiple DAI types, we found a couple of mistakes with refcounts, base address, missing initialization. A new helper was also added due to a change in the SoundWire programming sequences, with the host driver in charge of setting up the DMA channel mapping instead of the firmware. Pierre-Louis Bossart (6): ASoC: SOF: Intel: hda-mlink: fix sublink refcounting ASoC: SOF: Intel: hda-mlink: add helper to get SoundWire hlink ASoC: SOF: Intel: hda-mlink: fix base_ptr computation ASoC: SOF: Intel: hda-mlink: use 'ml_addr' parameter consistently ASoC: SOF: Intel: hda-mlink: initialize instance_offset member ASoC: SOF: Intel: hda-mlink: add helper to program SoundWire PCMSyCM registers include/sound/hda-mlink.h | 14 +++++ sound/soc/sof/intel/hda-mlink.c | 96 +++++++++++++++++++++++++++++---- 2 files changed, 101 insertions(+), 9 deletions(-)