Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318507 - media-sound/alsa-utils-1.0.22-r1: need to increase/decrease PCM level to get sound on un-muted channel
Summary: media-sound/alsa-utils-1.0.22-r1: need to increase/decrease PCM level to get ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo ALSA team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 20:39 UTC by Martin Mokrejš
Modified: 2012-02-03 13:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
alsasound.old (alsasound.old,6.44 KB, text/plain)
2010-05-04 20:40 UTC, Martin Mokrejš
Details
alsasound-1.0.20-r5.broken (alsasound,6.08 KB, text/plain)
2010-05-04 20:40 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2010-05-04 20:39:28 UTC
Hi,
  this is quite a long time standing bug I see on my laptop with AC97-compatible card (ICH3-M chipset). When I start the laptop, alse level are restored. But, when I try to play a song there is no sound. When I go straight into alsamixer, click several times the right arrow to get over the PCM level mixer (the channel is opened and level almost at maximum) and press once "down arrow" I get sound.

  It seems to be an issue with alsa-utils. I tracked this down some time ago to a broken alsasound script but probably forgot to report. I know you will not be happy with this too broad time difference to current alsa-utils-1.0.22-r1 but ... :

# diff -u -w /etc/init.d/alsasound.old /etc/init.d/alsasound
--- /etc/init.d/alsasound.old   2006-03-07 23:02:59.000000000 +0100
+++ /etc/init.d/alsasound       2010-01-21 14:02:09.000000000 +0100


I downgraded to media-sound/alsa-utils-1.0.20-r5 and it did not help. As I said, this is quite a long standing bug. :(


Reproducible: Always
Comment 1 Martin Mokrejš 2010-05-04 20:40:03 UTC
Created attachment 230351 [details]
alsasound.old

working script
Comment 2 Martin Mokrejš 2010-05-04 20:40:44 UTC
Created attachment 230353 [details]
alsasound-1.0.20-r5.broken
Comment 3 Martin Mokrejš 2010-05-04 20:59:52 UTC
Restarting the service (1.0.20-r5 version now) does not help, but here is the output for those who want to see that and don't believe that just touching the PCM level immediately gives me the sound back:

# /etc/init.d/alsasound restart
 * WARNING: you are stopping a boot service
 * Shutting down slmodemd ...                                                                                                                                                                                                   [ ok ]
 * Storing ALSA Mixer Levels ...                                                                                                                                                                                                [ ok ]
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...
FATAL: Module snd_intel8x0 not found.                                                                                                                                                                                           [ ok ]
 * Restoring Mixer Levels ...                                                              [ ok ]
 * Starting slmodemd for /dev/ttySL0 with alsa support                               [ ok ]

Comment 4 David Abbott (RETIRED) gentoo-dev 2010-05-09 23:33:29 UTC
Did you run /etc/init.d/alsasound save

Is that your sound card?
FATAL: Module snd_intel8x0 not found.  
Comment 5 Martin Mokrejš 2010-05-10 07:09:56 UTC
I did run save state in the past. Imagine, how could I get a sound if I would just go over the PCM mixer and _decrese_ the level by one step (the down arrow) without un-muting the channnel for example.

Yes, it is my soundcard, I just placed the driver into kernel statically and did not bother to remove the module name.
Comment 6 Martin Mokrejš 2010-07-26 13:29:55 UTC
This is fixed for me now with alsa-utils-1.0.23, or is it due to 2.6.34.1 kernel instead 2.6.31.14? I think due to alsa-utils.

The only hint I have is a snippet from /var/log/rc.log:


 * Loading ALSA modules ...
 [ ok ]
 * Restoring Mixer Levels ...
Unknown hardware: "ICH" "Cirrus Logic CS4299 rev 4" "AC97a:43525934" "0x1043" "0x1583"
Hardware is initialized using a guess method
alsactl: set_control:1255: failed to obtain info for control #7 (No such file or directory)
alsactl: set_control:1255: failed to obtain info for control #8 (No such file or directory)
 * Errors while restoring defaults, ignoring
 [ ok ]


As I said, I do not need the trick with the alsamixer touching the PCM mixer level anymore. I do see this message on boot on other x86 host with "similar" AC97-compatible sound+modem card.

My system (ASUS L3C/S laptop) has:

00:1f.5 Multimedia audio controller: Intel Corporation 82801CA/CAM AC'97 Audio Controller (rev 02)
        Subsystem: ASUSTeK Computer Inc. L3C (SPDIF)
        Flags: bus master, medium devsel, latency 0, IRQ 11
        I/O ports at e000 [size=256]
        I/O ports at e100 [size=64]
        Kernel driver in use: Intel ICH

00:1f.6 Modem: Intel Corporation 82801CA/CAM AC'97 Modem Controller (rev 02) (prog-if 00 [Generic])
        Subsystem: ASUSTeK Computer Inc. PCtel HSP56 MR
        Flags: bus master, medium devsel, latency 0, IRQ 11
        I/O ports at e200 [size=256]
        I/O ports at e300 [size=128]
        Kernel driver in use: Intel ICH Modem


The other machine (Acer LCi291 laptop) has:

00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
        Subsystem: Acer Incorporated [ALI] Device 0021
        Flags: bus master, medium devsel, latency 0, IRQ 10
        I/O ports at e100 [size=256]
        I/O ports at e200 [size=64]
        Memory at f0080400 (32-bit, non-prefetchable) [size=512]
        Memory at f0080600 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2
        Kernel driver in use: Intel ICH
        Kernel modules: snd-intel8x0

00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03) (prog-if 00 [Generic])
        Subsystem: Acer Incorporated [ALI] Device 003d
        Flags: bus master, medium devsel, latency 0, IRQ 10
        I/O ports at e300 [size=256]
        I/O ports at e400 [size=128]
        Capabilities: [50] Power Management version 2
        Kernel driver in use: Intel ICH Modem
        Kernel modules: snd-intel8x0m
Comment 7 Alexey 2010-08-06 21:28:17 UTC
Yeah, it's a bug with ICH7 to.
this "alsasound.old" script works ok
Seems like "alsasound" script not load modules correctly.
Comment 8 Tony Vroon (RETIRED) gentoo-dev 2012-02-03 13:26:00 UTC
The automatic loading & unloading of ALSA modules through alsasound is no longer supported and may be removed soon. Please build the ALSA core & drivers into the kernel.