---
name: "snd_pcm_hw_rule_add"
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_rule_add"
---

# snd\_pcm\_hw\_rule\_add(9)

add the hw-constraint rule

## NAME

snd\_pcm\_hw\_rule\_add - add the hw-constraint rule

## SYNOPSIS

**int snd\_pcm\_hw\_rule\_add(struct snd\_pcm\_runtime \*** *runtime***, unsigned int** *cond***, int** *var***, snd\_pcm\_hw\_rule\_func\_t** *func***, void \*** *private***, int** *dep***,** *...***);**

## ARGUMENTS

*runtime*

the pcm runtime instance

*cond*

condition bits

*var*

the variable to evaluate

*func*

the evaluation function

*private*

the private data pointer passed to function

*dep*

the dependent variables

*...*

variable arguments

## RETURN

Zero if successful, or a negative error code on failure.

## COPYRIGHT
