mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
![Cezary Rojewski](/assets/img/avatar_default.png)
HD-Audio bus is a PCI device. Add all functions necessary to probe such device along with its removal sequence. Behaviour implemented for all standard operations is similar to existing solutions: sound/pci/hda and sound/soc/intel/skylake. Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://lore.kernel.org/r/20220516101116.190192-13-cezary.rojewski@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
43 lines
896 B
C
43 lines
896 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* intel-dsp-config.h - Intel DSP config
|
|
*
|
|
* Copyright (c) 2019 Jaroslav Kysela <perex@perex.cz>
|
|
*/
|
|
|
|
#ifndef __INTEL_DSP_CONFIG_H__
|
|
#define __INTEL_DSP_CONFIG_H__
|
|
|
|
struct pci_dev;
|
|
|
|
enum {
|
|
SND_INTEL_DSP_DRIVER_ANY = 0,
|
|
SND_INTEL_DSP_DRIVER_LEGACY,
|
|
SND_INTEL_DSP_DRIVER_SST,
|
|
SND_INTEL_DSP_DRIVER_SOF,
|
|
SND_INTEL_DSP_DRIVER_AVS,
|
|
SND_INTEL_DSP_DRIVER_LAST = SND_INTEL_DSP_DRIVER_AVS
|
|
};
|
|
|
|
#if IS_ENABLED(CONFIG_SND_INTEL_DSP_CONFIG)
|
|
|
|
int snd_intel_dsp_driver_probe(struct pci_dev *pci);
|
|
int snd_intel_acpi_dsp_driver_probe(struct device *dev, const u8 acpi_hid[ACPI_ID_LEN]);
|
|
|
|
#else
|
|
|
|
static inline int snd_intel_dsp_driver_probe(struct pci_dev *pci)
|
|
{
|
|
return SND_INTEL_DSP_DRIVER_ANY;
|
|
}
|
|
|
|
static inline
|
|
int snd_intel_acpi_dsp_driver_probe(struct device *dev, const u8 acpi_hid[ACPI_ID_LEN])
|
|
{
|
|
return SND_INTEL_DSP_DRIVER_ANY;
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|