Jaroslav Kysela | 82d9d54 | 2019-10-22 19:43:12 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* |
| 3 | * intel-dsp-config.h - Intel DSP config |
| 4 | * |
| 5 | * Copyright (c) 2019 Jaroslav Kysela <perex@perex.cz> |
| 6 | */ |
| 7 | |
| 8 | #ifndef __INTEL_DSP_CONFIG_H__ |
| 9 | #define __INTEL_DSP_CONFIG_H__ |
| 10 | |
| 11 | struct pci_dev; |
| 12 | |
| 13 | enum { |
| 14 | SND_INTEL_DSP_DRIVER_ANY = 0, |
| 15 | SND_INTEL_DSP_DRIVER_LEGACY, |
| 16 | SND_INTEL_DSP_DRIVER_SST, |
| 17 | SND_INTEL_DSP_DRIVER_SOF, |
| 18 | SND_INTEL_DSP_DRIVER_LAST = SND_INTEL_DSP_DRIVER_SOF |
| 19 | }; |
| 20 | |
| 21 | #if IS_ENABLED(CONFIG_SND_INTEL_DSP_CONFIG) |
| 22 | |
| 23 | int snd_intel_dsp_driver_probe(struct pci_dev *pci); |
Pierre-Louis Bossart | b568230 | 2020-11-12 16:38:14 -0600 | [diff] [blame] | 24 | int snd_intel_acpi_dsp_driver_probe(struct device *dev, const u8 acpi_hid[ACPI_ID_LEN]); |
Jaroslav Kysela | 82d9d54 | 2019-10-22 19:43:12 +0200 | [diff] [blame] | 25 | |
| 26 | #else |
| 27 | |
| 28 | static inline int snd_intel_dsp_driver_probe(struct pci_dev *pci) |
| 29 | { |
| 30 | return SND_INTEL_DSP_DRIVER_ANY; |
| 31 | } |
| 32 | |
Pierre-Louis Bossart | b568230 | 2020-11-12 16:38:14 -0600 | [diff] [blame] | 33 | static inline |
| 34 | int snd_intel_acpi_dsp_driver_probe(struct device *dev, const u8 acpi_hid[ACPI_ID_LEN]) |
| 35 | { |
| 36 | return SND_INTEL_DSP_DRIVER_ANY; |
| 37 | } |
| 38 | |
Jaroslav Kysela | 82d9d54 | 2019-10-22 19:43:12 +0200 | [diff] [blame] | 39 | #endif |
| 40 | |
| 41 | #endif |