Go to the source code of this file.
◆ SbMixerDisableAGC()
Definition at line 230 of file mixer.c.
231{
232
235}
#define WRITE_SB_MIXER_DATA(bp, x)
#define WRITE_SB_MIXER_REGISTER(bp, x)
◆ SbMixerEnableAGC()
◆ SbMixerGetLevel()
Definition at line 185 of file mixer.c.
189{
190 UCHAR PackedLevel = 0;
192
195
198
200
202 {
204 break;
205
208
211
212 default :
214 };
215
216 DbgPrint(
"SbMixerGetLevel: Line 0x%x, raw level 0x%x, packed 0x%x\n",
Line,
Level, PackedLevel);
217
219}
#define STATUS_INVALID_PARAMETER_2
#define STATUS_INVALID_PARAMETER_1
#define STATUS_INVALID_PARAMETER_3
#define READ_SB_MIXER_DATA(bp)
NTSTATUS SbMixerUnpackLevelData(IN UCHAR Line, IN UCHAR PackedLevel, OUT PUCHAR Level)
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
◆ SbMixerIsAGCEnabled()
◆ SbMixerPackLevelData()
Definition at line 31 of file mixer.c.
35{
36 if ( ! PackedLevel )
38
40 {
53 {
56
57 *PackedLevel =
Level << 3;
59 }
60
65 {
68
69 *PackedLevel =
Level << 6;
71 }
72
82 {
85
86 *PackedLevel =
Level << 4;
88 }
89
90 default :
92 };
93}
#define SB_MIX_LINE_LEVEL
#define SB_MIX_CD_RIGHT_LEVEL
#define SB_MIX_MIDI_LEFT_LEVEL
#define SB_MIX_INPUT_LEFT_GAIN
#define SB_MIX_BASS_RIGHT_LEVEL
#define SB_MIX_MASTER_LEFT_LEVEL
#define SB_MIX_INPUT_RIGHT_GAIN
#define SB_MIX_MASTER_LEVEL
#define SB_MIX_VOC_LEFT_LEVEL
#define SB_MIX_BASS_LEFT_LEVEL
#define SB_MIX_LINE_RIGHT_LEVEL
#define SB_MIX_MASTER_RIGHT_LEVEL
#define SB_MIX_LEGACY_MIC_LEVEL
#define SB_MIX_OUTPUT_LEFT_GAIN
#define SB_MIX_TREBLE_LEFT_LEVEL
#define SB_MIX_OUTPUT_RIGHT_GAIN
#define SB_MIX_TREBLE_RIGHT_LEVEL
#define SB_MIX_VOC_RIGHT_LEVEL
#define SB_MIX_LINE_LEFT_LEVEL
#define SB_MIX_CD_LEFT_LEVEL
#define SB_MIX_MIDI_RIGHT_LEVEL
Referenced by SbMixerSetLevel().
◆ SbMixerReset()
◆ SbMixerSetLevel()
Definition at line 151 of file mixer.c.
155{
156 UCHAR PackedLevel = 0;
158
160
162 {
164 break;
165
168
171
172 default :
174 };
175
176 DbgPrint(
"SbMixerSetLevel: Line 0x%x, raw level 0x%x, packed 0x%x\n",
Line,
Level, PackedLevel);
177
180
182}
NTSTATUS SbMixerPackLevelData(IN UCHAR Line, IN UCHAR Level, OUT PUCHAR PackedLevel)
◆ SbMixerUnpackLevelData()
Definition at line 96 of file mixer.c.
100{
103
105 {
117 {
118 *
Level = PackedLevel >> 3;
120 }
121
126 {
127 *
Level = PackedLevel >> 6;
129 }
130
140 {
141 *
Level = PackedLevel >> 4;
143 }
144
145 default :
147 };
148}
Referenced by SbMixerGetLevel().