Skip to content

Commit 0efaf69

Browse files
terry182plbossart
authored andcommitted
ASoC: Intel: sof_rt5682: reorder quirk table
Reorder the entries in quirk table to group entries with same platform. Signed-off-by: Terry Cheong <htcheong@chromium.org>
1 parent 2807062 commit 0efaf69

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

sound/soc/intel/boards/sof_rt5682.c

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -981,14 +981,13 @@ static const struct platform_device_id board_ids[] = {
981981
.name = "sof_rt5682",
982982
},
983983
{
984-
.name = "tgl_mx98357_rt5682",
984+
.name = "cml_rt1015_rt5682",
985985
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
986+
SOF_RT5682_MCLK_24MHZ |
986987
SOF_RT5682_SSP_CODEC(0) |
987988
SOF_SPEAKER_AMP_PRESENT |
988-
SOF_RT5682_SSP_AMP(1) |
989-
SOF_RT5682_NUM_HDMIDEV(4) |
990-
SOF_BT_OFFLOAD_SSP(2) |
991-
SOF_SSP_BT_OFFLOAD_PRESENT),
989+
SOF_RT1015_SPEAKER_AMP_PRESENT |
990+
SOF_RT5682_SSP_AMP(1)),
992991
},
993992
{
994993
.name = "jsl_rt5682_rt1015",
@@ -1000,33 +999,38 @@ static const struct platform_device_id board_ids[] = {
1000999
SOF_RT5682_SSP_AMP(1)),
10011000
},
10021001
{
1003-
.name = "tgl_mx98373_rt5682",
1002+
.name = "jsl_rt5682_mx98360",
10041003
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
1004+
SOF_RT5682_MCLK_24MHZ |
10051005
SOF_RT5682_SSP_CODEC(0) |
10061006
SOF_SPEAKER_AMP_PRESENT |
1007-
SOF_MAX98373_SPEAKER_AMP_PRESENT |
1008-
SOF_RT5682_SSP_AMP(1) |
1009-
SOF_RT5682_NUM_HDMIDEV(4) |
1010-
SOF_BT_OFFLOAD_SSP(2) |
1011-
SOF_SSP_BT_OFFLOAD_PRESENT),
1007+
SOF_MAX98360A_SPEAKER_AMP_PRESENT |
1008+
SOF_RT5682_SSP_AMP(1)),
10121009
},
10131010
{
1014-
.name = "jsl_rt5682_mx98360",
1011+
.name = "jsl_rt5682_rt1015p",
10151012
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
10161013
SOF_RT5682_MCLK_24MHZ |
10171014
SOF_RT5682_SSP_CODEC(0) |
10181015
SOF_SPEAKER_AMP_PRESENT |
1019-
SOF_MAX98360A_SPEAKER_AMP_PRESENT |
1016+
SOF_RT1015P_SPEAKER_AMP_PRESENT |
10201017
SOF_RT5682_SSP_AMP(1)),
10211018
},
10221019
{
1023-
.name = "cml_rt1015_rt5682",
1020+
.name = "jsl_rt5682",
10241021
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
10251022
SOF_RT5682_MCLK_24MHZ |
1023+
SOF_RT5682_SSP_CODEC(0)),
1024+
},
1025+
{
1026+
.name = "tgl_mx98357_rt5682",
1027+
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
10261028
SOF_RT5682_SSP_CODEC(0) |
10271029
SOF_SPEAKER_AMP_PRESENT |
1028-
SOF_RT1015_SPEAKER_AMP_PRESENT |
1029-
SOF_RT5682_SSP_AMP(1)),
1030+
SOF_RT5682_SSP_AMP(1) |
1031+
SOF_RT5682_NUM_HDMIDEV(4) |
1032+
SOF_BT_OFFLOAD_SSP(2) |
1033+
SOF_SSP_BT_OFFLOAD_PRESENT),
10301034
},
10311035
{
10321036
.name = "tgl_rt1011_rt5682",
@@ -1040,13 +1044,15 @@ static const struct platform_device_id board_ids[] = {
10401044
SOF_SSP_BT_OFFLOAD_PRESENT),
10411045
},
10421046
{
1043-
.name = "jsl_rt5682_rt1015p",
1047+
.name = "tgl_mx98373_rt5682",
10441048
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
1045-
SOF_RT5682_MCLK_24MHZ |
10461049
SOF_RT5682_SSP_CODEC(0) |
10471050
SOF_SPEAKER_AMP_PRESENT |
1048-
SOF_RT1015P_SPEAKER_AMP_PRESENT |
1049-
SOF_RT5682_SSP_AMP(1)),
1051+
SOF_MAX98373_SPEAKER_AMP_PRESENT |
1052+
SOF_RT5682_SSP_AMP(1) |
1053+
SOF_RT5682_NUM_HDMIDEV(4) |
1054+
SOF_BT_OFFLOAD_SSP(2) |
1055+
SOF_SSP_BT_OFFLOAD_PRESENT),
10501056
},
10511057
{
10521058
.name = "adl_mx98373_rt5682",
@@ -1149,12 +1155,6 @@ static const struct platform_device_id board_ids[] = {
11491155
SOF_RT5682_SSP_AMP(1) |
11501156
SOF_RT5682_NUM_HDMIDEV(4)),
11511157
},
1152-
{
1153-
.name = "jsl_rt5682",
1154-
.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
1155-
SOF_RT5682_MCLK_24MHZ |
1156-
SOF_RT5682_SSP_CODEC(0)),
1157-
},
11581158
{ }
11591159
};
11601160
MODULE_DEVICE_TABLE(platform, board_ids);

0 commit comments

Comments
 (0)