Changeset 210 for GPL/branches/alsa-resync1/alsa-kernel/include
- Timestamp:
- Jul 13, 2007, 4:47:31 PM (18 years ago)
- Location:
- GPL/branches/alsa-resync1/alsa-kernel/include/sound
- Files:
-
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/alsa-resync1/alsa-kernel/include/sound/ad1848.h
r96 r210 167 167 void snd_ad1848_interrupt(int irq, void *dev_id, struct pt_regs *regs); 168 168 169 #ifdef TARGET_OS2170 169 #define AD1848_SINGLE(xname, xindex, reg, shift, mask, invert) \ 171 { SNDRV_CTL_ELEM_IFACE_MIXER, 0, 0, xname, xindex, \ 172 0, 0, snd_ad1848_info_single, \ 173 snd_ad1848_get_single, snd_ad1848_put_single, \ 174 reg | (shift << 8) | (mask << 16) | (invert << 24) } 175 #else 176 #define AD1848_SINGLE(xname, xindex, reg, shift, mask, invert) \ 177 { iface: SNDRV_CTL_ELEM_IFACE_MIXER, name: xname, index: xindex, \ 178 info: snd_ad1848_info_single, \ 179 get: snd_ad1848_get_single, put: snd_ad1848_put_single, \ 180 private_value: reg | (shift << 8) | (mask << 16) | (invert << 24) } 181 #endif 170 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = xindex, \ 171 .info = snd_ad1848_info_single, \ 172 .get = snd_ad1848_get_single, .put = snd_ad1848_put_single, \ 173 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) } 182 174 183 175 int snd_ad1848_info_single(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo); … … 185 177 int snd_ad1848_put_single(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol); 186 178 187 #ifdef TARGET_OS2188 179 #define AD1848_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ 189 { SNDRV_CTL_ELEM_IFACE_MIXER, 0, 0, xname, xindex, \ 190 0, 0, snd_ad1848_info_double, \ 191 snd_ad1848_get_double, snd_ad1848_put_double, \ 192 left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) } 193 #else 194 #define AD1848_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ 195 { iface: SNDRV_CTL_ELEM_IFACE_MIXER, name: xname, index: xindex, \ 196 info: snd_ad1848_info_double, \ 197 get: snd_ad1848_get_double, put: snd_ad1848_put_double, \ 198 private_value: left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) } 199 #endif 180 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = xindex, \ 181 .info = snd_ad1848_info_double, \ 182 .get = snd_ad1848_get_double, .put = snd_ad1848_put_double, \ 183 .private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) } 200 184 201 185 int snd_ad1848_info_double(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo); -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/core.h
r206 r210 373 373 374 374 #ifdef CONFIG_SND_VERBOSE_PRINTK 375 #define snd_printk(f ormat, args...) \376 snd_verbose_printk(__FILE__, __LINE__, f ormat,##args)377 #else 378 #define snd_printk(f ormat, args...) \379 printk(f ormat,##args)375 #define snd_printk(fmt, args...) \ 376 snd_verbose_printk(__FILE__, __LINE__, fmt ,##args) 377 #else 378 #define snd_printk(fmt, args...) \ 379 printk(fmt ,##args) 380 380 #endif 381 381 … … 385 385 386 386 #ifdef CONFIG_SND_VERBOSE_PRINTK 387 #define snd_printd(f ormat, args...) \388 snd_verbose_printd(__FILE__, __LINE__, f ormat,##args)387 #define snd_printd(fmt, args...) \ 388 snd_verbose_printd(__FILE__, __LINE__, fmt ,##args) 389 389 #endif 390 390 #define snd_assert(expr, args...) do {\ … … 403 403 #else /* !CONFIG_SND_DEBUG */ 404 404 405 #define snd_printd(f ormat, args...) /* nothing */406 #define snd_assert(expr, args...) /* nothing */405 #define snd_printd(fmt, args...) /* nothing */ 406 #define snd_assert(expr, args...) (void)(expr) 407 407 #define snd_runtime_check(expr, args...) do { if (!(expr)) { args; } } while (0) 408 408 -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/cs4231.h
r96 r210 297 297 */ 298 298 299 #ifdef TARGET_OS2300 299 #define CS4231_SINGLE(xname, xindex, reg, shift, mask, invert) \ 301 { SNDRV_CTL_ELEM_IFACE_MIXER, 0,0, xname, xindex, \ 302 0, 0, snd_cs4231_info_single, \ 303 snd_cs4231_get_single, snd_cs4231_put_single, \ 304 reg | (shift << 8) | (mask << 16) | (invert << 24) } 305 #else 306 #define CS4231_SINGLE(xname, xindex, reg, shift, mask, invert) \ 307 { iface: SNDRV_CTL_ELEM_IFACE_MIXER, name: xname, index: xindex, \ 308 info: snd_cs4231_info_single, \ 309 get: snd_cs4231_get_single, put: snd_cs4231_put_single, \ 310 private_value: reg | (shift << 8) | (mask << 16) | (invert << 24) } 311 #endif 300 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = xindex, \ 301 .info = snd_cs4231_info_single, \ 302 .get = snd_cs4231_get_single, .put = snd_cs4231_put_single, \ 303 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) } 312 304 313 305 int snd_cs4231_info_single(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo); … … 315 307 int snd_cs4231_put_single(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol); 316 308 317 #ifdef TARGET_OS2318 309 #define CS4231_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ 319 { SNDRV_CTL_ELEM_IFACE_MIXER, 0, 0, xname, xindex, \ 320 0, 0, snd_cs4231_info_double, \ 321 snd_cs4231_get_double, snd_cs4231_put_double, \ 322 left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) } 323 #else 324 #define CS4231_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ 325 { iface: SNDRV_CTL_ELEM_IFACE_MIXER, name: xname, index: xindex, \ 326 info: snd_cs4231_info_double, \ 327 get: snd_cs4231_get_double, put: snd_cs4231_put_double, \ 328 private_value: left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) } 329 #endif 310 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = xindex, \ 311 .info = snd_cs4231_info_double, \ 312 .get = snd_cs4231_get_double, .put = snd_cs4231_put_double, \ 313 .private_value = left_reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) } 330 314 331 315 int snd_cs4231_info_double(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo); -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/driver.h
r112 r210 58 58 59 59 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 0) 60 #if defined(__i386__) || defined(__ppc__) 60 #if defined(__i386__) || defined(__ppc__) || defined(__x86_64__) 61 61 /* 62 * Here a dirty hack for 2.4 kernels.. See kernel/memory.c.62 * Here a dirty hack for 2.4 kernels.. See sound/core/memory.c. 63 63 */ 64 64 #define HACK_PCI_ALLOC_CONSISTENT -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/initval.h
r92 r210 179 179 #if defined(SNDRV_GET_ID) && !defined(MODULE) 180 180 #include <linux/ctype.h> 181 #include <linux/init.h> 181 182 static int __init get_id(char **str, char **dst) 182 183 { -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/mixer_oss.h
r96 r210 23 23 */ 24 24 25 #if def CONFIG_SND_OSSEMUL25 #if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) 26 26 27 27 typedef struct _snd_oss_mixer_slot snd_mixer_oss_slot_t; … … 67 67 }; 68 68 69 #endif /* CONFIG_SND_ OSSEMUL*/69 #endif /* CONFIG_SND_MIXER_OSS */ 70 70 71 71 #endif /* __SOUND_MIXER_OSS_H */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/pcm_params.h
r112 r210 37 37 38 38 #define INLINE static inline 39 #define SNDRV_MASK_BITS 64 /* we use so far 64bits only */40 #define SNDRV_MASK_SIZE (SNDRV_MASK_BITS / 32)41 #define MASK_OFS(i) ((i) >> 5)42 #define MASK_BIT(i) (1U << ((i) & 31))43 44 39 #define assert(a) 40 41 #define SNDRV_MASK_BITS 64 /* we use so far 64bits only */ 42 #define SNDRV_MASK_SIZE (SNDRV_MASK_BITS / 32) 43 #define MASK_OFS(i) ((i) >> 5) 44 #define MASK_BIT(i) (1U << ((i) & 31)) 45 45 46 46 INLINE unsigned int ld2(u_int32_t v)
Note:
See TracChangeset
for help on using the changeset viewer.
