Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 38 of file speaker.c.
{ NTSTATUS Status; UCHAR SpeakerStatus = 0; if ( ! IsEnabled ) return STATUS_INVALID_PARAMETER_2; /* Request the speaker status */ Status = SbDspWrite(BasePort, SB_DSP_SPEAKER_STATUS, Timeout); if ( Status != STATUS_SUCCESS ) return Status; /* Obtain the status */ Status = SbDspRead(BasePort, &SpeakerStatus, Timeout); if ( Status != STATUS_SUCCESS ) return Status; DbgPrint("SBDSP - SpeakerStatus is %02x\n", SpeakerStatus); *IsEnabled = (SpeakerStatus == 0xFF); return STATUS_SUCCESS; }