Changeset 250 for GPL/branches/alsa-resync1/alsa-kernel/include
- Timestamp:
- Aug 27, 2007, 7:41:50 PM (18 years ago)
- Location:
- GPL/branches/alsa-resync1/alsa-kernel/include/sound
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/alsa-resync1/alsa-kernel/include/sound/ad1848.h
r246 r250 121 121 #define AD1848_HW_CS4248 0x0003 /* CS4248 chip */ 122 122 #define AD1848_HW_CMI8330 0x0004 /* CMI8330 chip */ 123 #define AD1848_HW_THINKPAD 0x0005 /* Thinkpad 360/750/755 */ 124 125 /* IBM Thinkpad specific stuff */ 126 #define AD1848_THINKPAD_CTL_PORT1 0x15e8 127 #define AD1848_THINKPAD_CTL_PORT2 0x15e9 128 #define AD1848_THINKPAD_CS4248_ENABLE_BIT 0x02 123 129 124 130 struct _snd_ad1848 { … … 142 148 int dma_size; 143 149 int thinkpad_flag; /* Thinkpad CS4248 needs some extra help */ 150 int thinkpad_flag; /* Thinkpad CS4248 needs some extra help */ 151 #ifdef CONFIG_PM 152 struct pm_dev *thinkpad_pmstate; 153 #endif 144 154 145 155 spinlock_t reg_lock; -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/adriver.h
r246 r250 51 51 #include <linux/module.h> 52 52 53 #ifdef CONFIG_HAVE_OLD_REQUEST_MODULE 54 #include <linux/kmod.h> 55 #undef request_module 56 void snd_compat_request_module(const char *name, ...); 57 #define request_module(name, args...) snd_compat_request_module(name, ##args) 58 #endif 59 60 #ifndef TARGET_OS2 61 #include <linux/compiler.h> 62 #endif /* !TARGET_OS2 */ 63 #ifndef __user 64 #define __user 65 #endif 66 53 67 #ifdef CONFIG_PCI 54 68 #include <linux/pci.h> … … 71 85 #include <linux/init.h> 72 86 #include <linux/pm.h> 87 #include <asm/page.h> 73 88 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 3) 74 89 #define pci_set_dma_mask(pci, mask) pci->dma_mask = mask … … 109 124 #endif 110 125 111 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 3) 126 #include <linux/sched.h> 127 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 3) && !defined(need_resched) 112 128 #define need_resched() (current->need_resched) 113 129 #endif … … 136 152 137 153 #if defined(CONFIG_ISAPNP) || (defined(CONFIG_ISAPNP_MODULE) && defined(MODULE)) 138 #if (defined(CONFIG_ISAPNP_KERNEL) && defined(ALSA_BUILD)) || (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 3, 30) && !defined(ALSA_BUILD))139 #include <linux/isapnp.h>140 #define isapnp_dev pci_dev141 #define isapnp_card pci_bus142 #else143 154 #ifdef TARGET_OS2 144 155 #include "isapnp.h" 145 156 #else /* !TARGET_OS2 */ 146 157 #include <linux/isapnp.h> 147 #endif /* TARGET_OS2 */ 158 #endif /* !TARGET_OS2 */ 159 #ifndef CONFIG_PNP 160 #define CONFIG_PNP 161 #endif 162 #if (defined(CONFIG_ISAPNP_KERNEL) && defined(ALSA_BUILD)) || (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 3, 30) && !defined(ALSA_BUILD)) 163 #define isapnp_dev pci_dev 164 #define isapnp_card pci_bus 148 165 #endif 149 166 #undef __ISAPNP__ 150 167 #define __ISAPNP__ 168 #else 169 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0) 170 #undef CONFIG_PNP 171 #endif 151 172 #endif 152 173 … … 159 180 #endif 160 181 161 /* no vsnprintf yet? */ 162 /* FIXME: the version number is not sure.. at least it exists already on 2.4.10 */ 163 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 10) && !TARGET_OS2 164 #define snprintf(buf,size,fmt,args...) sprintf(buf,fmt,##args) 165 #define vsnprintf(buf,size,fmt,args) vsprintf(buf,fmt,args) 182 #if !defined CONFIG_HAVE_STRLCPY && !defined TARGET_OS2 183 size_t snd_compat_strlcpy(char *dest, const char *src, size_t size); 184 #define strlcpy(dest, src, size) snd_compat_strlcpy(dest, src, size) 185 size_t snd_compat_strlcat(char *dest, const char *src, size_t size); 186 #define strlcat(dest, src, size) snd_compat_strlcat(dest, src, size) 187 #endif 188 189 #if !defined CONFIG_HAVE_SNPRINTF && !defined TARGET_OS2 190 #include <stdarg.h> 191 int snd_compat_snprintf(char * buf, size_t size, const char * fmt, ...); 192 int snd_compat_vsnprintf(char *buf, size_t size, const char *fmt, va_list args); 193 #define snprintf(buf,size,fmt,args...) snd_compat_snprintf(buf,size,fmt,##args) 194 #define vsnprintf(buf,size,fmt,args) snd_compat_vsnprintf(buf,size,fmt,args) 166 195 #endif 167 196 -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/ak4xxx-adda.h
r246 r250 38 38 }; 39 39 40 #define AK4XXX_IMAGE_SIZE (AK4XXX_MAX_CHIPS * 16) /* 64 bytes */ 41 40 42 struct snd_akm4xxx { 41 43 snd_card_t *card; 42 44 unsigned int num_adcs; /* AK4524 or AK4528 ADCs */ 43 45 unsigned int num_dacs; /* AK4524 or AK4528 DACs */ 44 unsigned char images[AK4XXX_ MAX_CHIPS][16]; /* saved register image */46 unsigned char images[AK4XXX_IMAGE_SIZE]; /* saved register image */ 45 47 unsigned char ipga_gain[AK4XXX_MAX_CHIPS][2]; /* saved register image for IPGA (AK4528) */ 46 48 unsigned long private_value[AK4XXX_MAX_CHIPS]; /* helper for driver */ … … 59 61 int snd_akm4xxx_build_controls(akm4xxx_t *ak); 60 62 63 #define snd_akm4xxx_get(ak,chip,reg) (ak)->images[(chip) * 16 + (reg)] 64 #define snd_akm4xxx_set(ak,chip,reg,val) ((ak)->images[(chip) * 16 + (reg)] = (val)) 65 #define snd_akm4xxx_get_ipga(ak,chip,reg) (ak)->ipga_gain[chip][(reg)-4] 66 #define snd_akm4xxx_set_ipga(ak,chip,reg,val) ((ak)->ipga_gain[chip][(reg)-4] = (val)) 67 61 68 #endif /* __SOUND_AK4XXX_ADDA_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/compat_22.h
r234 r250 90 90 91 91 /* Some distributions use modified kill_fasync */ 92 #ifdef CONFIG_OLD_KILL_FASYNC 92 93 #include <linux/fs.h> 93 94 #undef kill_fasync 94 95 #define kill_fasync(fp, sig, band) snd_wrapper_kill_fasync(fp, sig, band) 95 96 void snd_wrapper_kill_fasync(struct fasync_struct **, int, int); 97 #endif 96 98 97 99 /* this is identical with tq_struct but the "routine" field is renamed to "func" */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/core.h
r246 r250 25 25 #include <linux/sched.h> /* wake_up() */ 26 26 #include <asm/semaphore.h> 27 #ifndef TARGET_OS2 //TODO: implement linux/rwsem.h 27 #ifndef TARGET_OS2 //TODO: implement linux/rwsem.h, workqueue.h 28 28 #include <linux/rwsem.h> /* struct rw_semaphore */ 29 #include <linux/workqueue.h> /* struct workqueue_struct */ 29 30 #endif /* !TARGET_OS2 */ 30 31 #include <sound/typedefs.h> … … 213 214 int device; /* device number */ 214 215 const char *comment; /* for /proc/asound/devices */ 215 snd_info_entry_t *dev; /* for /proc/asound/dev */216 216 struct file_operations *f_ops; /* file operations */ 217 217 char name[1]; … … 241 241 242 242 #ifdef CONFIG_SND_OSSEMUL 243 244 243 int snd_minor_info_oss_init(void); 245 244 int snd_minor_info_oss_done(void); 246 247 245 int snd_oss_init_module(void); 248 246 #else 247 #define snd_minor_info_oss_init() /*NOP*/ 248 #define snd_minor_info_oss_done() /*NOP*/ 249 #define snd_oss_init_module() /*NOP*/ 249 250 #endif 250 251 … … 269 270 #define kstrdup(s, flags) snd_hidden_kstrdup(s, flags) 270 271 #else 272 #define snd_memory_init() /*NOP*/ 273 #define snd_memory_done() /*NOP*/ 274 #define snd_memory_info_init() /*NOP*/ 275 #define snd_memory_info_done() /*NOP*/ 271 276 #define kmalloc_nocheck(size, flags) kmalloc(size, flags) 272 277 #define vmalloc_nocheck(size) vmalloc(size) -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/hdsp.h
r246 r250 25 25 Digiface, 26 26 Multiface, 27 H9652, 27 28 Undefined, 28 29 } HDSP_IO_Type; -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/initval.h
r246 r250 87 87 #define SNDRV_DEFAULT_ENABLE { 1, [1 ... (SNDRV_CARDS-1)] = 0 } 88 88 #define SNDRV_DEFAULT_ENABLE_PNP { [0 ... (SNDRV_CARDS-1)] = 1 } 89 #ifdef __ISAPNP__89 #ifdef CONFIG_PNP 90 90 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE_PNP 91 91 #else -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/mpu401.h
r77 r250 92 92 spinlock_t timer_lock; 93 93 94 atomic_t rx_loop; 95 atomic_t tx_loop; 96 94 97 struct timer_list timer; 95 98 -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/ymfpci.h
r36 r250 26 26 #include "rawmidi.h" 27 27 #include "ac97_codec.h" 28 #ifndef TARGET_OS2 //TODO: Implement linux/gameport.h 29 #include <linux/gameport.h> 30 #endif /* !TARGET_OS2 */ 28 31 29 32 #ifndef PCI_VENDOR_ID_YAMAHA
Note:
See TracChangeset
for help on using the changeset viewer.
