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:
beveloper 2003-05-06 23:50:13 +00:00
parent edd2334c85
commit b43f227373
5 changed files with 82 additions and 0 deletions

View File

@ -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;

View File

@ -0,0 +1,3 @@
SubDir OBOS_TOP src add-ons kernel media ;
SubInclude OBOS_TOP src add-ons kernel media audio ;

View File

@ -0,0 +1,3 @@
SubDir OBOS_TOP src add-ons kernel media audio ;
SubInclude OBOS_TOP src add-ons kernel media audio ich ;

View File

@ -0,0 +1,7 @@
SubDir OBOS_TOP src add-ons kernel media audio ich ;
UsePrivateHeaders media ;
R5KernelAddon ich : kernel media audio :
ich.c
;

View File

@ -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 <marcus@overhagen.de>
*
* 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
};