[alsa-devel] how is 'dir' in snd_pcm_hw_params_set_periods_near() supposed to work?