---
name: "snd_pcm_hw_constraint_single"
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_single"
---

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

Constrain parameter to a single value

## NAME

snd\_pcm\_hw\_constraint\_single - Constrain parameter to a single value

## SYNOPSIS

**int snd\_pcm\_hw\_constraint\_single(struct snd\_pcm\_runtime \*** *runtime***, snd\_pcm\_hw\_param\_t** *var***, unsigned int** *val***);**

## ARGUMENTS

*runtime*

PCM runtime instance

*var*

The hw\_params variable to constrain

*val*

The value to constrain to

## RETURN

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

## COPYRIGHT
