mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
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:
parent
edd2334c85
commit
b43f227373
9
headers/private/media/audio_module.h
Normal file
9
headers/private/media/audio_module.h
Normal 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;
|
3
src/add-ons/kernel/media/Jamfile
Normal file
3
src/add-ons/kernel/media/Jamfile
Normal file
@ -0,0 +1,3 @@
|
||||
SubDir OBOS_TOP src add-ons kernel media ;
|
||||
|
||||
SubInclude OBOS_TOP src add-ons kernel media audio ;
|
3
src/add-ons/kernel/media/audio/Jamfile
Normal file
3
src/add-ons/kernel/media/audio/Jamfile
Normal file
@ -0,0 +1,3 @@
|
||||
SubDir OBOS_TOP src add-ons kernel media audio ;
|
||||
|
||||
SubInclude OBOS_TOP src add-ons kernel media audio ich ;
|
7
src/add-ons/kernel/media/audio/ich/Jamfile
Normal file
7
src/add-ons/kernel/media/audio/ich/Jamfile
Normal file
@ -0,0 +1,7 @@
|
||||
SubDir OBOS_TOP src add-ons kernel media audio ich ;
|
||||
|
||||
UsePrivateHeaders media ;
|
||||
|
||||
R5KernelAddon ich : kernel media audio :
|
||||
ich.c
|
||||
;
|
60
src/add-ons/kernel/media/audio/ich/ich.c
Normal file
60
src/add-ons/kernel/media/audio/ich/ich.c
Normal 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
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user