Message ID | 20230515071042.2038-9-yung-chuan.liao@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> 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 55379C77B75 for <alsa-devel@archiver.kernel.org>; Mon, 15 May 2023 06:58:31 +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 75504E97; Mon, 15 May 2023 08:57:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 75504E97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1684133909; bh=nQ5bs2pm3yyJqyCctssYUsybKhCJPd02FInwiNQFhys=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=HmJs8v2TPDXy7n28TY0LcV8qmhoXWGGAMpf8N8cjerWcTh0cyOKqGAonvGIoXS7oX s4D5sHZBYSwkNlOnAoaOR4PBkjvUawQj63/ocTXJT/25QaFXf9NHeKOyu/ektpTb6Y YkYWegNIaPtkKJLoPcktVFQrXlM8ctL8FmbDq+BI= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 52453F80691; Mon, 15 May 2023 08:52:11 +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 CDD3BF8056F; Mon, 15 May 2023 08:52:10 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id AB6A3F80553; Mon, 15 May 2023 08:52:05 +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 0E1A5F80571 for <alsa-devel@alsa-project.org>; Mon, 15 May 2023 08:50:40 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0E1A5F80571 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=IEkLbfNx DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684133442; x=1715669442; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nQ5bs2pm3yyJqyCctssYUsybKhCJPd02FInwiNQFhys=; b=IEkLbfNxsqxDYPNiVQG6B7Ax8A7qhWIL02t4483K+4ErI51kGgOZNA3j HVXl/mQd/MvChNKmOJ8YU80eXMIIiznBxqajTzlayit4Ry4eTTEkccYr2 w0tr2St1fcYc1xL41UMyw+fW+G7noLsEMhap8ryBLq77Z5r6nBLvHEKIH GOxvatyuNkxrwS8PpNAhrIb6dQITmH5HzRxDCHi+mEq1TMI+S0vAYjlOf ZRRmSKxpTGG0TTqBZUE5Mxy+vbUMmPwAfTMMp3gzArQqYiPyz78l6YFho t0l8ZJtthzuzdSfPKyvrBqn8CC+Y/Tj+I2UnDvdpe/4suq5UtFuCcDxTp Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="349966346" X-IronPort-AV: E=Sophos;i="5.99,275,1677571200"; d="scan'208";a="349966346" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2023 23:50:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10710"; a="694908651" X-IronPort-AV: E=Sophos;i="5.99,275,1677571200"; d="scan'208";a="694908651" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2023 23:50:38 -0700 From: Bard Liao <yung-chuan.liao@linux.intel.com> To: alsa-devel@alsa-project.org, vkoul@kernel.org, broonie@kernel.org, tiwai@suse.de Cc: linux-kernel@vger.kernel.org, vinod.koul@linaro.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: [PATCH v2 08/26] ASoC: SOF: Intel: hda: retrieve SoundWire eml_lock and pass pointer Date: Mon, 15 May 2023 15:10:24 +0800 Message-Id: <20230515071042.2038-9-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230515071042.2038-1-yung-chuan.liao@linux.intel.com> References: <20230515071042.2038-1-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID-Hash: Y4YGN5JSQTZNISFA6J7Q3EKFV7U7SF7K X-Message-ID-Hash: Y4YGN5JSQTZNISFA6J7Q3EKFV7U7SF7K 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" <alsa-devel.alsa-project.org> Archived-At: <https://mailman.alsa-project.org/hyperkitty/list/alsa-devel@alsa-project.org/message/Y4YGN5JSQTZNISFA6J7Q3EKFV7U7SF7K/> List-Archive: <https://mailman.alsa-project.org/hyperkitty/list/alsa-devel@alsa-project.org/> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Owner: <mailto:alsa-devel-owner@alsa-project.org> List-Post: <mailto:alsa-devel@alsa-project.org> List-Subscribe: <mailto:alsa-devel-join@alsa-project.org> List-Unsubscribe: <mailto:alsa-devel-leave@alsa-project.org> |
Series |
ASoC/soundwire: add support for ACE2.x
|
expand
|
diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c index 4d48f4018617..388e41057172 100644 --- a/sound/soc/sof/intel/hda.c +++ b/sound/soc/sof/intel/hda.c @@ -175,6 +175,15 @@ static int hda_sdw_probe(struct snd_sof_dev *sdev) res.alh_base = hdev->desc->sdw_alh_base; res.ext = false; } else { + /* + * retrieve eml_lock needed to protect shared registers + * in the HDaudio multi-link areas + */ + res.eml_lock = hdac_bus_eml_get_mutex(sof_to_bus(sdev), true, + AZX_REG_ML_LEPTR_ID_SDW); + if (!res.eml_lock) + return -ENODEV; + res.mmio_base = sdev->bar[HDA_DSP_HDA_BAR]; /* * the SHIM and SoundWire register offsets are link-specific