Changeset 86 for GPL/trunk/alsa-kernel/include/sound/config.h
- Timestamp:
- Jan 23, 2007, 10:34:32 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/config.h
r34 r86 204 204 }; 205 205 206 /* PCI quirk list helper */ 207 struct snd_pci_quirk { 208 unsigned short subvendor; /* PCI subvendor ID */ 209 unsigned short subdevice; /* PCI subdevice ID */ 210 int value; /* value */ 211 #ifdef CONFIG_SND_DEBUG_DETECT 212 const char *name; /* name of the device (optional) */ 213 #endif 214 }; 215 216 #define _SND_PCI_QUIRK_ID(vend,dev) \ 217 .subvendor = (vend), .subdevice = (dev) 218 #define SND_PCI_QUIRK_ID(vend,dev) {_SND_PCI_QUIRK_ID(vend, dev)} 219 #ifdef CONFIG_SND_DEBUG_DETECT 220 #define SND_PCI_QUIRK(vend,dev,xname,val) \ 221 {_SND_PCI_QUIRK_ID(vend, dev), .value = (val), .name = (xname)} 222 #else 223 #define SND_PCI_QUIRK(vend,dev,xname,val) \ 224 {_SND_PCI_QUIRK_ID(vend, dev), .value = (val)} 225 #endif 226 227 const struct snd_pci_quirk * 228 snd_pci_quirk_lookup(struct pci_dev *pci, const struct snd_pci_quirk *list); 229 206 230 /* misc.c */ 207 231 struct resource;
Note:
See TracChangeset
for help on using the changeset viewer.