---
name: "snd_pcm_hw_constraint_minmax"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_pcm_hw_constraint_minmax"
---

# snd\_pcm\_hw\_constraint\_minmax(9)

apply a min/max range constraint to an interval

## NAME

snd\_pcm\_hw\_constraint\_minmax - apply a min/max range constraint to an interval

## SYNOPSIS

**int snd\_pcm\_hw\_constraint\_minmax(struct snd\_pcm\_runtime \*** *runtime***, snd\_pcm\_hw\_param\_t** *var***, unsigned int** *min***, unsigned int** *max***);**

## ARGUMENTS

*runtime*

PCM runtime instance

*var*

hw\_params variable to apply the range

*min*

the minimal value

*max*

the maximal value

## DESCRIPTION

Apply the min/max range constraint to an interval parameter.

## RETURN

Positive if the value is changed, zero if it's not changed, or a negative error code.

## COPYRIGHT
