Lines Matching defs:volume
37 #include <pulse/volume.h>
846 /* We take the highest volume of all channels that match */
859 /* If the channel volume is outside the limits set
860 * by the dB fix, we clamp the hw volume to be
866 pa_log_debug("Playback volume for element %s channel %i was below the dB fix limit. "
873 pa_log_debug("Playback volume for element %s channel %i was over the dB fix limit. "
889 /* If the channel volume is outside the limits set
890 * by the dB fix, we clamp the hw volume to be
896 pa_log_debug("Capture volume for element %s channel %i was below the dB fix limit. "
903 pa_log_debug("Capture volume for element %s channel %i was over the dB fix limit. "
1108 * But even with accurate nearest dB volume step is not selected, so that is why we need
1109 * this function. Returns 0 and nearest selectable volume in *value_dB on success or
1196 /* Hmm, so this channel does not exist in the volume
1198 * volume. */
1408 * function sets all channels of the volume element to e->min_volume, 0 dB or
1414 long volume = -1;
1430 volume = e->min_volume;
1438 volume = decibel_fix_get_step(e->db_fix, &dB, (e->direction == PA_ALSA_DIRECTION_OUTPUT ? +1 : -1));
1444 volume = e->constant_volume;
1454 r = snd_mixer_selem_set_playback_volume_all(me, volume);
1456 r = snd_mixer_selem_set_capture_volume_all(me, volume);
1469 pa_log_warn("Failed to set volume of %s: %s", buf, pa_alsa_strerror(errno));
1675 pa_log_warn("Failed to get volume range of %s: %s", buf, pa_alsa_strerror(r));
1681 pa_log_warn("Your kernel driver is broken for element %s: it reports a volume range from %li to %li which makes no sense.",
1687 pa_log_warn("Constant volume %li configured for element %s, but the available range is from %li to %li.",
1717 pa_log_warn("The decibel volume range for element %s (%li dB - %li dB) has negative maximum. "
1730 pa_log_warn("Failed to query the dB value for %s at volume level %li", buf, e->min_volume);
1736 pa_log_warn("Failed to query the dB value for %s at volume level %li", buf, e->max_volume);
1743 "doesn't match the dB values at minimum and maximum volume levels: %0.2f dB at level %li, "
1756 pa_log_warn("Your kernel driver is broken: it reports a volume range from %0.2f dB to %0.2f dB which makes no sense.",
1766 "%li-%li. The volume limit is ignored.",
2359 else if (pa_streq(state->rvalue, "volume") && e)
2463 pa_log("[%s:%u] volume-limit makes no sense in '%s'", state->filename, state->lineno, state->section);
2468 pa_log("[%s:%u] Invalid value for volume-limit", state->filename, state->lineno);
2943 { "volume", element_parse_volume, NULL, NULL },
2962 { "volume-limit", element_parse_volume_limit, NULL, NULL },
3204 pa_log_debug("Probe of element %s succeeded (volume=%d, switch=%d, enumeration=%d, has_dB=%d).", buf, e->volume_use, e->switch_use, e->enumeration_use, e->has_dB);
3240 pa_log_info("Zeroing volume of %s on path '%s'", buf, p->name);
3244 /* We can't use this volume, so let's ignore it */
3246 pa_log_info("Ignoring volume of %s on path '%s' (missing dB info)", buf, p->name);
3328 pa_log_debug("Element %s, direction=%i, switch=%i, volume=%i, volume_limit=%li, enumeration=%i, required=%i, required_any=%i, required_absent=%i, mask=0x%llx, n_channels=%u, override_map=%02x",
3659 /* Different volume uses when b is not "Merge" means we are definitely not a subset */
3663 /* "Constant" is a subset of "Merge", if there is not a "volume-limit" in "Merge" below the actual constant.
3665 * "Merge" with a "volume-limit" is a subset of "Merge" without a "volume-limit" or with a higher "volume-limit" */