23 #include <linux/export.h>
25 #include <linux/time.h>
26 #include <linux/slab.h>
30 #ifdef CONFIG_SND_DEBUG
32 #ifdef CONFIG_SND_DEBUG_VERBOSE
33 #define DEFAULT_DEBUG_LEVEL 2
35 #define DEFAULT_DEBUG_LEVEL 1
38 static int debug = DEFAULT_DEBUG_LEVEL;
54 #ifdef CONFIG_SND_VERBOSE_PRINTK
56 static const char *sanity_file_name(
const char *
path)
65 #if defined(CONFIG_SND_DEBUG) || defined(CONFIG_SND_VERBOSE_PRINTK)
70 #ifdef CONFIG_SND_VERBOSE_PRINTK
76 #ifdef CONFIG_SND_DEBUG
82 #ifdef CONFIG_SND_VERBOSE_PRINTK
86 kern_level = printk_get_level(format);
88 const char *end_of_header = printk_skip_level(format);
89 memcpy(verbose_fmt, format, end_of_header - format);
90 vaf.fmt = end_of_header;
93 printk(verbose_fmt, sanity_file_name(path), line, &vaf);
96 vprintk(format, args);
104 #include <linux/pci.h>
117 const struct snd_pci_quirk *
119 const struct snd_pci_quirk *
list)
121 const struct snd_pci_quirk *
q;
123 for (q = list; q->subvendor; q++) {
124 if (q->subvendor != vendor)
127 (device & q->subdevice_mask) == q->subdevice)
145 const struct snd_pci_quirk *
146 snd_pci_quirk_lookup(
struct pci_dev *pci,
const struct snd_pci_quirk *list)