Skip to content

Commit 081c737

Browse files
brentlutiwai
authored andcommitted
ALSA: hda: intel-dsp-config: reorder the config table
Entries without dmi_table nor codec_hid field need to be placed after entries with these two fields or they will be always selected. Signed-off-by: Brent Lu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 19980aa commit 081c737

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

sound/hda/intel-dsp-config.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,13 @@ static const struct config_entry config_table[] = {
249249
}
250250
},
251251
{
252-
.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
252+
.flags = FLAG_SOF,
253253
.device = 0x02c8,
254+
.codec_hid = "ESSX8336",
254255
},
255256
{
256-
.flags = FLAG_SOF,
257+
.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
257258
.device = 0x02c8,
258-
.codec_hid = "ESSX8336",
259259
},
260260
/* Cometlake-H */
261261
{
@@ -278,14 +278,14 @@ static const struct config_entry config_table[] = {
278278
}
279279
},
280280
{
281-
.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
282-
.device = 0x06c8,
283-
},
284-
{
285281
.flags = FLAG_SOF,
286282
.device = 0x06c8,
287283
.codec_hid = "ESSX8336",
288284
},
285+
{
286+
.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
287+
.device = 0x06c8,
288+
},
289289
#endif
290290

291291
/* Icelake */
@@ -351,17 +351,17 @@ static const struct config_entry config_table[] = {
351351
}
352352
},
353353
{
354-
.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
354+
.flags = FLAG_SOF,
355355
.device = 0xa0c8,
356+
.codec_hid = "ESSX8336",
356357
},
357358
{
358359
.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
359-
.device = 0x43c8,
360+
.device = 0xa0c8,
360361
},
361362
{
362-
.flags = FLAG_SOF,
363-
.device = 0xa0c8,
364-
.codec_hid = "ESSX8336",
363+
.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
364+
.device = 0x43c8,
365365
},
366366
#endif
367367

0 commit comments

Comments
 (0)