[alsa-devel] [RFC PATCH 3/4] ALSA: core: add report of max dma burst
Lars-Peter Clausen
lars at metafoo.de
Fri Jul 10 19:13:45 CEST 2015
On 07/10/2015 04:35 AM, Raymond Yau wrote:
[...]
> What is the usage of runtime->dma_bytes in
> snd_pcm_hw_constraints_complete() in core/pcm_native.c ?
>
> Was the usage similar to 128 bytes alignment ?
>
> /* FIXME: remove */
> if (runtime->dma_bytes) {
> err = snd_pcm_hw_constraint_minmax(runtime,
> SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, runtime->dma_bytes);
> if (err < 0)
> return err;
> }
The FIXME is probably correct. dma_bytes should always be 0 at that point.
This is a freshly allocated runtime struct and dma_bytes only gets set once
a buffer is allocated, which is done later on.
- Lars
More information about the Alsa-devel
mailing list