File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -253,6 +253,20 @@ static const struct dmi_system_id sof_rt5682_quirk_table[] = {
253253 SOF_SSP_BT_OFFLOAD_PRESENT
254254 ),
255255 },
256+ {
257+ .callback = sof_rt5682_quirk_cb ,
258+ .matches = {
259+ DMI_MATCH (DMI_PRODUCT_FAMILY , "Google_Rex" ),
260+ DMI_MATCH (DMI_OEM_STRING , "AUDIO-ALC1019_ALC5682I_I2S" ),
261+ },
262+ .driver_data = (void * )(SOF_RT5682_MCLK_EN |
263+ SOF_RT5682_SSP_CODEC (2 ) |
264+ SOF_SPEAKER_AMP_PRESENT |
265+ SOF_RT1019_SPEAKER_AMP_PRESENT |
266+ SOF_RT5682_SSP_AMP (0 ) |
267+ SOF_RT5682_NUM_HDMIDEV (4 ) |
268+ ),
269+ },
256270 {}
257271};
258272
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ static const struct snd_soc_acpi_codecs mtl_max98360a_amp = {
2020 .codecs = {"MX98360A" }
2121};
2222
23+ static const struct snd_soc_acpi_codecs mtl_rt1019p_amp = {
24+ .num_codecs = 1 ,
25+ .codecs = {"RTL1019" }
26+ };
27+
2328static const struct snd_soc_acpi_codecs mtl_rt5682_rt5682s_hp = {
2429 .num_codecs = 2 ,
2530 .codecs = {"10EC5682" , "RTL5682" },
@@ -40,6 +45,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[] = {
4045 .quirk_data = & mtl_max98360a_amp ,
4146 .sof_tplg_filename = "sof-mtl-max98360a-rt5682.tplg" ,
4247 },
48+ {
49+ .comp_ids = & mtl_rt5682_rt5682s_hp ,
50+ .drv_name = "mtl_rt1019p_rt5682" ,
51+ .machine_quirk = snd_soc_acpi_codec_list ,
52+ .quirk_data = & mtl_rt1019p_amp ,
53+ .sof_tplg_filename = "sof-mtl-rt1019-rt5682.tplg" ,
54+ },
4355 {},
4456};
4557EXPORT_SYMBOL_GPL (snd_soc_acpi_intel_mtl_machines );
You can’t perform that action at this time.
0 commit comments