Subversion Repositories shark

Rev

Rev 3 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
#include "semaphore.h"
80 pj 2
#include "ll/sys/cdefs.h"
2 pj 3
 
80 pj 4
__BEGIN_DECLS
2 pj 5
 
80 pj 6
 
2 pj 7
typedef struct sb_device {
8
    DWORD BaseAddress;
9
    BYTE IntLine;
10
    BYTE DMA8Channel;
11
    BYTE DMA16Channel;
12
    BYTE DSPVersionM;
13
    BYTE DSPVersionm;
14
//    WORD period;
15
//    BYTE pwarning;
16
    TASK_MODEL *m;
17
} SB_DEVICE;
18
 
19
typedef struct sound_buffer {
20
    sem_t synchr;
21
    BYTE synch;
22
    struct dma_buff *sound_dma;
23
    int (*fun)(struct dma_buff *buff);
24
} SOUND_BUFFER;
25
 
26
typedef struct rawfuncs {
27
    int (*infun)(void *rawbuffer);
28
    BYTE infunpresent;
29
    int (*outfun)(void *rawbuffer);
30
    BYTE outfunpresent;
31
} RAWFUNCS;
32
 
33
void sb_spkoff (void);
34
void sb_spkon (void);
35
int sb_init (void); // return 0 if ok or ENODEV otherwise
36
void sbmixer_setmiclev(BYTE level);
37
void sbmixer_setoutput(BYTE in, BYTE onoff);
38
void sbmixer_setinput(BYTE in, BYTE onoff);
39
void sbmixer_reset(void);
40
void sbmixer_setingainlev(BYTE level);
41
void sbmixer_setAGC(BYTE onoff);
42
void sb_setrate (int sps, BYTE i_o);
43
void sb_dmaop(BYTE i_o);
44
void sb_dma16op(BYTE i_o);
45
void sb_dmabuffop(BYTE i_o);
46
void sb_dma16buffop(BYTE i_o);
47
void sb_stopdsp(BYTE b);
48
void sb_show(void);
80 pj 49
 
50
__END_DECLS