File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -524,6 +524,7 @@ config SND_SOC_INTEL_SOUNDWIRE_SOF_MACH
524
524
select SND_SOC_RT1308
525
525
select SND_SOC_RT1316_SDW
526
526
select SND_SOC_RT1318_SDW
527
+ select SND_SOC_RT1320_SDW
527
528
select SND_SOC_RT5682_SDW
528
529
select SND_SOC_CS42L42_SDW
529
530
select SND_SOC_CS42L43
Original file line number Diff line number Diff line change @@ -160,6 +160,13 @@ static const struct snd_soc_dapm_route rt1318_map[] = {
160
160
{ "Speaker" , NULL , "rt1318-2 SPOR" },
161
161
};
162
162
163
+ static const struct snd_soc_dapm_route rt1320_map [] = {
164
+ { "Speaker" , NULL , "rt1320-1 SPOL" },
165
+ { "Speaker" , NULL , "rt1320-1 SPOR" },
166
+ { "Speaker" , NULL , "rt1320-2 SPOL" },
167
+ { "Speaker" , NULL , "rt1320-2 SPOR" },
168
+ };
169
+
163
170
static const struct snd_soc_dapm_route * get_codec_name_and_route (struct snd_soc_dai * dai ,
164
171
char * codec_name )
165
172
{
@@ -171,8 +178,10 @@ static const struct snd_soc_dapm_route *get_codec_name_and_route(struct snd_soc_
171
178
return rt1308_map ;
172
179
else if (strcmp (codec_name , "rt1316" ) == 0 )
173
180
return rt1316_map ;
174
- else
181
+ else if ( strcmp ( codec_name , "rt1318" ) == 0 )
175
182
return rt1318_map ;
183
+ else
184
+ return rt1320_map ;
176
185
}
177
186
178
187
int asoc_sdw_rt_amp_spk_rtd_init (struct snd_soc_pcm_runtime * rtd , struct snd_soc_dai * dai )
Original file line number Diff line number Diff line change @@ -254,6 +254,25 @@ struct asoc_sdw_codec_info codec_info_list[] = {
254
254
},
255
255
.dai_num = 1 ,
256
256
},
257
+ {
258
+ .part_id = 0x1320 ,
259
+ .dais = {
260
+ {
261
+ .direction = {true, false},
262
+ .dai_name = "rt1320-aif1" ,
263
+ .dai_type = SOC_SDW_DAI_TYPE_AMP ,
264
+ .dailink = {SOC_SDW_AMP_OUT_DAI_ID , SOC_SDW_UNUSED_DAI_ID },
265
+ .init = asoc_sdw_rt_amp_init ,
266
+ .exit = asoc_sdw_rt_amp_exit ,
267
+ .rtd_init = asoc_sdw_rt_amp_spk_rtd_init ,
268
+ .controls = generic_spk_controls ,
269
+ .num_controls = ARRAY_SIZE (generic_spk_controls ),
270
+ .widgets = generic_spk_widgets ,
271
+ .num_widgets = ARRAY_SIZE (generic_spk_widgets ),
272
+ },
273
+ },
274
+ .dai_num = 1 ,
275
+ },
257
276
{
258
277
.part_id = 0x714 ,
259
278
.version_id = 3 ,
You can’t perform that action at this time.
0 commit comments