Lines Matching refs:name_prefix

1160 	const char *name_prefix = "";
1192 name_prefix = codec_info_list[i].name_prefix;
1197 if (!name_prefix) {
1198 dev_err(dev, "codec_info_list name_prefix of part id %#x-%#x is missing\n",
1237 * non-AMP above. Callers/UCM rely on this to keep name_prefix and AMP
1251 /* For non-amp codecs, get name_prefix from codec_info_list[] */
1252 adr_dev[index].name_prefix = devm_kasprintf(dev, GFP_KERNEL, "%s", name_prefix);
1257 * The name_prefix comes from codec_info_list which has a name_prefix per codec.
1258 * And we need to give a unique name_prefix for each amp and should be backwards
1260 * For the common name_prefix, we append the amp index to it. However, for the
1261 * "Left" name_prefix, we convert the second amp name_prefix to "Right" and
1262 * for the third and further amps, we set the name_prefix to "AMP<amp_index>".
1264 if (!strcmp(name_prefix, "Left")) {
1267 adr_dev[index].name_prefix = devm_kasprintf(dev, GFP_KERNEL,
1271 adr_dev[index].name_prefix = devm_kasprintf(dev, GFP_KERNEL,
1276 adr_dev[index].name_prefix = devm_kasprintf(dev, GFP_KERNEL, "%s%d",
1280 } else if (!strcmp(name_prefix, "AMP")) {
1281 adr_dev[index].name_prefix = devm_kasprintf(dev, GFP_KERNEL, "%s%d",
1282 name_prefix,
1286 * The name_prefix will be the amp name if it is not "Left" or "AMP", set it to
1287 * <name_prefix>-<amp_index> format. Like rt1320-1
1289 adr_dev[index].name_prefix = devm_kasprintf(dev, GFP_KERNEL, "%s-%d",
1290 name_prefix,
1296 if (!adr_dev[index].name_prefix) {
1297 dev_err(dev, "failed to allocate memory for name_prefix\n");
1301 dev_dbg(dev, "adr[%d] 0x%llx link id %d name_prefix \"%s\" is found\n",
1302 index, adr_dev[index].adr, sdw_device->bus->link_id, adr_dev[index].name_prefix);