1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 2 /* 3 * intel-dsp-config.h - Intel DSP config 3 * intel-dsp-config.h - Intel DSP config 4 * 4 * 5 * Copyright (c) 2019 Jaroslav Kysela <perex@ 5 * Copyright (c) 2019 Jaroslav Kysela <perex@perex.cz> 6 */ 6 */ 7 7 8 #ifndef __INTEL_DSP_CONFIG_H__ 8 #ifndef __INTEL_DSP_CONFIG_H__ 9 #define __INTEL_DSP_CONFIG_H__ 9 #define __INTEL_DSP_CONFIG_H__ 10 10 11 struct pci_dev; 11 struct pci_dev; 12 12 13 enum { 13 enum { 14 SND_INTEL_DSP_DRIVER_ANY = 0, 14 SND_INTEL_DSP_DRIVER_ANY = 0, 15 SND_INTEL_DSP_DRIVER_LEGACY, 15 SND_INTEL_DSP_DRIVER_LEGACY, 16 SND_INTEL_DSP_DRIVER_SST, 16 SND_INTEL_DSP_DRIVER_SST, 17 SND_INTEL_DSP_DRIVER_SOF, 17 SND_INTEL_DSP_DRIVER_SOF, 18 SND_INTEL_DSP_DRIVER_AVS, !! 18 SND_INTEL_DSP_DRIVER_LAST = SND_INTEL_DSP_DRIVER_SOF 19 SND_INTEL_DSP_DRIVER_LAST = SND_INTEL_ << 20 }; 19 }; 21 20 22 #if IS_ENABLED(CONFIG_SND_INTEL_DSP_CONFIG) 21 #if IS_ENABLED(CONFIG_SND_INTEL_DSP_CONFIG) 23 22 24 int snd_intel_dsp_driver_probe(struct pci_dev 23 int snd_intel_dsp_driver_probe(struct pci_dev *pci); 25 int snd_intel_acpi_dsp_driver_probe(struct dev 24 int snd_intel_acpi_dsp_driver_probe(struct device *dev, const u8 acpi_hid[ACPI_ID_LEN]); 26 25 27 #else 26 #else 28 27 29 static inline int snd_intel_dsp_driver_probe(s 28 static inline int snd_intel_dsp_driver_probe(struct pci_dev *pci) 30 { 29 { 31 return SND_INTEL_DSP_DRIVER_ANY; 30 return SND_INTEL_DSP_DRIVER_ANY; 32 } 31 } 33 32 34 static inline 33 static inline 35 int snd_intel_acpi_dsp_driver_probe(struct dev 34 int snd_intel_acpi_dsp_driver_probe(struct device *dev, const u8 acpi_hid[ACPI_ID_LEN]) 36 { 35 { 37 return SND_INTEL_DSP_DRIVER_ANY; 36 return SND_INTEL_DSP_DRIVER_ANY; 38 } 37 } 39 38 40 #endif 39 #endif 41 40 42 #endif 41 #endif 43 42
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.