---
name: "snd_pcm_hw_constraint_pow2"
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_pow2"
---

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

add a hw constraint power-of-2 rule

## NAME

snd\_pcm\_hw\_constraint\_pow2 - add a hw constraint power-of-2 rule

## SYNOPSIS

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

## ARGUMENTS

*runtime*

PCM runtime instance

*cond*

condition bits

*var*

hw\_params variable to apply the power-of-2 constraint

## RETURN

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

## COPYRIGHT
