[pulseaudio-tickets] [Bug 87814] Microphone has loud static/distortion when volume is not 100%
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Jan 9 20:31:11 PST 2015
https://bugs.freedesktop.org/show_bug.cgi?id=87814
--- Comment #8 from Raymond <superquad.vortex2 at gmail.com> ---
http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/alsa-source.c
/* Shift down by the base volume, so that 0dB becomes maximum volume */
pa_sw_cvolume_multiply_scalar(&r, &r, s->base_volume);
pa_log_debug("Read hardware volume: %s",
pa_cvolume_snprint_verbose(volume_buf, sizeof(volume_buf), &r,
&s->channel_map, u->mixer_path->has_dB));
if (pa_cvolume_equal(&u->hardware_volume, &r))
return;
s->real_volume = u->hardware_volume = r;
you have to provide pulseaudio verbose when you change volume from min to max
as 0dB is not inside dB range
pa_log_debug("Requested volume: %s",
pa_cvolume_snprint_verbose(volume_buf, sizeof(volume_buf),
&s->real_volume, &s->channel_map, true));
pa_log_debug("Got hardware volume: %s",
pa_cvolume_snprint_verbose(volume_buf, sizeof(volume_buf),
&u->hardware_volume, &s->channel_map, true));
pa_log_debug("Calculated software volume: %s (accurate-enough=%s)",
pa_cvolume_snprint_verbose(volume_buf, sizeof(volume_buf),
&new_soft_volume, &s->channel_map, true),
pa_yes_no(accurate_enough));
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20150110/4a45dc5c/attachment.html>
More information about the pulseaudio-bugs
mailing list