[pulseaudio-tickets] [Bug 73336] New: Clipping of line-in volume on Analog Devices codes due to an incorrect max_dB determination

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 6 14:53:43 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=73336

          Priority: medium
            Bug ID: 73336
                CC: lennart at poettering.net
          Assignee: pulseaudio-bugs at lists.freedesktop.org
           Summary: Clipping of line-in volume on Analog Devices codes due
                    to an incorrect max_dB determination
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: mrj at advancedcontrols.com.au
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: unspecified
         Component: modules
           Product: PulseAudio

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

-- 
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/20140106/2673517d/attachment.html>


More information about the pulseaudio-bugs mailing list