experimental, do not use
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3180 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
#include <module.h>
|
||||||
|
|
||||||
|
struct audio_module_info
|
||||||
|
{
|
||||||
|
module_info module;
|
||||||
|
void (*print_hello)();
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef struct audio_module_info audio_module_info;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
SubDir OBOS_TOP src add-ons kernel media ;
|
||||||
|
|
||||||
|
SubInclude OBOS_TOP src add-ons kernel media audio ;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
SubDir OBOS_TOP src add-ons kernel media audio ;
|
||||||
|
|
||||||
|
SubInclude OBOS_TOP src add-ons kernel media audio ich ;
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
SubDir OBOS_TOP src add-ons kernel media audio ich ;
|
||||||
|
|
||||||
|
UsePrivateHeaders media ;
|
||||||
|
|
||||||
|
R5KernelAddon ich : kernel media audio :
|
||||||
|
ich.c
|
||||||
|
;
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* BeOS AC97 host interface driver for Intel Host Controllers (ICH)
|
||||||
|
*
|
||||||
|
* Implemented using the audio_module API
|
||||||
|
*
|
||||||
|
* Copyright (c) 2003, Marcus Overhagen <[email protected]>
|
||||||
|
*
|
||||||
|
* All rights reserved.
|
||||||
|
* Redistribution only allowed under the terms of the MIT license.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <OS.h>
|
||||||
|
#include "audio_module.h"
|
||||||
|
|
||||||
|
|
||||||
|
void print_hello_world(void)
|
||||||
|
{
|
||||||
|
dprintf("print_hello_world\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// std_ops
|
||||||
|
static
|
||||||
|
status_t
|
||||||
|
std_ops(int32 op, ...)
|
||||||
|
{
|
||||||
|
dprintf("ich: std_ops(0x%lx)\n", op);
|
||||||
|
switch(op) {
|
||||||
|
case B_MODULE_INIT:
|
||||||
|
case B_MODULE_UNINIT:
|
||||||
|
return B_OK;
|
||||||
|
}
|
||||||
|
return B_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
static
|
||||||
|
void
|
||||||
|
print_hello(void)
|
||||||
|
{
|
||||||
|
dprintf("print_hello\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
static audio_module_info audio_driver_module =
|
||||||
|
{
|
||||||
|
// module_info
|
||||||
|
{
|
||||||
|
"media/audio/ich",
|
||||||
|
0,
|
||||||
|
std_ops
|
||||||
|
},
|
||||||
|
print_hello
|
||||||
|
};
|
||||||
|
|
||||||
|
_EXPORT audio_module_info *modules[] =
|
||||||
|
{
|
||||||
|
&audio_driver_module,
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
Reference in New Issue
Block a user