diff options
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/ac97_codec.h | 10 | ||||
-rw-r--r-- | include/sound/core.h | 94 | ||||
-rw-r--r-- | include/sound/driver.h | 17 | ||||
-rw-r--r-- | include/sound/emu10k1.h | 3 | ||||
-rw-r--r-- | include/sound/minors.h | 8 | ||||
-rw-r--r-- | include/sound/pcm.h | 3 | ||||
-rw-r--r-- | include/sound/timer.h | 1 | ||||
-rw-r--r-- | include/sound/version.h | 4 |
8 files changed, 23 insertions, 117 deletions
diff --git a/include/sound/ac97_codec.h b/include/sound/ac97_codec.h index d11f34832a97..7f0ca79d6c98 100644 --- a/include/sound/ac97_codec.h +++ b/include/sound/ac97_codec.h | |||
@@ -387,15 +387,6 @@ | |||
387 | #define AC97_RATES_MIC_ADC 4 | 387 | #define AC97_RATES_MIC_ADC 4 |
388 | #define AC97_RATES_SPDIF 5 | 388 | #define AC97_RATES_SPDIF 5 |
389 | 389 | ||
390 | /* shared controllers */ | ||
391 | enum { | ||
392 | AC97_SHARED_TYPE_NONE, | ||
393 | AC97_SHARED_TYPE_ICH, | ||
394 | AC97_SHARED_TYPE_ATIIXP, | ||
395 | AC97_SHARED_TYPE_VIA, | ||
396 | AC97_SHARED_TYPES | ||
397 | }; | ||
398 | |||
399 | /* | 390 | /* |
400 | * | 391 | * |
401 | */ | 392 | */ |
@@ -468,7 +459,6 @@ struct _snd_ac97_bus { | |||
468 | unsigned short used_slots[2][4]; /* actually used PCM slots */ | 459 | unsigned short used_slots[2][4]; /* actually used PCM slots */ |
469 | unsigned short pcms_count; /* count of PCMs */ | 460 | unsigned short pcms_count; /* count of PCMs */ |
470 | struct ac97_pcm *pcms; | 461 | struct ac97_pcm *pcms; |
471 | unsigned int shared_type; /* type of shared controller betwen audio and modem */ | ||
472 | ac97_t *codec[4]; | 462 | ac97_t *codec[4]; |
473 | snd_info_entry_t *proc; | 463 | snd_info_entry_t *proc; |
474 | }; | 464 | }; |
diff --git a/include/sound/core.h b/include/sound/core.h index 6d971a4c4ca0..2be65ad2fd83 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <linux/pm.h> /* pm_message_t */ | 29 | #include <linux/pm.h> /* pm_message_t */ |
30 | 30 | ||
31 | /* Typedef's */ | 31 | /* Typedef's */ |
32 | typedef struct timespec snd_timestamp_t; | ||
33 | typedef struct sndrv_interval snd_interval_t; | 32 | typedef struct sndrv_interval snd_interval_t; |
34 | typedef enum sndrv_card_type snd_card_type; | 33 | typedef enum sndrv_card_type snd_card_type; |
35 | typedef struct sndrv_xferi snd_xferi_t; | 34 | typedef struct sndrv_xferi snd_xferi_t; |
@@ -256,6 +255,7 @@ typedef struct _snd_minor snd_minor_t; | |||
256 | 255 | ||
257 | /* sound.c */ | 256 | /* sound.c */ |
258 | 257 | ||
258 | extern int snd_major; | ||
259 | extern int snd_ecards_limit; | 259 | extern int snd_ecards_limit; |
260 | 260 | ||
261 | void snd_request_card(int card); | 261 | void snd_request_card(int card); |
@@ -285,39 +285,6 @@ int snd_oss_init_module(void); | |||
285 | 285 | ||
286 | /* memory.c */ | 286 | /* memory.c */ |
287 | 287 | ||
288 | #ifdef CONFIG_SND_DEBUG_MEMORY | ||
289 | void snd_memory_init(void); | ||
290 | void snd_memory_done(void); | ||
291 | int snd_memory_info_init(void); | ||
292 | int snd_memory_info_done(void); | ||
293 | void *snd_hidden_kmalloc(size_t size, gfp_t flags); | ||
294 | void *snd_hidden_kzalloc(size_t size, gfp_t flags); | ||
295 | void *snd_hidden_kcalloc(size_t n, size_t size, gfp_t flags); | ||
296 | void snd_hidden_kfree(const void *obj); | ||
297 | void *snd_hidden_vmalloc(unsigned long size); | ||
298 | void snd_hidden_vfree(void *obj); | ||
299 | char *snd_hidden_kstrdup(const char *s, gfp_t flags); | ||
300 | #define kmalloc(size, flags) snd_hidden_kmalloc(size, flags) | ||
301 | #define kzalloc(size, flags) snd_hidden_kzalloc(size, flags) | ||
302 | #define kcalloc(n, size, flags) snd_hidden_kcalloc(n, size, flags) | ||
303 | #define kfree(obj) snd_hidden_kfree(obj) | ||
304 | #define vmalloc(size) snd_hidden_vmalloc(size) | ||
305 | #define vfree(obj) snd_hidden_vfree(obj) | ||
306 | #define kmalloc_nocheck(size, flags) snd_wrapper_kmalloc(size, flags) | ||
307 | #define vmalloc_nocheck(size) snd_wrapper_vmalloc(size) | ||
308 | #define kfree_nocheck(obj) snd_wrapper_kfree(obj) | ||
309 | #define vfree_nocheck(obj) snd_wrapper_vfree(obj) | ||
310 | #define kstrdup(s, flags) snd_hidden_kstrdup(s, flags) | ||
311 | #else | ||
312 | #define snd_memory_init() /*NOP*/ | ||
313 | #define snd_memory_done() /*NOP*/ | ||
314 | #define snd_memory_info_init() /*NOP*/ | ||
315 | #define snd_memory_info_done() /*NOP*/ | ||
316 | #define kmalloc_nocheck(size, flags) kmalloc(size, flags) | ||
317 | #define vmalloc_nocheck(size) vmalloc(size) | ||
318 | #define kfree_nocheck(obj) kfree(obj) | ||
319 | #define vfree_nocheck(obj) vfree(obj) | ||
320 | #endif | ||
321 | int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count); | 288 | int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count); |
322 | int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count); | 289 | int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count); |
323 | 290 | ||
@@ -373,8 +340,9 @@ unsigned int snd_dma_pointer(unsigned long dma, unsigned int size); | |||
373 | #endif | 340 | #endif |
374 | 341 | ||
375 | /* misc.c */ | 342 | /* misc.c */ |
343 | struct resource; | ||
344 | void release_and_free_resource(struct resource *res); | ||
376 | 345 | ||
377 | int snd_task_name(struct task_struct *task, char *name, size_t size); | ||
378 | #ifdef CONFIG_SND_VERBOSE_PRINTK | 346 | #ifdef CONFIG_SND_VERBOSE_PRINTK |
379 | void snd_verbose_printk(const char *file, int line, const char *format, ...) | 347 | void snd_verbose_printk(const char *file, int line, const char *format, ...) |
380 | __attribute__ ((format (printf, 3, 4))); | 348 | __attribute__ ((format (printf, 3, 4))); |
@@ -429,34 +397,24 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...) | |||
429 | * When CONFIG_SND_DEBUG is not set, the expression is executed but | 397 | * When CONFIG_SND_DEBUG is not set, the expression is executed but |
430 | * not checked. | 398 | * not checked. |
431 | */ | 399 | */ |
432 | #define snd_assert(expr, args...) do {\ | 400 | #define snd_assert(expr, args...) do { \ |
433 | if (unlikely(!(expr))) { \ | 401 | if (unlikely(!(expr))) { \ |
434 | snd_printk(KERN_ERR "BUG? (%s) (called from %p)\n", __ASTRING__(expr), __builtin_return_address(0));\ | 402 | snd_printk(KERN_ERR "BUG? (%s)\n", __ASTRING__(expr)); \ |
435 | args;\ | 403 | dump_stack(); \ |
436 | }\ | 404 | args; \ |
405 | } \ | ||
437 | } while (0) | 406 | } while (0) |
438 | /** | 407 | |
439 | * snd_runtime_check - run-time assertion macro | 408 | #define snd_BUG() do { \ |
440 | * @expr: expression | 409 | snd_printk(KERN_ERR "BUG?\n"); \ |
441 | * @args...: the action | 410 | dump_stack(); \ |
442 | * | ||
443 | * This macro checks the expression in run-time and invokes the commands | ||
444 | * given in the rest arguments if the assertion is failed. | ||
445 | * Unlike snd_assert(), the action commands are executed even if | ||
446 | * CONFIG_SND_DEBUG is not set but without any error messages. | ||
447 | */ | ||
448 | #define snd_runtime_check(expr, args...) do {\ | ||
449 | if (unlikely(!(expr))) { \ | ||
450 | snd_printk(KERN_ERR "ERROR (%s) (called from %p)\n", __ASTRING__(expr), __builtin_return_address(0));\ | ||
451 | args;\ | ||
452 | }\ | ||
453 | } while (0) | 411 | } while (0) |
454 | 412 | ||
455 | #else /* !CONFIG_SND_DEBUG */ | 413 | #else /* !CONFIG_SND_DEBUG */ |
456 | 414 | ||
457 | #define snd_printd(fmt, args...) /* nothing */ | 415 | #define snd_printd(fmt, args...) /* nothing */ |
458 | #define snd_assert(expr, args...) (void)(expr) | 416 | #define snd_assert(expr, args...) (void)(expr) |
459 | #define snd_runtime_check(expr, args...) do { if (!(expr)) { args; } } while (0) | 417 | #define snd_BUG() /* nothing */ |
460 | 418 | ||
461 | #endif /* CONFIG_SND_DEBUG */ | 419 | #endif /* CONFIG_SND_DEBUG */ |
462 | 420 | ||
@@ -473,30 +431,6 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...) | |||
473 | #define snd_printdd(format, args...) /* nothing */ | 431 | #define snd_printdd(format, args...) /* nothing */ |
474 | #endif | 432 | #endif |
475 | 433 | ||
476 | #define snd_BUG() snd_assert(0, ) | ||
477 | |||
478 | |||
479 | static inline void snd_timestamp_now(struct timespec *tstamp, int timespec) | ||
480 | { | ||
481 | struct timeval val; | ||
482 | /* FIXME: use a linear time source */ | ||
483 | do_gettimeofday(&val); | ||
484 | tstamp->tv_sec = val.tv_sec; | ||
485 | tstamp->tv_nsec = val.tv_usec; | ||
486 | if (timespec) | ||
487 | tstamp->tv_nsec *= 1000L; | ||
488 | } | ||
489 | |||
490 | static inline void snd_timestamp_zero(struct timespec *tstamp) | ||
491 | { | ||
492 | tstamp->tv_sec = 0; | ||
493 | tstamp->tv_nsec = 0; | ||
494 | } | ||
495 | |||
496 | static inline int snd_timestamp_null(struct timespec *tstamp) | ||
497 | { | ||
498 | return tstamp->tv_sec == 0 && tstamp->tv_nsec == 0; | ||
499 | } | ||
500 | 434 | ||
501 | #define SNDRV_OSS_VERSION ((3<<16)|(8<<8)|(1<<4)|(0)) /* 3.8.1a */ | 435 | #define SNDRV_OSS_VERSION ((3<<16)|(8<<8)|(1<<4)|(0)) /* 3.8.1a */ |
502 | 436 | ||
diff --git a/include/sound/driver.h b/include/sound/driver.h index 1ec2fae050a6..3f0416ac24d9 100644 --- a/include/sound/driver.h +++ b/include/sound/driver.h | |||
@@ -44,21 +44,4 @@ | |||
44 | 44 | ||
45 | #include <linux/module.h> | 45 | #include <linux/module.h> |
46 | 46 | ||
47 | /* | ||
48 | * ========================================================================== | ||
49 | */ | ||
50 | |||
51 | #ifdef CONFIG_SND_DEBUG_MEMORY | ||
52 | #include <linux/slab.h> | ||
53 | #include <linux/vmalloc.h> | ||
54 | void *snd_wrapper_kmalloc(size_t, gfp_t); | ||
55 | #undef kmalloc | ||
56 | void snd_wrapper_kfree(const void *); | ||
57 | #undef kfree | ||
58 | void *snd_wrapper_vmalloc(size_t); | ||
59 | #undef vmalloc | ||
60 | void snd_wrapper_vfree(void *); | ||
61 | #undef vfree | ||
62 | #endif | ||
63 | |||
64 | #endif /* __SOUND_DRIVER_H */ | 47 | #endif /* __SOUND_DRIVER_H */ |
diff --git a/include/sound/emu10k1.h b/include/sound/emu10k1.h index 46e3c0bf3c94..8411c7ef6f11 100644 --- a/include/sound/emu10k1.h +++ b/include/sound/emu10k1.h | |||
@@ -48,7 +48,8 @@ | |||
48 | 48 | ||
49 | /* FIXME? - according to the OSS driver the EMU10K1 needs a 29 bit DMA mask */ | 49 | /* FIXME? - according to the OSS driver the EMU10K1 needs a 29 bit DMA mask */ |
50 | #define EMU10K1_DMA_MASK 0x7fffffffUL /* 31bit */ | 50 | #define EMU10K1_DMA_MASK 0x7fffffffUL /* 31bit */ |
51 | #define AUDIGY_DMA_MASK 0xffffffffUL /* 32bit */ | 51 | #define AUDIGY_DMA_MASK 0x7fffffffUL /* 31bit FIXME - 32 should work? */ |
52 | /* See ALSA bug #1276 - rlrevell */ | ||
52 | 53 | ||
53 | #define TMEMSIZE 256*1024 | 54 | #define TMEMSIZE 256*1024 |
54 | #define TMEMSIZEREG 4 | 55 | #define TMEMSIZEREG 4 |
diff --git a/include/sound/minors.h b/include/sound/minors.h index b7b0d8309449..a17b5c9961bb 100644 --- a/include/sound/minors.h +++ b/include/sound/minors.h | |||
@@ -27,8 +27,9 @@ | |||
27 | #define SNDRV_MINOR(card, dev) (((card) << 5) | (dev)) | 27 | #define SNDRV_MINOR(card, dev) (((card) << 5) | (dev)) |
28 | 28 | ||
29 | #define SNDRV_MINOR_CONTROL 0 /* 0 - 0 */ | 29 | #define SNDRV_MINOR_CONTROL 0 /* 0 - 0 */ |
30 | #define SNDRV_MINOR_SEQUENCER 1 | 30 | #define SNDRV_MINOR_GLOBAL 1 /* 1 */ |
31 | #define SNDRV_MINOR_TIMER (1+32) | 31 | #define SNDRV_MINOR_SEQUENCER (SNDRV_MINOR_GLOBAL + 0 * 32) |
32 | #define SNDRV_MINOR_TIMER (SNDRV_MINOR_GLOBAL + 1 * 32) | ||
32 | #define SNDRV_MINOR_HWDEP 4 /* 4 - 7 */ | 33 | #define SNDRV_MINOR_HWDEP 4 /* 4 - 7 */ |
33 | #define SNDRV_MINOR_HWDEPS 4 | 34 | #define SNDRV_MINOR_HWDEPS 4 |
34 | #define SNDRV_MINOR_RAWMIDI 8 /* 8 - 15 */ | 35 | #define SNDRV_MINOR_RAWMIDI 8 /* 8 - 15 */ |
@@ -39,12 +40,9 @@ | |||
39 | 40 | ||
40 | #define SNDRV_DEVICE_TYPE_CONTROL SNDRV_MINOR_CONTROL | 41 | #define SNDRV_DEVICE_TYPE_CONTROL SNDRV_MINOR_CONTROL |
41 | #define SNDRV_DEVICE_TYPE_HWDEP SNDRV_MINOR_HWDEP | 42 | #define SNDRV_DEVICE_TYPE_HWDEP SNDRV_MINOR_HWDEP |
42 | #define SNDRV_DEVICE_TYPE_MIXER SNDRV_MINOR_MIXER | ||
43 | #define SNDRV_DEVICE_TYPE_RAWMIDI SNDRV_MINOR_RAWMIDI | 43 | #define SNDRV_DEVICE_TYPE_RAWMIDI SNDRV_MINOR_RAWMIDI |
44 | #define SNDRV_DEVICE_TYPE_PCM_PLAYBACK SNDRV_MINOR_PCM_PLAYBACK | 44 | #define SNDRV_DEVICE_TYPE_PCM_PLAYBACK SNDRV_MINOR_PCM_PLAYBACK |
45 | #define SNDRV_DEVICE_TYPE_PCM_PLOOP SNDRV_MINOR_PCM_PLOOP | ||
46 | #define SNDRV_DEVICE_TYPE_PCM_CAPTURE SNDRV_MINOR_PCM_CAPTURE | 45 | #define SNDRV_DEVICE_TYPE_PCM_CAPTURE SNDRV_MINOR_PCM_CAPTURE |
47 | #define SNDRV_DEVICE_TYPE_PCM_CLOOP SNDRV_MINOR_PCM_CLOOP | ||
48 | #define SNDRV_DEVICE_TYPE_SEQUENCER SNDRV_MINOR_SEQUENCER | 46 | #define SNDRV_DEVICE_TYPE_SEQUENCER SNDRV_MINOR_SEQUENCER |
49 | #define SNDRV_DEVICE_TYPE_TIMER SNDRV_MINOR_TIMER | 47 | #define SNDRV_DEVICE_TYPE_TIMER SNDRV_MINOR_TIMER |
50 | 48 | ||
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 2b23a5967071..acc4fa9d5abe 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h | |||
@@ -281,7 +281,7 @@ typedef struct { | |||
281 | struct _snd_pcm_runtime { | 281 | struct _snd_pcm_runtime { |
282 | /* -- Status -- */ | 282 | /* -- Status -- */ |
283 | snd_pcm_substream_t *trigger_master; | 283 | snd_pcm_substream_t *trigger_master; |
284 | snd_timestamp_t trigger_tstamp; /* trigger timestamp */ | 284 | struct timespec trigger_tstamp; /* trigger timestamp */ |
285 | int overrange; | 285 | int overrange; |
286 | snd_pcm_uframes_t avail_max; | 286 | snd_pcm_uframes_t avail_max; |
287 | snd_pcm_uframes_t hw_ptr_base; /* Position at buffer restart */ | 287 | snd_pcm_uframes_t hw_ptr_base; /* Position at buffer restart */ |
@@ -306,7 +306,6 @@ struct _snd_pcm_runtime { | |||
306 | unsigned int rate_den; | 306 | unsigned int rate_den; |
307 | 307 | ||
308 | /* -- SW params -- */ | 308 | /* -- SW params -- */ |
309 | int tstamp_timespec; /* use timeval (0) or timespec (1) */ | ||
310 | snd_pcm_tstamp_t tstamp_mode; /* mmap timestamp is updated */ | 309 | snd_pcm_tstamp_t tstamp_mode; /* mmap timestamp is updated */ |
311 | unsigned int period_step; | 310 | unsigned int period_step; |
312 | unsigned int sleep_min; /* min ticks to sleep */ | 311 | unsigned int sleep_min; /* min ticks to sleep */ |
diff --git a/include/sound/timer.h b/include/sound/timer.h index 1898511a0f38..b55f38ae56e1 100644 --- a/include/sound/timer.h +++ b/include/sound/timer.h | |||
@@ -88,6 +88,7 @@ struct _snd_timer_hardware { | |||
88 | struct _snd_timer { | 88 | struct _snd_timer { |
89 | snd_timer_class_t tmr_class; | 89 | snd_timer_class_t tmr_class; |
90 | snd_card_t *card; | 90 | snd_card_t *card; |
91 | struct module *module; | ||
91 | int tmr_device; | 92 | int tmr_device; |
92 | int tmr_subdevice; | 93 | int tmr_subdevice; |
93 | char id[64]; | 94 | char id[64]; |
diff --git a/include/sound/version.h b/include/sound/version.h index ee32af20dba9..d1bd3b723967 100644 --- a/include/sound/version.h +++ b/include/sound/version.h | |||
@@ -1,3 +1,3 @@ | |||
1 | /* include/version.h. Generated by configure. */ | 1 | /* include/version.h. Generated by configure. */ |
2 | #define CONFIG_SND_VERSION "1.0.10rc1" | 2 | #define CONFIG_SND_VERSION "1.0.10rc3" |
3 | #define CONFIG_SND_DATE " (Mon Sep 12 08:13:09 2005 UTC)" | 3 | #define CONFIG_SND_DATE " (Mon Nov 07 13:30:21 2005 UTC)" |