History

ASoC: SOF: Intel: Add a is_amp flag to fix the wrong name prefix

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.

Derek Fang committed 7 months ago

Commit dd4a1961 parent 9033f7b2 files · +12 −0Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/sound/soc_sdw_utils.h+2−0
@@ -83,6 +83,8 @@ struct asoc_sdw_codec_info { · 82 unmodified lines
83 const int dai_num;83 const int dai_num;
84 struct asoc_sdw_aux_info auxs[SOC_SDW_MAX_AUX_NUM];84 struct asoc_sdw_aux_info auxs[SOC_SDW_MAX_AUX_NUM];
85 const int aux_num;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 int (*codec_card_late_probe)(struct snd_soc_card *card);89 int (*codec_card_late_probe)(struct snd_soc_card *card);
88 90

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t