2
.\" Copyright (c) 2005, 4Front Technologies 2005\&.
3
.TH ossddk_install_mixer 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services"
5
ossddk_install_mixer \- Creates an mixer device.
9
#include <sys/soundcard.h>
11
#include <sys/ossddk/ossddk.h>
14
\fBint\fR ossddk_install_mixer(\fBint \fIvers\fP, \fBoss_device_t * \fIosdev\fP, \fBoss_device_t * \fImaster_osdev\fP, \fBconst char *\fIname\fP, \fBmixer_driver_t *\fIdriver\fP, \fBint \fIdriver_size\fP, \fBvoid *\fIdevc\fP);
18
Open Sound System specific (OSS 4.0 DDK)\&.
28
The OSSDDK mixer interface version. Pass OSS_MIXER_DRIVER_VERSION in this parameter.
36
OSS device handle from ossddk_register_device(9ossddk).
44
OSS device handle for the master device. Usually same as \fIosdev\fR but
45
virtual drivers have to give the osdev handle of the master/physical device here.
46
OSS uses this parameter for example to get the right iblock_cookie.
54
Name of the mixer device to be shown in /dev/sndstat. Also returned by the
55
SNDCTL_MIXERINFO(2oss) ioctl call.
63
Pointer to the mixer driver callback table (mixer_driver_t).
71
Set to sizeof(mixer_driver_t).
79
Pointer to driver defined device instance data.
84
This call creates a mixer device file (/dev/mixer#) and returns the mixer
89
Negative value is an error code (-errno). Zero or positive is the mixer device
94
\fIWriting Sound Device Drivers with OSS DDK\fR
95
\fIOpen Sound System Programmer's Guide\fR