Lines Matching defs:rounding
1077 * Rounding is done based on the rounding parameter: -1 means rounding down and
1078 * +1 means rounding up. */
1079 static long decibel_fix_get_step(pa_alsa_decibel_fix *db_fix, long *db_value, int rounding) {
1085 pa_assert(rounding != 0);
1089 if (rounding > 0) {
1204 int rounding;
1214 rounding = +1;
1217 r = snd_mixer_selem_set_playback_volume(me, c, decibel_fix_get_step(e->db_fix, &value, rounding));
1219 decibel_fix_get_step(e->db_fix, &value, rounding);
1229 if ((r = snd_mixer_selem_set_playback_dB(me, c, value, rounding)) >= 0)
1234 if ((r = snd_mixer_selem_ask_playback_dB_vol(me, value, rounding, &alsa_val)) >= 0)
1242 rounding = -1;
1245 r = snd_mixer_selem_set_capture_volume(me, c, decibel_fix_get_step(e->db_fix, &value, rounding));
1247 decibel_fix_get_step(e->db_fix, &value, rounding);
1257 if ((r = snd_mixer_selem_set_capture_dB(me, c, value, rounding)) >= 0)
1262 if ((r = snd_mixer_selem_ask_capture_dB_vol(me, value, rounding, &alsa_val)) >= 0)
3675 int rounding = (a->direction == PA_ALSA_DIRECTION_OUTPUT ? +1 : -1);
3676 a_limit = decibel_fix_get_step(a->db_fix, &dB, rounding);