Lines Matching refs:max_dB
1206 if (e->volume_limit >= 0 && value > (e->max_dB * 100))
1207 value = e->max_dB * 100;
1644 long min_dB = 0, max_dB = 0;
1708 max_dB = e->db_fix->db_values[e->db_fix->max_step - e->db_fix->min_step];
1710 e->has_dB = snd_mixer_selem_get_playback_dB_range(me, &min_dB, &max_dB) >= 0;
1712 e->has_dB = snd_mixer_selem_get_capture_dB_range(me, &min_dB, &max_dB) >= 0;
1714 /* Assume decibel data to be incorrect if max_dB is negative. */
1715 if (e->has_dB && max_dB < 0 && !e->db_fix) {
1718 "Disabling the decibel range.", buf, min_dB, max_dB);
1740 if (min_dB != min_dB_checked || max_dB != max_dB_checked) {
1744 "%0.2f dB at level %li.", buf, min_dB / 100.0, max_dB / 100.0,
1752 e->max_dB = ((double) max_dB) / 100.0;
1754 if (min_dB >= max_dB) {
1757 e->min_dB, e->max_dB);
1774 e->max_dB = ((double) e->db_fix->db_values[e->db_fix->max_step - e->db_fix->min_step]) / 100.0;
1775 } else if (element_ask_vol_dB(me, e->direction, e->max_volume, &max_dB) < 0) {
1780 e->max_dB = ((double) max_dB) / 100.0;
3169 double min_dB[PA_CHANNEL_POSITION_MAX], max_dB[PA_CHANNEL_POSITION_MAX];
3183 pa_zero(max_dB);
3221 max_dB[t] = e->max_dB;
3232 max_dB[t] += e->max_dB;
3269 p->max_dB = -INFINITY;
3279 if (p->max_dB < max_dB[t]) {
3280 p->max_dB = max_dB[t];
3290 p->max_dB = 0;
3353 "has_dB=%s, min_volume=%li, max_volume=%li, min_dB=%g, max_dB=%g",
3364 p->min_dB, p->max_dB);