Skip to content

Commit b18c25a

Browse files
plbossartvinodkoul
authored andcommitted
soundwire: intel_ace2x: use legacy formula for intel_alh_id
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 <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Signed-off-by: Bard Liao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 8dfd00f commit b18c25a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/soundwire/intel_ace2x.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,11 @@ static int intel_hw_params(struct snd_pcm_substream *substream,
291291
goto error;
292292
}
293293

294+
/* use same definitions for alh_id as previous generations */
295+
pdi->intel_alh_id = (sdw->instance * 16) + pdi->num + 3;
296+
if (pdi->num >= 2)
297+
pdi->intel_alh_id += 2;
298+
294299
/* the SHIM will be configured in the callback functions */
295300

296301
sdw_cdns_config_stream(cdns, ch, dir, pdi);

0 commit comments

Comments
 (0)