Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: SOF: Intel: add hyphen between name and index to amp name_prefix

For those amps that use their name as name prefix the amp id should be
added after a hyphen symbol. Like "rt1320-1".

Fixes: 5226d19d4cae ("ASoC: SOF: Intel: use sof_sdw as default SDW machine driver")
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20251021065700.130810-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Shuming Fan and committed by
Mark Brown
5cd5f8fc 900da532

+1 -1
+1 -1
sound/soc/sof/intel/hda.c
··· 1261 1261 break; 1262 1262 } 1263 1263 } else { 1264 - adr_dev[index].name_prefix = devm_kasprintf(dev, GFP_KERNEL, "%s%d", 1264 + adr_dev[index].name_prefix = devm_kasprintf(dev, GFP_KERNEL, "%s-%d", 1265 1265 name_prefix, 1266 1266 *amp_index); 1267 1267 }