Improve alsa support on systems with poor DMA granularity

Closed Walter Lozano requested to merge wlozano/pipewire:is_batch into master

Currently PipeWire is unable to reproduce audio in systems where DMA granularity is not burst.

In order to mitigate this issue, first set period_size depending on hardware, lowering it when snd_pcm_hw_params_is_batch == 1, to reduce DMA transfers size. Second adjust the delay PipeWire calculates to make sure that a period is available in the buffer.

Merge request reports