Lines Matching refs:mindir
549 unsigned int min, int mindir,
554 if (mindir) {
555 if (mindir > 0) {
557 } else if (mindir < 0) {
620 unsigned int *min, int *mindir,
640 *min, mindir ? *mindir : 0,
649 err = snd_pcm_hw_param_get_min(params, var, min, mindir);
821 int mindir, maxdir;
828 mindir = maxdir = valdir;
839 err = snd_pcm_hw_param_set_min(pcm, params, SND_CHANGE, var, &min, &mindir);
851 if (min == saved_min && mindir == valdir)
857 if (boundary_nearer(max, maxdir, best, valdir, min, mindir)) {
898 int mindir, maxdir;
907 mindir = bestdir - diffdir;
912 mindir = bestdir + 1;
916 min += mindir / 2;
917 mindir %= 2;
922 (err = snd_pcm_hw_param_set_min(pcm, params, SND_CHANGE, var, &min, &mindir)) >= 0) {
930 if (boundary_nearer(max, maxdir, best, bestdir, min, mindir)) {
956 unsigned int min, int *mindir,
961 if (!boundary_lt(min, *mindir, max, *maxdir))
962 return snd_pcm_hw_param_set_near(pcm, params, var, &min, mindir);
964 err = snd_pcm_hw_param_set_near(pcm, &tmp, var, &min, mindir);
967 if (boundary_lt(min, *mindir, max, *maxdir)) {
972 *maxdir = *mindir;
974 err = snd_pcm_hw_param_set_minmax(pcm, params, SND_CHANGE, var, &min, mindir,
987 int mindir, maxdir, err;
989 if ((err = snd_pcm_hw_param_get_min(src, var, &min, &mindir)) < 0)
994 min, &mindir, max, &maxdir)) < 0)