~ubuntu-branches/ubuntu/oneiric/oss4/oneiric-proposed

« back to all changes in this revision

Viewing changes to misc/man9ossddk/ossddk_mixer_get_devc.9ossddk

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Rivera
  • Date: 2011-06-16 20:37:48 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110616203748-jbrxik6ql33z54co
Tags: 4.2-build2004-1ubuntu1
* Merge from Debian unstable.
  - Supports our current kernel (LP: #746048)
  Remaining changes:
  - debian/oss4-dkms.dkms.in: s/source/build/ in Kernel headers paths.
* ld-as-needed.patch: Re-order CC arguments to enable building with ld
  --as-needed (LP: #770972)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'\" te
 
2
.\"  Copyright (c) 2005, 4Front Technologies 2005\&.
 
3
.TH ossddk_mixer_get_devc 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services"
 
4
.SH "NAME"
 
5
ossddk_mixer_get_devc \- Get the devc pointer assigned to a mixer device.
 
6
.PP
 
7
.SH "SYNOPSIS"
 
8
.nf
 
9
#include <sys/soundcard.h>
 
10
.LP
 
11
#include <sys/ossddk/ossddk.h>
 
12
.fi
 
13
.LP
 
14
\fBvoid*\fR ossddk_mixer_get_devc(\fBint \fIdev\fP);
 
15
.PP
 
16
.SH "INTERFACE LEVEL"
 
17
.PP
 
18
Open Sound System specific (OSS 4.0 DDK)\&.
 
19
.PP
 
20
.SH "ARGUMENTS"
 
21
.PP
 
22
.sp
 
23
.ne 2
 
24
.mk
 
25
\fB\fIdev\fR
 
26
.in +16n
 
27
.rt
 
28
OSS device number.
 
29
.in -16n
 
30
.PP
 
31
.SH "DESCRIPTION"
 
32
.PP
 
33
Mixer drivers can give a pointer to their private devc structure when installing
 
34
the themselves. This function makes it possible to obtain this pointer when
 
35
necessary.
 
36
.PP
 
37
CAUTION! Extreme care must be taken in drivers that drive both mixer and audio
 
38
device files. Both types of devices have different functions for getting
 
39
the devc pointer. Drivers must use ossddk_adev_get_devc with audio device 
 
40
numbers and ossddk_mixer_get_devc with mixer device numbers.
 
41
.PP
 
42
.SH "RETURN VALUES"
 
43
This function returns a poiner to the devc structure created by this driver.
 
44
.PP
 
45
.SH "SEE ALSO"
 
46
.PP
 
47
\fIWriting Sound Device Drivers with OSS DDK\fR
 
48
\fIOpen Sound System Programmer's Guide\fR