[alsa-devel] Buffer size calculation based on period size