Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pcm_params.h File Reference
#include <sound/pcm.h>

Go to the source code of this file.

Macros

#define SNDRV_MASK_BITS   64 /* we use so far 64bits only */
 
#define SNDRV_MASK_SIZE   (SNDRV_MASK_BITS / 32)
 
#define MASK_OFS(i)   ((i) >> 5)
 
#define MASK_BIT(i)   (1U << ((i) & 31))
 
#define params_access(p)
 
#define params_format(p)
 
#define params_subformat(p)   snd_mask_min(hw_param_mask_c((p), SNDRV_PCM_HW_PARAM_SUBFORMAT))
 

Functions

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)
 
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)
 
int snd_pcm_hw_param_value (const struct snd_pcm_hw_params *params, snd_pcm_hw_param_t var, int *dir)
 

Macro Definition Documentation

#define MASK_BIT (   i)    (1U << ((i) & 31))

Definition at line 39 of file pcm_params.h.

#define MASK_OFS (   i)    ((i) >> 5)

Definition at line 38 of file pcm_params.h.

#define params_access (   p)
Value:
snd_mask_min(hw_param_mask_c((p), SNDRV_PCM_HW_PARAM_ACCESS)))

Definition at line 342 of file pcm_params.h.

#define params_format (   p)
Value:
snd_mask_min(hw_param_mask_c((p), SNDRV_PCM_HW_PARAM_FORMAT)))

Definition at line 344 of file pcm_params.h.

#define params_subformat (   p)    snd_mask_min(hw_param_mask_c((p), SNDRV_PCM_HW_PARAM_SUBFORMAT))

Definition at line 346 of file pcm_params.h.

#define SNDRV_MASK_BITS   64 /* we use so far 64bits only */

Definition at line 36 of file pcm_params.h.

#define SNDRV_MASK_SIZE   (SNDRV_MASK_BITS / 32)

Definition at line 37 of file pcm_params.h.

Function Documentation

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 
)

Definition at line 1555 of file pcm_lib.c.

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 
)

Definition at line 1601 of file pcm_lib.c.

int snd_pcm_hw_param_value ( const struct snd_pcm_hw_params params,
snd_pcm_hw_param_t  var,
int dir 
)

Definition at line 1484 of file pcm_lib.c.