'\" t .\" Title: snd_power_wait .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Management of Cards and Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SND_POWER_WAIT" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Management of Cards and Device" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" snd_power_wait \- wait until the power\-state is changed\&. .SH "SYNOPSIS" .HP \w'int\ snd_power_wait('u .BI "int snd_power_wait(struct\ snd_card\ *\ " "card" ", unsigned\ int\ " "power_state" ");" .SH "ARGUMENTS" .PP \fIcard\fR .RS 4 soundcard structure .RE .PP \fIpower_state\fR .RS 4 expected power state .RE .SH "DESCRIPTION" .PP Waits until the power\-state is changed\&. .SH "RETURN" .PP Zero if successful, or a negative error code\&. .SH "NOTE" .PP the power lock must be active before call\&. .SH "COPYRIGHT" .br