---
name: "snd_pcm_hw_param_value"
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_value"
---

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

return params field var value

## NAME

snd\_pcm\_hw\_param\_value - return *params* field *var* value

## SYNOPSIS

**int snd\_pcm\_hw\_param\_value(const struct snd\_pcm\_hw\_params \*** *params***, snd\_pcm\_hw\_param\_t** *var***, int \*** *dir***);**

## ARGUMENTS

*params*

the hw\_params instance

*var*

parameter to retrieve

*dir*

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

## RETURN

The value for field *var* if it's fixed in configuration space defined by *params*. -**EINVAL** otherwise.

## COPYRIGHT
