According to the Intel sof design, it will create the name prefix appended with amp index for the amp codec only, such as: rt1318-1, rt1318-2, etc... But the rt1320 is a codec with amp and mic codec functions, it doesn't have the amp index in its name prefix as above. And then it will be hard to identify the codec if in multi-rt1320 case. So we add a flag to force the amp index to be appended.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -83,6 +83,8 @@ struct asoc_sdw_codec_info { · 82 unmodified lines | ||
| 83 | 83 | const int dai_num; |
| 84 | 84 | struct asoc_sdw_aux_info auxs[SOC_SDW_MAX_AUX_NUM]; |
| 85 | 85 | const int aux_num; |
| 86 | + /* Force AMP-style name_prefix handling (append AMP index) even if MIC/Jack DAIs exist */ | |
| 87 | + const bool is_amp; | |
| 86 | 88 | |
| 87 | 89 | int (*codec_card_late_probe)(struct snd_soc_card *card); |
| 88 | 90 | |