~ubuntu-branches/ubuntu/vivid/oss4/vivid-proposed

« back to all changes in this revision

Viewing changes to .pc/hurd_iot.patch/lib/libsalsa/local.h

  • Committer: Package Import Robot
  • Author(s): Sebastien NOEL
  • Date: 2012-11-19 11:47:24 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20121119114724-svu8mq7x3pk64nez
Tags: 4.2-build2007-1
* New upstream release.
* Acknowledge NMU, thanks Michael Gilbert.
* Add debian/patches/110_ld-as-needed.patch: Rearrange order of linker
  arguments to fix building with "ld --as-needed" (closes: #630737).
* Add missing dependency on dpkg-dev to oss4-dkms and oss4-source
  (closes: #687086).
* Fix typo in the changelog (closes: #628876, #675933)
* Add debian/patches/002_fix-linux-oss_native_word.patch (closes: #693657).
  Thanks to Ben Hutchings.
* Add debian/patches/003_linux-error-logging-fixes.patch (closes: #693657).
  Thanks to Ben Hutchings.
* check for /lib/modules/${kernelver}/build in addition of
  /lib/modules/${kernelver}/source (closes: #587191).
* oss4-dkms.dkms.in: fix 'CLEAN' rules (closes: #653374).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <stdio.h>
2
 
#include <stdlib.h>
3
 
#include <unistd.h>
4
 
#include <fcntl.h>
5
 
#include <errno.h>
6
 
#include <string.h>
7
 
#include "alsa-symbols.h"
8
 
#include <alsa/asoundlib.h>
9
 
#include "../../include/soundcard.h"
10
 
#include "alsakernel.h"
11
 
#include <sys/poll.h>
12
 
#include "../../kernel/framework/include/midiparser.h"
13
 
 
14
 
extern int alib_verbose;
15
 
extern int mixer_fd;
16
 
 
17
 
extern char alib_appname[64];
18
 
 
19
 
extern oss_sysinfo sysinfo;
20
 
 
21
 
#define dbg_printf      if (alib_verbose>0)printf
22
 
#define dbg_printf0     if (alib_verbose>=0)printf
23
 
#define dbg_printf1     if (alib_verbose>=1)printf
24
 
#define dbg_printf2     if (alib_verbose>=2)printf
25
 
#define dbg_printf3     if (alib_verbose>=3)printf
26
 
 
27
 
extern int alib_initialized;
28
 
 
29
 
extern int init_alib (void);
30
 
 
31
 
#define ALIB_INIT() \
32
 
{ \
33
 
        int init_err; \
34
 
        if (!alib_initialized) \
35
 
           if ((init_err=alib_init())<0) \
36
 
              return init_err; \
37
 
}
38
 
 
39
 
struct _snd_pcm_info
40
 
{
41
 
  oss_audioinfo *ainfo;
42
 
};
43
 
 
44
 
 
45
 
extern int alib_appcheck (void);
46
 
 
47
 
struct _snd_seq_port_info
48
 
{
49
 
  oss_longname_t name;
50
 
  int port;
51
 
  int capability;
52
 
  int midi_channels;
53
 
  int synth_voices;
54
 
  int midi_voices;
55
 
  int type;
56
 
};
57
 
 
58
 
struct _snd_seq_client_info
59
 
{
60
 
  oss_longname_t name;
61
 
  int client;
62
 
};
63
 
 
64
 
/* Size of the local event buffer */
65
 
#define MAX_EVENTS      128
66
 
 
67
 
struct _snd_seq
68
 
{
69
 
  int fd;
70
 
  int streams;
71
 
  int nonblock;
72
 
  int oss_mode;
73
 
  oss_longname_t name;
74
 
  midiparser_common_t *parser;
75
 
 
76
 
  snd_seq_event_t events[MAX_EVENTS];
77
 
  int nevents, nextevent;
78
 
};
79
 
 
80
 
struct _snd_rawmidi_info
81
 
{
82
 
  int dummy;
83
 
};
84
 
 
85
 
struct _snd_seq_queue_status
86
 
{
87
 
  int dummy;
88
 
};
89
 
 
90
 
struct _snd_seq_queue_timer
91
 
{
92
 
  int dummy;
93
 
};
94
 
 
95
 
extern int convert_event (snd_seq_t * seq, snd_seq_event_t * ev);
96
 
extern void midiparser_callback (void *context, int category,
97
 
                                 unsigned char msg, unsigned char ch,
98
 
                                 unsigned char *parms, int len);