Comment 16 for bug 52396

Revision history for this message
Raymond (superquad-vortex2) wrote :

Soun d Architecture': Could not get/set settings from/on resource.
 [gstalsasink.c(666 ): set_hwparams (): /pipeline0/alsasink1:

This is because au88x0 driver require the period_size to be power of two

      snd_pcm_hw_constraint_integer(runtime,
        SNDRV_PCM_HW_PARAM_PERIODS)

      snd_pcm_hw_constraint_pow2(runtime, 0,
     SNDRV_PCM_HW_PARAM_PERIOD_BYTES)

This is no enough for alsa-lib to refine the hardware parameters (buffer_size, period_size ,period , buffer_time, period_time ) when application (e.g. gstreamer, wine) call snd_pcm_hw_params_set_buffer_time_near() or snd_pcm_hw_params_set_period_time_near()

possible fix may be adding another constraint for buffer_bytes to help alsa-lib to refine that hardware parameters