* [PATCH] soundwire: intel_ace2x: use legacy formula for intel_alh_id
@ 2024-04-08 6:22 Bard Liao
2024-04-11 9:51 ` Vinod Koul
0 siblings, 1 reply; 2+ messages in thread
From: Bard Liao @ 2024-04-08 6:22 UTC (permalink / raw)
To: linux-sound, vkoul
Cc: vinod.koul, linux-kernel, pierre-louis.bossart, bard.liao
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
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 <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] soundwire: intel_ace2x: use legacy formula for intel_alh_id
2024-04-08 6:22 [PATCH] soundwire: intel_ace2x: use legacy formula for intel_alh_id Bard Liao
@ 2024-04-11 9:51 ` Vinod Koul
0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2024-04-11 9:51 UTC (permalink / raw)
To: linux-sound, Bard Liao
Cc: vinod.koul, linux-kernel, pierre-louis.bossart, bard.liao
On Mon, 08 Apr 2024 06:22:06 +0000, Bard Liao wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] soundwire: intel_ace2x: use legacy formula for intel_alh_id
commit: b18c25afabf80972b32a3918f6d7f16fbd54b18f
Best regards,
--
~Vinod
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-11 9:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-08 6:22 [PATCH] soundwire: intel_ace2x: use legacy formula for intel_alh_id Bard Liao
2024-04-11 9:51 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox