<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Clipping of line-in volume on Analog Devices codes due to an incorrect max_dB determination"
href="https://bugs.freedesktop.org/show_bug.cgi?id=73336">73336</a>
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clipping of line-in volume on Analog Devices codes due to an incorrect max_dB determination
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mrj@advancedcontrols.com.au
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>modules
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr></table>
<p>
<div>
<pre>On a machine with HDA Intel Audio and an AD1988 codec (ASUS P5B board), running
Kernel 3.12.5 causes the line-in hardware volume to span its full 0-54 range
over a Pulseaudio volume range of 0-20724, instead of being mapped to the full
0-65536 Pulseaudio volume range, as is the case when running Kernels 3.11.9 and
earlier. This causes previously suitable line-in mixer volumes to clip
severely.
The cause is a different max_dB determination under the two Kernel versions:
3.11.9:
[pulseaudio][modules/alsa/alsa-mixer.c:2789 pa_alsa_path_dump()] Path
analog-input-linein (Line In), direction=2, priority=81, probed=yes,
supported=yes, has_mute=yes, has_volume=yes, has_dB=yes, min_volume=0,
max_volume=54, min_dB=-58.5, max_dB=22.5
3.12.5:
[pulseaudio][modules/alsa/alsa-mixer.c:2789 pa_alsa_path_dump()] Path
analog-input-linein (Line In), direction=2, priority=81, probed=yes,
supported=yes, has_mute=yes, has_volume=yes, has_dB=yes, min_volume=0,
max_volume=54, min_dB=-58.5, max_dB=52.5
The 30dB difference in max_dB appears to be related to the "Line Boost Volume"
control (0, 10dB, 20dB, 30dB) that's newly-exposed in Kernel 3.12 for Analog
Devices codecs, which PA appears to not be taking account of.
Also unexpected on both Kernel versions: max_volume is reported as "3" for all
microphone inputs on both Kernels, possibly reflecting the 3 boost settings
rather than the correct 54 levels as reported for the line input. The mic
max_dB calculations are however correct:
[pulseaudio][modules/alsa/alsa-mixer.c:2789 pa_alsa_path_dump()] Path
analog-input-microphone-rear (Rear Microphone), direction=2, priority=82,
probed=yes, supported=yes, has_mute=yes, has_volume=yes, has_dB=yes,
min_volume=0, max_volume=3, min_dB=-58.5, max_dB=52.5</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>