#include <ntddk.h>
#include "sndblst.h"
Go to the source code of this file.
◆ InitSoundCard()
Definition at line 62 of file portio.c.
63{
66 UCHAR DSP_Major, DSP_Minor;
67
68 DPRINT(
"InitSoundCard() called\n");
69
70 DPRINT(
"Resetting sound card\n");
71
72
73
75 for (TimeOut = 0; TimeOut < 30000; TimeOut ++);
77
78
79
80 DPRINT(
"Waiting for an ACK\n");
82 {
83
86 TimeOut --);
87 }
88
89 DPRINT(
"Querying DSP version\n");
92
94
97
100
101 DPRINT(
"DSP v%d.%d\n", DSP_Major, DSP_Minor);
102
103
104
105 if (DSP_Major == 0xFF && DSP_Minor == 0xFF)
107
108 DPRINT(
"Sound card initialized!\n");
109
110 return (DSP_Major * 256) + DSP_Minor;
111}
#define SB_GET_DSP_VERSION
#define SB_WRITE_RESET(bp, x)
#define SB_WRITE_DATA(bp, x)
Referenced by InitDevice().
◆ WaitToReceive()
Definition at line 38 of file portio.c.
39{
40 int TimeOut;
41
43
44
47 TimeOut --);
48
49
50 if (! TimeOut)
51 {
54 }
55
57
59}
#define SB_READY_TO_RECEIVE(bp)
Referenced by IsSpeakerEnabled().
◆ WaitToSend()
Definition at line 15 of file portio.c.
16{
17 int TimeOut;
18
20
21
24 TimeOut --);
25
26
27 if (! TimeOut)
28 {
31 }
32
34
36}
#define SB_READY_TO_SEND(bp)
Referenced by MPU401Create().