<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
there has been some discussion about Mic Boost / Dock Mic Boost in the<br>
past already. Some have reported no Mic output at all without Boost,<br>
other say that enabling Boost will cause high noise on their systems.<br>
<br>
I have another point here that AFAICS hasn't been reported yet.<br>
<br>
It has been caused by the commit e6051cdf "alsa-mixer: Prefer moving<br>
"Capture" before moving boosts"<br>
(<a href="http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=e6051cdf8db554c0bbd4257959c37a7ecc9c10c5" target="_blank">http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=e6051cdf8db554c0bbd4257959c37a7ecc9c10c5</a>)<br>
(see also<br>
<a href="https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1085402" target="_blank">https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1085402</a>).<br>
<br>
In short, on my system, input volume control is hardly possible above<br>
25% because of this patch.<br>
<br>
The effect that I am seeing is as follows: I have two merged volume<br>
controls for my Mic, "Capture" and "Dock Mic Boost". They are applied by<br>
PA in the order encountered in the path conf file. On my system (Fujitsu<br>
Lifebook E744 with Realtek ALC282 Codec), the "Capture" Amp has a range<br>
of -18..30 dB in 0.75 dB steps, and "Dock Mic Boost" has 4 12dB steps<br>
(0, 12, 24, 36). PA merges these two controls to a single volume control<br>
with an overall range of -18..66dB. Normalizing at the max, PA converts<br>
this to -84..0dB, where the Boost comes in at -36dB, or 25% of the<br>
scale. The "base volume", calculated from the "offset" of the ALSA amp,<br>
is at -66dB or 8%.<br>
<br>
Because of the above patch, the "Capture" control is used first. Thus<br>
the range from -84...-36 dB (or 0..25%, because of the non-linearity of<br>
PA's volume control) is covered with "Capture". Above that level,<br>
"Capture" is always held at 100% and only "Doc Mic Boost" changes. This<br>
means that above 25%, there are only 3 steps that are actually possible:<br>
-24dB / 40%, -12dB / 63%, and 0dB / 100%.<br>
=> There is no "smooth" volume control above 25%.<br>
The graphical volume controls don't reflect this; thus user control<br>
input volume is almost impossible at higher levels than 25%. Volume will<br>
appear to change non-predictably to users.<br>
<br>
By changing the ordering of "Capture" and "Mic Boost" in the path conf<br>
file /usr/share/pulseaudio/alsa-mixer/paths/analog-input-dock-mic.conf,<br>
I can get smooth changes over the whole dynamic range again. Therefore I<br>
reckon that commit e6051cdf should be reverted because the effect<br>
described here is general, while the noise level seems to be different<br>
between models: On my system, there is no perceivable difference in<br>
noise level if the overall volume is the same (thus, 30dB "Capture" +<br>
0dB "Boost" has the same noise level as 18 dB "Capture" and 12 dB<br>
"Boost" or -6dB "Capure" and 36dB "Boost").<br>
<br>
However, I tend to think that PA's concept of volume "merging" generally<br>
doesn't work well for a "Boost" control. The "Boost" is conceptually<br>
rather a switch than a slider. A dynamic range of 84 dB doesn't make a<br>
lot of sense for a cheap Mic like the typical laptop's Mic input. It<br>
would be more reasonable to nail the Mic Boost switch to a certain value<br>
that matches the hardware and just use the "Capture" dynamic range for<br>
volume control. In the short run, this could be done by setting Mic<br>
Boost to 0 or 1, e.g.:<br>
<br>
[Element Dock Mic Boost]<br>
required-any = any<br>
switch = select<br>
volume = 1<br>
override-map.1 = all<br>
override-map.2 = all-left,all-right<br>
<br>
Ultimately, this shouldn't be hidden deeply in path conf files,<br>
therefore it would be necessary in the future that PA exhibit the "Mic<br>
Boost" control to users somewhere in the API / UI, unless some way is<br>
found to "guess" the optimal value for the boost on different systems.<br>
<br>
</div></blockquote><div> <br>The Capture Volume and Mic Boost are similar to fine adjustment and coarse adjustment of the microscope<br></div><div><br></div><div>It is not easy to combine the "fine" and "coarse" adjustment into a single volume slider which fit different scale in volume/boost <br><br></div><div>some user may prefer to adjust Boost first and Volume but other user may prefer adjust Volume and keep Boost fixed <br><br></div><div>As pulseaudio is using floating point volume scale and combine volume and boost to a single slider, the optimal solution may need a very complex method of adjusting the fine and coarse adjustment <br></div><div> </div><div> <br></div></div></div></div>