]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: SOF: Intel: Fix endpoint index if endpoints are missing
authorMaciej Strozek <mstrozek@opensource.cirrus.com>
Thu, 2 Apr 2026 06:45:30 +0000 (14:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Apr 2026 11:30:39 +0000 (13:30 +0200)
commitc164d026f6365b4e023f19d68fd58a50e83b4119
tree8254c9a45da745082595c24f111390409964be12
parentb022da127bd9d2217e8f285e643caf5aff6f7f14
ASoC: SOF: Intel: Fix endpoint index if endpoints are missing

[ Upstream commit 86facd80a2a37536937f06de637abf9e8cabdb4b ]

In case of missing endpoints, the sequential numbering will cause wrong
mapping. Instead, assign the original DAI index from codec_info_list.

Fixes: 5226d19d4cae ("ASoC: SOF: Intel: use sof_sdw as default SDW machine driver")
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20260402064531.2287261-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/sof/intel/hda.c