ReactOS 0.4.15-dev-7906-g1b85a5f
stream.cpp File Reference
#include "shared.h"
#include "miniport.h"
Include dependency graph for stream.cpp:

Go to the source code of this file.

Macros

#define STR_MODULENAME   "AC97 Stream: "
 

Functions

 STDMETHODIMP_ (NTSTATUS) CMiniportStream
 

Macro Definition Documentation

◆ STR_MODULENAME

#define STR_MODULENAME   "AC97 Stream: "

Definition at line 2 of file stream.cpp.

Function Documentation

◆ STDMETHODIMP_()

STDMETHODIMP_ ( NTSTATUS  )

Definition at line 243 of file stream.cpp.

248{
249 PAGED_CODE ();
250
251 DOUT (DBG_PRINT, ("[CMiniportStream::SetContentId]"));
252
253 UNREFERENCED_PARAMETER(contentId);
254
255 //
256 // If "drmRights->DigitalOutputDisable" is set, we need to disable S/P-DIF.
257 // Currently, we don't have knowledge about the S/P-DIF interface. However,
258 // in case you expanded the driver with S/P-DIF features you need to disable
259 // S/P-DIF or fail SetContentId. If you have HW that has S/P-DIF turned on
260 // by default and you don't know how to turn off (or you cannot do that)
261 // then you must fail SetContentId.
262 //
263 // In our case, we assume the codec has no S/P-DIF or disabled S/P-DIF by
264 // default, so we can ignore the flag.
265 //
266 // Store the copyright flag. We have to disable PCM recording if it's set.
267 //
268 if (!Miniport->AdapterCommon->GetMiniportTopology ())
269 {
270 DOUT (DBG_ERROR, ("Topology pointer not set!"));
271 return STATUS_UNSUCCESSFUL;
272 }
273 else
274 {
275 Miniport->AdapterCommon->GetMiniportTopology ()->
276 SetCopyProtectFlag (drmRights->CopyProtect);
277 }
278
279 //
280 // We assume that if we can enforce the rights, that the old content
281 // will be destroyed. We don't need to store the content id since we
282 // have only one playback channel, so we are finished here.
283 //
284
285 return STATUS_SUCCESS;
286}
#define PAGED_CODE()
#define DOUT(lvl, strings)
Definition: debug.h:82
#define DBG_ERROR
Definition: nfs41_debug.h:78
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define STATUS_SUCCESS
Definition: shellext.h:65
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
#define DBG_PRINT(ppi, ch, level)
Definition: win32kdebug.h:168