Logo Search packages:      
Sourcecode: alsa-lib version File versions  Download package

int snd_pcm_sw_params_set_xfer_align ( snd_pcm_t *pcm  ATTRIBUTE_UNUSED,
snd_pcm_sw_params_t params,
snd_pcm_uframes_t  val 
)

Set xfer align inside a software configuration container.

Parameters:
pcmPCM handle
paramsSoftware configuration container
valChunk size (frames are attempted to be transferred in chunks)
Returns:
0 otherwise a negative error code

Definition at line 5556 of file pcm.c.

{
      assert(pcm && params);
      if (CHECK_SANITY(val % pcm->min_align)) {
            SNDMSG("xfer_align (%ld) is not aligned to min_align (%ld)", val, pcm->min_align);
            return -EINVAL;
      }
      params->xfer_align = val;
      return 0;
}

Generated by  Doxygen 1.6.0   Back to index