Skip to content

Commit dcb231e

Browse files
committed
Merge series "ASoC: SOF: Intel: update PCI IDs" from Pierre-Louis Bossart <[email protected]>:
Clean-up CometLake and add missing PCI IDs. Changes for the legacy driver are sent separately. Pierre-Louis Bossart (3): ASoC: Intel: SOF: merge COMETLAKE_LP and COMETLAKE_H ASoC: SOF: Intel: add PCI ID for CometLake-S ASoC: SOF: Intel: add PCI IDs for ICL-H and TGL-H sound/hda/intel-dsp-config.c | 4 +--- sound/soc/intel/boards/Kconfig | 4 ++-- sound/soc/sof/intel/Kconfig | 29 ++++++++--------------------- sound/soc/sof/sof-pci-dev.c | 24 ++++++++++++++---------- 4 files changed, 25 insertions(+), 36 deletions(-) -- 2.20.1
2 parents a94eacc + c8d2e2b commit dcb231e

File tree

4 files changed

+25
-36
lines changed

4 files changed

+25
-36
lines changed

sound/hda/intel-dsp-config.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ static const struct config_entry config_table[] = {
192192
},
193193
#endif
194194

195+
#if IS_ENABLED(CONFIG_SND_SOC_SOF_COMETLAKE)
195196
/* Cometlake-LP */
196-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_COMETLAKE_LP)
197197
{
198198
.flags = FLAG_SOF,
199199
.device = 0x02c8,
@@ -211,9 +211,7 @@ static const struct config_entry config_table[] = {
211211
.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC,
212212
.device = 0x02c8,
213213
},
214-
#endif
215214
/* Cometlake-H */
216-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_COMETLAKE_H)
217215
{
218216
.flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC,
219217
.device = 0x06c8,

sound/soc/intel/boards/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ config SND_SOC_INTEL_SOF_PCM512x_MACH
492492

493493
endif ## SND_SOC_SOF_HDA_LINK || SND_SOC_SOF_BAYTRAIL
494494

495-
if (SND_SOC_SOF_COMETLAKE_LP && SND_SOC_SOF_HDA_LINK)
495+
if (SND_SOC_SOF_COMETLAKE && SND_SOC_SOF_HDA_LINK)
496496

497497
config SND_SOC_INTEL_CML_LP_DA7219_MAX98357A_MACH
498498
tristate "CML_LP with DA7219 and MAX98357A in I2S Mode"
@@ -520,7 +520,7 @@ config SND_SOC_INTEL_SOF_CML_RT1011_RT5682_MACH
520520
Say Y if you have such a device.
521521
If unsure select "N".
522522

523-
endif ## SND_SOC_SOF_COMETLAKE_LP && SND_SOC_SOF_HDA_LINK
523+
endif ## SND_SOC_SOF_COMETLAKE && SND_SOC_SOF_HDA_LINK
524524

525525
if SND_SOC_SOF_JASPERLAKE
526526

sound/soc/sof/intel/Kconfig

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ config SND_SOC_SOF_INTEL_PCI
2525
select SND_SOC_SOF_CANNONLAKE if SND_SOC_SOF_CANNONLAKE_SUPPORT
2626
select SND_SOC_SOF_COFFEELAKE if SND_SOC_SOF_COFFEELAKE_SUPPORT
2727
select SND_SOC_SOF_ICELAKE if SND_SOC_SOF_ICELAKE_SUPPORT
28-
select SND_SOC_SOF_COMETLAKE_LP if SND_SOC_SOF_COMETLAKE_LP_SUPPORT
29-
select SND_SOC_SOF_COMETLAKE_H if SND_SOC_SOF_COMETLAKE_H_SUPPORT
28+
select SND_SOC_SOF_COMETLAKE if SND_SOC_SOF_COMETLAKE_SUPPORT
3029
select SND_SOC_SOF_TIGERLAKE if SND_SOC_SOF_TIGERLAKE_SUPPORT
3130
select SND_SOC_SOF_ELKHARTLAKE if SND_SOC_SOF_ELKHARTLAKE_SUPPORT
3231
select SND_SOC_SOF_JASPERLAKE if SND_SOC_SOF_JASPERLAKE_SUPPORT
@@ -201,34 +200,22 @@ config SND_SOC_SOF_ICELAKE
201200
This option is not user-selectable but automagically handled by
202201
'select' statements at a higher level
203202

204-
config SND_SOC_SOF_COMETLAKE_LP
203+
config SND_SOC_SOF_COMETLAKE
205204
tristate
206205
select SND_SOC_SOF_HDA_COMMON
207206
help
208207
This option is not user-selectable but automagically handled by
209208
'select' statements at a higher level
210209

211-
config SND_SOC_SOF_COMETLAKE_LP_SUPPORT
212-
bool "SOF support for CometLake-LP"
213-
help
214-
This adds support for Sound Open Firmware for Intel(R) platforms
215-
using the Cometlake-LP processors.
216-
Say Y if you have such a device.
217-
If unsure select "N".
210+
config SND_SOC_SOF_COMETLAKE_SUPPORT
211+
bool
218212

219-
config SND_SOC_SOF_COMETLAKE_H
220-
tristate
221-
select SND_SOC_SOF_HDA_COMMON
222-
help
223-
This option is not user-selectable but automagically handled by
224-
'select' statements at a higher level
225-
226-
config SND_SOC_SOF_COMETLAKE_H_SUPPORT
227-
bool "SOF support for CometLake-H"
213+
config SND_SOC_SOF_COMETLAKE_LP_SUPPORT
214+
bool "SOF support for CometLake"
215+
select SND_SOC_SOF_COMETLAKE_SUPPORT
228216
help
229217
This adds support for Sound Open Firmware for Intel(R) platforms
230-
using the Cometlake-H processors.
231-
Say Y if you have such a device.
218+
using the Cometlake processors.
232219
If unsure select "N".
233220

234221
config SND_SOC_SOF_TIGERLAKE_SUPPORT

sound/soc/sof/sof-pci-dev.c

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,7 @@ static const struct sof_dev_desc cfl_desc = {
151151
};
152152
#endif
153153

154-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_COMETLAKE_LP) || \
155-
IS_ENABLED(CONFIG_SND_SOC_SOF_COMETLAKE_H)
156-
154+
#if IS_ENABLED(CONFIG_SND_SOC_SOF_COMETLAKE)
157155
static const struct sof_dev_desc cml_desc = {
158156
.machines = snd_soc_acpi_intel_cml_machines,
159157
.alt_machines = snd_soc_acpi_intel_cml_sdw_machines,
@@ -411,26 +409,32 @@ static const struct pci_device_id sof_pci_ids[] = {
411409
.driver_data = (unsigned long)&cfl_desc},
412410
#endif
413411
#if IS_ENABLED(CONFIG_SND_SOC_SOF_ICELAKE)
414-
{ PCI_DEVICE(0x8086, 0x34C8),
412+
{ PCI_DEVICE(0x8086, 0x34C8), /* ICL-LP */
413+
.driver_data = (unsigned long)&icl_desc},
414+
{ PCI_DEVICE(0x8086, 0x3dc8), /* ICL-H */
415415
.driver_data = (unsigned long)&icl_desc},
416+
416417
#endif
417418
#if IS_ENABLED(CONFIG_SND_SOC_SOF_JASPERLAKE)
418419
{ PCI_DEVICE(0x8086, 0x38c8),
419420
.driver_data = (unsigned long)&jsl_desc},
420421
{ PCI_DEVICE(0x8086, 0x4dc8),
421422
.driver_data = (unsigned long)&jsl_desc},
422423
#endif
423-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_COMETLAKE_LP)
424-
{ PCI_DEVICE(0x8086, 0x02c8),
424+
#if IS_ENABLED(CONFIG_SND_SOC_SOF_COMETLAKE)
425+
{ PCI_DEVICE(0x8086, 0x02c8), /* CML-LP */
425426
.driver_data = (unsigned long)&cml_desc},
426-
#endif
427-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_COMETLAKE_H)
428-
{ PCI_DEVICE(0x8086, 0x06c8),
427+
{ PCI_DEVICE(0x8086, 0x06c8), /* CML-H */
428+
.driver_data = (unsigned long)&cml_desc},
429+
{ PCI_DEVICE(0x8086, 0xa3f0), /* CML-S */
429430
.driver_data = (unsigned long)&cml_desc},
430431
#endif
431432
#if IS_ENABLED(CONFIG_SND_SOC_SOF_TIGERLAKE)
432-
{ PCI_DEVICE(0x8086, 0xa0c8),
433+
{ PCI_DEVICE(0x8086, 0xa0c8), /* TGL-LP */
434+
.driver_data = (unsigned long)&tgl_desc},
435+
{ PCI_DEVICE(0x8086, 0x43c8), /* TGL-H */
433436
.driver_data = (unsigned long)&tgl_desc},
437+
434438
#endif
435439
#if IS_ENABLED(CONFIG_SND_SOC_SOF_ELKHARTLAKE)
436440
{ PCI_DEVICE(0x8086, 0x4b55),

0 commit comments

Comments
 (0)