~ubuntu-branches/ubuntu/oneiric/oss4/oneiric-proposed

« back to all changes in this revision

Viewing changes to kernel/framework/include/oss_calls.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Rivera
  • Date: 2011-06-16 20:37:48 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110616203748-jbrxik6ql33z54co
Tags: 4.2-build2004-1ubuntu1
* Merge from Debian unstable.
  - Supports our current kernel (LP: #746048)
  Remaining changes:
  - debian/oss4-dkms.dkms.in: s/source/build/ in Kernel headers paths.
* ld-as-needed.patch: Re-order CC arguments to enable building with ld
  --as-needed (LP: #770972)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Purpose: Prototypes for various internal routines of OSS. 
 
3
 *
 
4
 */
 
5
/*
 
6
 *
 
7
 * This file is part of Open Sound System.
 
8
 *
 
9
 * Copyright (C) 4Front Technologies 1996-2008.
 
10
 *
 
11
 * This this source file is released under GPL v2 license (no other versions).
 
12
 * See the COPYING file included in the main directory of this source
 
13
 * distribution for the license terms and conditions.
 
14
 *
 
15
 */
 
16
 
 
17
/*
 
18
 * sndstat.c
 
19
 */
 
20
void store_msg (char *msg);
 
21
#ifdef DO_TIMINGS
 
22
/* Run time debugging stuff (for testing purposes only) */
 
23
void oss_do_timing (char *txt);
 
24
void oss_do_timing2 (int timing_mask, char *txt);
 
25
void timing_set_device (int dev, dmap_t * dmap);
 
26
typedef oss_native_word (*oss_timing_timer_func) (void *);
 
27
void timing_install_timer (oss_timing_timer_func, void *);
 
28
void oss_timing_enter (int bin);
 
29
void oss_timing_leave (int bin);
 
30
void timing_open (void);
 
31
void timing_close (void);
 
32
#endif
 
33
 
 
34
#ifdef LICENSED_VERSION
 
35
typedef int (*put_status_func_t) (const char *s);
 
36
typedef int (*put_status_int_t) (unsigned int val, int radix);
 
37
extern void oss_print_license (put_status_func_t put_status,
 
38
                               put_status_int_t put_status_int);
 
39
extern int oss_license_handle_time (time_t t);
 
40
#endif
 
41
 
 
42
extern void install_sndstat (oss_device_t * osdev);
 
43
extern void install_dev_mixer (oss_device_t * osdev);
 
44
 
 
45
/*
 
46
 * vmix_core.c
 
47
 */
 
48
 
 
49
extern void vmix_core_uninit (void);
 
50
extern void vmix_core_init (oss_device_t *osdev);
 
51
extern int vmix_attach_audiodev(oss_device_t *osdev, int masterdev, int input_master, unsigned int attach_flags);
 
52
extern int vmix_detach_audiodev(int masterdev);
 
53
extern int vmix_create_client(void *vmix_mixer);
 
54
extern void vmix_change_devnames(void *vmix_mixer, const char *name);
 
55
extern int vmix_set_master_rate(int masterdev, int rate);
 
56
extern int vmix_set_channel_map(int masterdev, void *map);
 
57
 
 
58
/*
 
59
 * oss_audio_core.c
 
60
 */
 
61
 
 
62
extern void oss_audio_init (oss_device_t *osdev);
 
63
extern void oss_audio_uninit (void);
 
64
 
 
65
/*
 
66
 * Internal debugging (oss_mixer_core.c)
 
67
 */
 
68
extern void oss_timing_printf (char *s, ...);