},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_JACK,
},
{
.part_id = 0x711,
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_JACK,
},
{
.part_id = 0x711,
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_JACK,
},
{
.part_id = 0x1308,
},
.dai_num = 1,
.ops = &sof_sdw_rt1308_i2s_ops,
- .codec_type = SOF_SDW_CODEC_TYPE_AMP,
},
{
.part_id = 0x1316,
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_AMP,
},
{
.part_id = 0x1318,
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_AMP,
},
{
.part_id = 0x714,
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_MIC,
},
{
.part_id = 0x715,
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_MIC,
},
{
.part_id = 0x714,
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_MIC,
},
{
.part_id = 0x715,
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_MIC,
},
{
.part_id = 0x8373,
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_AMP,
},
{
.part_id = 0x5682,
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_JACK,
},
{
.part_id = 0xaaaa, /* generic codec mockup */
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_JACK,
},
{
.part_id = 0xaa55, /* headset codec mockup */
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_JACK,
},
{
.part_id = 0x55aa, /* amplifier mockup */
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_AMP,
},
{
.part_id = 0x5555,
},
},
.dai_num = 1,
- .codec_type = SOF_SDW_CODEC_TYPE_MIC,
},
};
int codec_count, int *link_id,
int *codec_conf_index,
bool *ignore_pch_dmic,
- bool append_codec_type,
+ bool append_dai_type,
int adr_index)
{
const struct snd_soc_acpi_link_adr *link_next;
}
/* create stream name according to first link id */
- if (append_codec_type) {
+ if (append_dai_type) {
name = devm_kasprintf(dev, GFP_KERNEL,
sdw_stream_name[stream + 2], cpu_dai_id[0],
- type_strings[codec_info->codec_type]);
+ type_strings[codec_info->dais[0].dai_type]);
} else {
name = devm_kasprintf(dev, GFP_KERNEL,
sdw_stream_name[stream], cpu_dai_id[0]);
const struct snd_soc_acpi_link_adr *adr_link;
struct snd_soc_dai_link_component *cpus;
struct snd_soc_codec_conf *codec_conf;
- bool append_codec_type = false;
+ bool append_dai_type = false;
bool ignore_pch_dmic = false;
int codec_conf_count;
int codec_conf_index = 0;
SDW_PART_ID(adr_link->adr_d[j].adr)) ||
(SDW_MFG_ID(adr_link->adr_d[i].adr) !=
SDW_MFG_ID(adr_link->adr_d[i].adr))) {
- append_codec_type = true;
+ append_dai_type = true;
goto out;
}
}
&cpu_id, group_generated,
codec_conf, codec_conf_count,
&be_id, &codec_conf_index,
- &ignore_pch_dmic, append_codec_type, i);
+ &ignore_pch_dmic, append_dai_type, i);
if (ret < 0) {
dev_err(dev, "failed to create dai link %d", link_index);
return ret;