Module Name: src Committed By: jmcneill Date: Wed Nov 23 23:11:56 UTC 2011
Modified Files: src/share/man/man9: audio.9 Log Message: update audio(9) docs for audiomp changes To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/share/man/man9/audio.9 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/man/man9/audio.9 diff -u src/share/man/man9/audio.9:1.42 src/share/man/man9/audio.9:1.43 --- src/share/man/man9/audio.9:1.42 Wed Apr 30 13:10:58 2008 +++ src/share/man/man9/audio.9 Wed Nov 23 23:11:56 2011 @@ -1,4 +1,4 @@ -.\" $NetBSD: audio.9,v 1.42 2008/04/30 13:10:58 martin Exp $ +.\" $NetBSD: audio.9,v 1.43 2011/11/23 23:11:56 jmcneill Exp $ .\" .\" Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd November 10, 2007 +.Dd November 23, 2011 .Dt AUDIO 9 .Os .Sh NAME @@ -87,9 +87,7 @@ struct audio_hw_if { int (*trigger_input)(void *, void *, void *, int, void (*)(void *), void *, const audio_params_t *); int (*dev_ioctl)(void *, u_long, void *, int, struct lwp *); - int (*powerstate)(void *, int); -#define AUDIOPOWER_ON 1 -#define AUDIOPOWER_OFF 0 + void (*get_locks)(void *, kmutex_t **, kmutex_t **); }; typedef struct audio_params { @@ -505,16 +503,8 @@ optional, is called when an .Xr ioctl 2 is not recognized by the generic audio driver. Return 0 on success, otherwise an error code. -.It Dv int powerstate(void *hdl, int state) -.Pp -optional, is called on the first open and last close of the audio -device. -.Va state -may be one of -.Dv AUDIOPOWER_ON -or -.Dv AUDIOPOWER_OFF . -Returns 0 on success, otherwise an error code. +.It Dv void get_locks(void *hdl, kmutex_t **intr, kmutex_t **thread) +Returns the interrupt and thread locks to the common audio layer. .El .Pp The