'\" t .\" Title: snd_pcm_hw_constraint_minmax .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Sound Devices .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "SND_PCM_HW_CONSTRAIN" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Sound Devices" .\" ----------------------------------------------------------------- .\" * 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_pcm_hw_constraint_minmax \- apply a min/max range constraint to an interval .SH "SYNOPSIS" .HP \w'int\ snd_pcm_hw_constraint_minmax('u .BI "int snd_pcm_hw_constraint_minmax(struct\ snd_pcm_runtime\ *\ " "runtime" ", snd_pcm_hw_param_t\ " "var" ", unsigned\ int\ " "min" ", unsigned\ int\ " "max" ");" .SH "ARGUMENTS" .PP \fIruntime\fR .RS 4 PCM runtime instance .RE .PP \fIvar\fR .RS 4 hw_params variable to apply the range .RE .PP \fImin\fR .RS 4 the minimal value .RE .PP \fImax\fR .RS 4 the maximal value .RE .SH "DESCRIPTION" .PP Apply the min/max range constraint to an interval parameter\&. .SH "RETURN" .PP Positive if the value is changed, zero if it\*(Aqs not changed, or a negative error code\&. .SH "COPYRIGHT" .br