I have seen some codes for capture/playback using alsa api. Some of them are using snd_pcm_hw_params_malloc() while some are using snd_pcm_hw_params_alloca().
What is the difference between them other than one is function and one is macro. Is snd_pcm_hw_params_alloca() macro replaced by snd_pcm_hw_params_malloc() ?