Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1155346lqe; Sun, 7 Apr 2024 23:22:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6wW4FSEN+0qcfwVWA45zScX+XYfPhmj36X2DtKeBQBeAenU/HDR7uQWeVbrIqyCFBA3v+BAQDPG3nvdkQzDx54p7rjHwtmspF7gTxbQ== X-Google-Smtp-Source: AGHT+IFGZ1hQSDFt6GsOm1IoE9LOQhsd00wdkDnhacql0Mw5HKMz64KUsvAl3AiE+cuh6tDxMezb X-Received: by 2002:a05:6a00:1915:b0:6ea:afcb:1b4a with SMTP id y21-20020a056a00191500b006eaafcb1b4amr8965342pfi.8.1712557343093; Sun, 07 Apr 2024 23:22:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712557343; cv=pass; d=google.com; s=arc-20160816; b=KS2O95jy3n2vYx6gn1pT7TgYDqVm/P5jj0WZpYNNpM0yjYVVeQE3Q+VEX/fEKFX+6E 7Jqf4Y2swwqqTj/L6Kkyl/OstiPARMScv5vLUBbIQ6ZqfAizK86WVgPMyKHCHNqPMDxf vrDUWrBgNcxXW4DgYnFOYPVdm0eA95JSLnLiiN+rblE/Ddc2LA0vfWhNAz29ZPG3PFag T+V5Yqaf+viw27pxNDE2/8jFJo50CLH5CdpI7jB92cbNR65ETEY3nBIQOwcc+cdRDpDI syrh7IDGq18L6Nsp/8qy0EdDqNSG1xoEtTLlgpdYzpCqnWjDN7utjWbA6yDj7raUNsT/ 9t/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=1Cjq9k8TrSBjjoaUoTCQkRliE+p6H49DUtReaAWgmIs=; fh=DQfWcJ7a6lABpgAjlslbt+lALChD4jPOSQFW0XC7h54=; b=yCAbX+y2rBXgj/0Ym6CWpi+oNy5LW6Y4Z432xJzre3BG4Z/MOSh7zpLWP5+zjyYmLG xusuNGiGrfubphG2Gguo1ezlCm9CIl9xXF2MquLN9hQ8jQrFLKlH7y8Bf+DCa2/1+Q76 7JpDclLj3TR8Jl2xDN5jDXjBsi+fJNDgzFJfDuKqT5GADxYN5qYE93CRr2+tTgDyaV1v GA0lnU47duFdxCkeWqsMDMC4GFHh66WW8CkYMdD0ARP/HJSeBZ9LgBt1Z2at6l3tOrcW EDgGjapYYbs8+8byowUeSGKYTeFLjGbtAUgZKGG8cfOzterkQnZTmKXdryIr1jIs/M1R YJvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aMulaKug; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-134831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134831-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m17-20020a62f211000000b006ecfc7f651asi5644729pfh.285.2024.04.07.23.22.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 23:22:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aMulaKug; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-134831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134831-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 71A4A28280C for ; Mon, 8 Apr 2024 06:22:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D47CFBF3; Mon, 8 Apr 2024 06:22:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="aMulaKug" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 DA74920312; Mon, 8 Apr 2024 06:22:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712557337; cv=none; b=JvKOHe8+z12JlmIx8B/ettAEdNH+dhgTpcDAxW1V6X4KAble5IUk5pxzsnhjFhcVvY0BUCxlNsaXMYQ+zxvFkBsuiuIsZezsy4kxxXoTno+CGlCZb0k8VW260tswk/PX/fnYgVEZJnX96Y8oN/FJ0Kiqd+pPK5Qlz0sU6pGyvzU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712557337; c=relaxed/simple; bh=Zrm/wvyh0xkh9uGwTCqa1YeOhLPuzSzzYRBCkJY6zAg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=EeJjc5j/hfd/hnMIi8Ug17ugbuuHTkiy4FFVqs93Uh9y3M0oM9rjzNm8d9bk5VVgX3QgzC7Tp5R4zwZO0qcRWUoqNj7Bsp6Xl5RFXpASL7BTWalpxXJ6TkViZmMq4O/LAYXa8fsUHbKIg7p1DcbIbbCcA8hRbLrjCSXwFiQWiRI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=aMulaKug; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712557336; x=1744093336; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Zrm/wvyh0xkh9uGwTCqa1YeOhLPuzSzzYRBCkJY6zAg=; b=aMulaKugh7UJai1u7w8wae9OJE5l3nJaO8cxtibgPxXmXCNadZifyUWi a7kxdv/LJZ8XTqA2dTiZXI4GoEoX0l3WfF+yfAche23e8l3ePYJhGLdfe suHRtnNBptLmyohnU16HeAzQl/s39I8v+DSOGLwHYvxnbvvhdcRDwfivE xknUdF9VHHbSZDkjHHJjaSFXvloh1e6Dbfl/74rqaRWREimy9kfDEzkAB HgTejkwbOCSZ3g520aK5Mp5G/f30JtWH68uv1ipWzOEuMvwZAbnnh7llr uPya3LfGPznL92lMo6QcpbaMY7K5YCN0d5aigTwW/iABcz4FoaruJAvSd g==; X-CSE-ConnectionGUID: 4DX4JlVfTvih4uWzRYbl1Q== X-CSE-MsgGUID: ielZVIqRRIaWUd9FjrESWA== X-IronPort-AV: E=McAfee;i="6600,9927,11037"; a="7940466" X-IronPort-AV: E=Sophos;i="6.07,186,1708416000"; d="scan'208";a="7940466" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2024 23:22:15 -0700 X-CSE-ConnectionGUID: Pu0oYijaTpyA84VUyhTUPg== X-CSE-MsgGUID: 7yLmEzAxSROmn3MKm8uGmg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,186,1708416000"; d="scan'208";a="50977361" Received: from yungchua-ws.ostc.intel.com (HELO yungchua-ws.intel.com) ([10.54.69.90]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2024 23:22:14 -0700 From: Bard Liao To: linux-sound@vger.kernel.org, vkoul@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: [PATCH] soundwire: intel_ace2x: use legacy formula for intel_alh_id Date: Mon, 8 Apr 2024 06:22:06 +0000 Message-Id: <20240408062206.421326-1-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Pierre-Louis Bossart Starting with Lunar Lake, the notion of ALH is mostly irrelevant, since the HDaudio DMAs are used. However the firmware still relies on an 'ALH gateway' with a 'node_id' based on the same formula. This patch in isolation has no functional impact, it's only when the ASoC parts use it that we will see a changed behavior. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan Signed-off-by: Bard Liao --- drivers/soundwire/intel_ace2x.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/soundwire/intel_ace2x.c b/drivers/soundwire/intel_ace2x.c index 4910cab22273..75e629c938dc 100644 --- a/drivers/soundwire/intel_ace2x.c +++ b/drivers/soundwire/intel_ace2x.c @@ -302,6 +302,11 @@ static int intel_hw_params(struct snd_pcm_substream *substream, goto error; } + /* use same definitions for alh_id as previous generations */ + pdi->intel_alh_id = (sdw->instance * 16) + pdi->num + 3; + if (pdi->num >= 2) + pdi->intel_alh_id += 2; + /* the SHIM will be configured in the callback functions */ sdw_cdns_config_stream(cdns, ch, dir, pdi); -- 2.34.1