Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions sound/soc/sof/intel/hda.c
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,15 @@ static struct snd_soc_acpi_adr_device *find_acpi_adr_device(struct device *dev,
"AMP", *amp_index);
break;
}
} else if (!strcmp(name_prefix, "AMP")) {
adr_dev[index].name_prefix = devm_kasprintf(dev, GFP_KERNEL, "%s%d",
name_prefix,
*amp_index);
} else {
/*
* The name_prefix will be the amp name if it is not "Left" or "AMP", set it to
* <name_prefix>-<amp_index> format. Like rt1320-1
*/
adr_dev[index].name_prefix = devm_kasprintf(dev, GFP_KERNEL, "%s-%d",
name_prefix,
*amp_index);
Expand Down
Loading