snd_pcm_hw_param_max
max = snd_pcm_hw_param_max(pcm, params1, var, max, &maxdir);
max = snd_pcm_hw_param_max(pcm, params, var, max, &maxdir);