|
60 | 60 | #define SOF_RT5682S_HEADPHONE_CODEC_PRESENT BIT(23) |
61 | 61 | #define SOF_MAX98390_SPEAKER_AMP_PRESENT BIT(24) |
62 | 62 | #define SOF_MAX98390_TWEETER_SPEAKER_PRESENT BIT(25) |
| 63 | +#define SOF_RT1019_SPEAKER_AMP_PRESENT BIT(26) |
63 | 64 |
|
64 | 65 |
|
65 | 66 | /* Default: MCLK on, MCLK 19.2M, SSP0 */ |
@@ -733,6 +734,8 @@ static struct snd_soc_dai_link *sof_card_dai_links_create(struct device *dev, |
733 | 734 | SOF_RT1015_SPEAKER_AMP_100FS) ? 100 : 64); |
734 | 735 | } else if (sof_rt5682_quirk & SOF_RT1015P_SPEAKER_AMP_PRESENT) { |
735 | 736 | sof_rt1015p_dai_link(&links[id]); |
| 737 | + } else if (sof_rt5682_quirk & SOF_RT1019_SPEAKER_AMP_PRESENT) { |
| 738 | + sof_rt1019_dai_link(&links[id]); |
736 | 739 | } else if (sof_rt5682_quirk & |
737 | 740 | SOF_MAX98373_SPEAKER_AMP_PRESENT) { |
738 | 741 | links[id].codecs = max_98373_components; |
@@ -1070,6 +1073,16 @@ static const struct platform_device_id board_ids[] = { |
1070 | 1073 | SOF_BT_OFFLOAD_SSP(2) | |
1071 | 1074 | SOF_SSP_BT_OFFLOAD_PRESENT), |
1072 | 1075 | }, |
| 1076 | + { |
| 1077 | + .name = "adl_rt1019_rt5682s", |
| 1078 | + .driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN | |
| 1079 | + SOF_RT5682_SSP_CODEC(0) | |
| 1080 | + SOF_RT5682S_HEADPHONE_CODEC_PRESENT | |
| 1081 | + SOF_SPEAKER_AMP_PRESENT | |
| 1082 | + SOF_RT1019_SPEAKER_AMP_PRESENT | |
| 1083 | + SOF_RT5682_SSP_AMP(1) | |
| 1084 | + SOF_RT5682_NUM_HDMIDEV(4)), |
| 1085 | + }, |
1073 | 1086 | { } |
1074 | 1087 | }; |
1075 | 1088 | MODULE_DEVICE_TABLE(platform, board_ids); |
|
0 commit comments