Bug 4021 - 2_a2: Sound card controls are incorrect.
Summary: 2_a2: Sound card controls are incorrect.
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Colin Guthrie
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2012-01-04 20:34 CET by Bit Twister
Modified: 2012-03-06 15:12 CET (History)
1 user (show)

See Also:
Source RPM: pulseaudio-1.1-3.mga2.src.rpm
CVE:
Status comment:


Attachments
output from system files and compairson between Mageia and Mandriva (6.25 KB, text/plain)
2012-01-04 20:35 CET, Bit Twister
Details
alsa-info.sh results (34.31 KB, text/plain)
2012-01-18 02:17 CET, Bit Twister
Details

Description Bit Twister 2012-01-04 20:34:08 CET
Description of problem:

Sound card controls are incorrect.
I get no audio unless I set master volume above 70% kde using sound widget.

I noticed when I lower kde volume below 70% PCM level goes to 0
when watching with "alsamixer -c 0"

I have no sound problems running Mandriva 2011 on this hardware.


Version-Release number of selected component (if applicable):


How reproducible: Always


Steps to Reproduce:
1. Clean install, apply all updates, reboot
2. mcc->Hardware->Sound Configuration
3. Log out/in
4. click up a terminal
5. alsamixer -c 0
6. Left click kde speaker icon/widget in task bar.
7. Move slider up/down

Note: PCM slider goes to 0 in the alsamixer terminal when kde widget slider is below 70%    :(

This happens on one of my three machines with a cauldron install.
Comment 1 Bit Twister 2012-01-04 20:35:36 CET
Created attachment 1331 [details]
output from system files and compairson between Mageia and Mandriva
Bit Twister 2012-01-13 14:23:30 CET

Source RPM: (none) => pulseaudio-1.1-3.mga2.src.rpm

Comment 2 Manuel Hiebel 2012-01-16 15:26:40 CET
Hi, thanks for reporting this bug.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Assignee: bugsquad => mageia
Keywords: (none) => Triaged

Comment 3 Colin Guthrie 2012-01-17 12:05:32 CET
Smells like invalid dB info.

Can you supply the output from the alsa-info.sh script?

http://www.alsa-project.org/alsa-info.sh

Status: NEW => ASSIGNED

Comment 4 Bit Twister 2012-01-17 17:10:30 CET
Only if you can point me to an alpha2.iso. alpha3 will not install on two of my three systems, one of which has the audio problem.  
<a href="show_bug.cgi?id=4144" title="X-based window system">bug 4144</a>
Comment 5 Sander Lepik 2012-01-17 17:42:23 CET
(In reply to comment #4)
> Only if you can point me to an alpha2.iso. alpha3 will not install on two of my
> three systems, one of which has the audio problem.  
> <a href="show_bug.cgi?id=4144" title="X-based window system">bug 4144</a>

Torrents are still there: http://linuxtracker.org/index.php?page=torrents&search=mageia+alpha2&category=0&active=1&tracker=0 (may take some time to load).

CC: (none) => sander.lepik

Comment 6 Bit Twister 2012-01-18 02:17:13 CET
Created attachment 1379 [details]
alsa-info.sh results
Comment 7 Colin Guthrie 2012-01-18 11:44:23 CET
Yeah the dB values look pretty zany... 

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 25 [39%] [6.25dB] [on]

at 39% it's saying it's +6.25dB i.e. it's amplifying... this should result in a *lot* of distortion, but if it's not, then the the values are clearly just wrong.

Because this control is bust, PA will mostly use the PCM slider to control the volumes and thus it will ultimately reach 0% there pretty quickly (around 70% seems sensible enough to me). When PCM is 0% does the sound completely cut off or is it still audible? It *should* still be audible, because even when PCM is at 0 it'll still be some reasonable dB level. (you can find out the value via: amixer -c0 set PCM 0; amixer -c0 get PCM). If it's totally inaudable, then it seems like another bug where "min-is-mute" quirk needs to be set in the driver.
Comment 8 Bit Twister 2012-01-18 18:00:33 CET
(In reply to comment #7)

<snip>
> then it
> seems like another bug where "min-is-mute" quirk needs to be set in the driver.

My WAG is a pulse audio detection problem.
I noticed audio was working correctly on first login after a clean install
of Mageia-2-alpha2-x86_64-DVD.iso yesterday.

Install all up updates, reboot, login and audio setting is dinked up.

Where/what can I look/compare to see what needs to be configured correctly?

I have a script which dump output from aplay, cards, lsmod, lspci, modprobe, pacmd, arecord, chkconfig, lspcidrake,  mixer, modules when it was working correctly.
Comment 9 Colin Guthrie 2012-01-18 21:27:57 CET
People seem to be suffering from a permissions problem right now (no ACLs on /dev/snd/* among other things). This is likely the short term problem, but lets not bother discussing it here and keep this bug on topic :) I'll post on the cauldron list when the perms probs are tracked down.
Comment 10 Bit Twister 2012-01-18 22:08:18 CET
(In reply to comment #9)
> People seem to be suffering from a permissions problem right now (no ACLs on
> /dev/snd/* among other things). This is likely the short term problem, but lets
> not bother discussing it here and keep this bug on topic :) I'll post on the
> cauldron list when the perms probs are tracked down.

Dang, I hoping to do some more troubleshooting to help narrow down the problem.

I noticed without updates, a log out/in would toggle to the problem.
I already do a usermod -a -G audio userid_here, as root, just after install reboot and before user logs in for the first time.
Comment 11 Colin Guthrie 2012-01-18 22:45:16 CET
Users should not be added to the audio group unless you have very specific needs. Otherwise you will at times be going specifically against all the access rules put in place for users. So unless you really need to (i.e. not just temporarily to solve a transient problem) it's best not to add users to special groups.
Bit Twister 2012-02-11 17:31:11 CET

Severity: normal => major

Comment 12 Colin Guthrie 2012-02-27 09:38:49 CET
Just saw your comment on another bug. Is this still valid with the latest kernel updates?

The info I'm interested in still is the alsa-info.sh output - namely the bit I mentioned in comment 7.

If it's still got dB values >0, are you able to perform a dB measurement? This would require an audio loopback cable (a cable with a 3.5mm jack on each end) plugging it in to both headphones and mic then running some software?

Let me know if this is a possibility as that way we can define a dB override table and test it in PulseAudio before submitting the data upstream.
Comment 13 Bit Twister 2012-03-06 14:51:00 CET
(In reply to comment #12)
> Just saw your comment on another bug.

Yes, I was hoping to catch your attention. :)

> Is this still valid with the latest kernel updates?

Not with any 3.2.x kernels but now works with 3.3.0-desktop-0.rc6.1.mga2 release.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED

Comment 14 Colin Guthrie 2012-03-06 15:12:55 CET
Yup, lots of nice things in 3.3 related to sound stuff... might even get working headphone jacks at long, long last :)

Note You need to log in before you can comment on or make changes to this bug.