[DSOUND_NEW][HDAUDBUS] Replace meaningless YDEBUG (#5857)

and move debug.h after all includes. Addendum to 60b0afc3a (PR #5818)

dsound_new: Addendum to 5974fe1 (r45584).
hdaudbus: Addendum to cf7fc81 (r68311).
This commit is contained in:
Serge Gautherie 2023-11-01 13:39:05 +01:00 committed by GitHub
parent b3194e320c
commit 31876ba8c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 18 deletions

View file

@ -1,19 +1,19 @@
#pragma once
#define YDEBUG
#include <ntddk.h>
#include <debug.h>
#include <initguid.h>
#include <hdaudio.h>
#include <stdio.h>
#include <ntstrsafe.h>
#define TAG_HDA 'bADH'
// include Haiku headers
// Include Haiku headers
#include "driver.h"
// #define NDEBUG
#include <debug.h>
#define TAG_HDA 'bADH'
#define MAKE_RATE(base, multiply, divide) \
((base == 44100 ? FORMAT_44_1_BASE_RATE : 0) \
| ((multiply - 1) << FORMAT_MULTIPLY_RATE_SHIFT) \
@ -29,7 +29,6 @@
#define ALIGN(size, align) (((size) + align - 1) & ~(align - 1))
typedef struct {
ULONG response;
ULONG flags;
@ -61,7 +60,6 @@ typedef struct
}HDA_CODEC_ENTRY, *PHDA_CODEC_ENTRY;
typedef struct
{
BOOLEAN IsFDO;
@ -92,7 +90,6 @@ typedef struct
PDEVICE_OBJECT FDO;
}HDA_PDO_DEVICE_EXTENSION, *PHDA_PDO_DEVICE_EXTENSION;
typedef struct {
ULONG device : 16;
ULONG vendor : 16;
@ -107,7 +104,6 @@ typedef struct {
ULONG _reserved2 : 8;
}CODEC_RESPONSE, *PCODEC_RESPONSE;
PVOID
AllocateItem(
IN POOL_TYPE PoolType,
@ -118,6 +114,7 @@ FreeItem(
IN PVOID Item);
/* fdo.cpp */
KSERVICE_ROUTINE HDA_InterruptService;
IO_DPC_ROUTINE HDA_DpcForIsr;