Skip to content

Commit c3ad109

Browse files
perexgbroonie
authored andcommitted
ASoC: SOF - remove the dead code (skylake/kabylake)
Appearently the CONFIG_SND_SOC_SOF_KABYLAKE and CONFIG_SND_SOC_SOF_SKYLAKE options are not present in Kconfig and 'struct snd_sof_dsp_ops sof_skl_ops' is not declared in the code, too. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Cc: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20191028173329.29538-1-perex@perex.cz Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent d745cc1 commit c3ad109

2 files changed

Lines changed: 0 additions & 45 deletions

File tree

‎sound/soc/sof/intel/hda.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,6 @@ extern struct snd_soc_dai_driver skl_dai[];
608608
*/
609609
extern const struct snd_sof_dsp_ops sof_apl_ops;
610610
extern const struct snd_sof_dsp_ops sof_cnl_ops;
611-
extern const struct snd_sof_dsp_ops sof_skl_ops;
612611

613612
extern const struct sof_intel_dsp_desc apl_chip_info;
614613
extern const struct sof_intel_dsp_desc cnl_chip_info;

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

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -173,42 +173,6 @@ static const struct sof_dev_desc icl_desc = {
173173
};
174174
#endif
175175

176-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_SKYLAKE)
177-
static const struct sof_dev_desc skl_desc = {
178-
.machines = snd_soc_acpi_intel_skl_machines,
179-
.resindex_lpe_base = 0,
180-
.resindex_pcicfg_base = -1,
181-
.resindex_imr_base = -1,
182-
.irqindex_host_ipc = -1,
183-
.resindex_dma_base = -1,
184-
.chip_info = &skl_chip_info,
185-
.default_fw_path = "intel/sof",
186-
.default_tplg_path = "intel/sof-tplg",
187-
.nocodec_fw_filename = "sof-skl.ri",
188-
.nocodec_tplg_filename = "sof-skl-nocodec.tplg",
189-
.ops = &sof_skl_ops,
190-
.arch_ops = &sof_xtensa_arch_ops
191-
};
192-
#endif
193-
194-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_KABYLAKE)
195-
static const struct sof_dev_desc kbl_desc = {
196-
.machines = snd_soc_acpi_intel_kbl_machines,
197-
.resindex_lpe_base = 0,
198-
.resindex_pcicfg_base = -1,
199-
.resindex_imr_base = -1,
200-
.irqindex_host_ipc = -1,
201-
.resindex_dma_base = -1,
202-
.chip_info = &skl_chip_info,
203-
.default_fw_path = "intel/sof",
204-
.default_tplg_path = "intel/sof-tplg",
205-
.nocodec_fw_filename = "sof-kbl.ri",
206-
.nocodec_tplg_filename = "sof-kbl-nocodec.tplg",
207-
.ops = &sof_skl_ops,
208-
.arch_ops = &sof_xtensa_arch_ops
209-
};
210-
#endif
211-
212176
#if IS_ENABLED(CONFIG_SND_SOC_SOF_TIGERLAKE)
213177
static const struct sof_dev_desc tgl_desc = {
214178
.machines = snd_soc_acpi_intel_tgl_machines,
@@ -431,14 +395,6 @@ static const struct pci_device_id sof_pci_ids[] = {
431395
{ PCI_DEVICE(0x8086, 0xa348),
432396
.driver_data = (unsigned long)&cfl_desc},
433397
#endif
434-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_KABYLAKE)
435-
{ PCI_DEVICE(0x8086, 0x9d71),
436-
.driver_data = (unsigned long)&kbl_desc},
437-
#endif
438-
#if IS_ENABLED(CONFIG_SND_SOC_SOF_SKYLAKE)
439-
{ PCI_DEVICE(0x8086, 0x9d70),
440-
.driver_data = (unsigned long)&skl_desc},
441-
#endif
442398
#if IS_ENABLED(CONFIG_SND_SOC_SOF_ICELAKE)
443399
{ PCI_DEVICE(0x8086, 0x34C8),
444400
.driver_data = (unsigned long)&icl_desc},

0 commit comments

Comments
 (0)