---
name: "snd_pcm_hw_param_first"
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_param_first"
---

# snd\_pcm\_hw\_param\_first(9)

refine config space and return minimum value

## NAME

snd\_pcm\_hw\_param\_first - refine config space and return minimum value

## SYNOPSIS

**int snd\_pcm\_hw\_param\_first(struct snd\_pcm\_substream \*** *pcm***, struct snd\_pcm\_hw\_params \*** *params***, snd\_pcm\_hw\_param\_t** *var***, int \*** *dir***);**

## ARGUMENTS

*pcm*

PCM instance

*params*

the hw\_params instance

*var*

parameter to retrieve

*dir*

pointer to the direction (-1,0,1) or **NULL**

## DESCRIPTION

Inside configuration space defined by *params* remove from *var* all values \> minimum. Reduce configuration space accordingly.

## RETURN

The minimum, or a negative error code on failure.

## COPYRIGHT
