snd_pcm_hw_param_last
Prev | Chapter 5. Sound Devices | Next

## Name

snd_pcm_hw_param_last — refine config space and return maximum value

## Synopsis

`int snd_pcm_hw_param_last (` | 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 < maximum. Reduce configuration space accordingly.

## Return

The maximum, or a negative error code on failure.

Prev | Up | Next
snd_pcm_hw_param_first | Home | snd_pcm_lib_ioctl