Skip to content

Commit b250b54

Browse files
shumingfanbardliao
authored andcommitted
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: 5226d19 ("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>
1 parent 26aa2dd commit b250b54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/intel/hda.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ static struct snd_soc_acpi_adr_device *find_acpi_adr_device(struct device *dev,
12611261
break;
12621262
}
12631263
} 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",
12651265
name_prefix,
12661266
*amp_index);
12671267
}

0 commit comments

Comments
 (0)