LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Can't turn down volume with intel hda. (https://www.linuxquestions.org/questions/linux-hardware-18/cant-turn-down-volume-with-intel-hda-4175416891/)

nemasu 07-15-2012 09:16 PM

Can't turn down volume with intel hda.
 
Hello,

I'm using a laptop with an HDA Intel card and a C-Media CMI9880 chip. The sound works, but I cannot turn the volume down using alsamixer, there is only the option to mute, and no vertical volume bar. I tried using xfce4-mixer as well, the volume bar exists but does nothing. Any ideas?

I'm using Linux 3.4.4 and these are the loaded modules:
Code:

Module                  Size  Used by
michael_mic            1598  4
ecb                    1565  2
lib80211_crypt_ccmp    4153  1
snd_hda_codec_si3054    2794  1
snd_hda_codec_cmedia    7063  1
firewire_ohci          27139  0
tifm_7xx1              3470  0
firewire_core          42581  1 firewire_ohci
tifm_core              3559  1 tifm_7xx1
snd_hda_intel          18995  0
ipw2200              158703  0
libipw                35059  1 ipw2200
snd_hda_codec          65740  3 snd_hda_codec_si3054,snd_hda_intel,snd_hda_codec_cmedia
snd_hwdep              4514  1 snd_hda_codec
lib80211_crypt_tkip    6950  1
lib80211                2965  4 lib80211_crypt_ccmp,lib80211_crypt_tkip,libipw,ipw2200


RockDoctor 07-16-2012 07:59 AM

If you're using pulseaudio, you might try pavucontrol

aus9 07-16-2012 10:36 AM

if PA controls don't work can you also post the audio bit for the output to

lspci -vvv

aplay -l

ignore if solved

PS when you run alsamixer pls ensure you have no mobile phones, modems or other sound devices connected....just in case you are not seeing your true audio device but the secondary device

nemasu 07-17-2012 12:14 AM

Thanks for the reply, I'm not using pulse audio. Here is more info:
Code:

00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)
        Subsystem: LG Electronics, Inc. Device 000b
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 43
        Region 0: Memory at b0000000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
                Address: 00000000fee0100c  Data: 4179
        Capabilities: [70] Express (v1) Root Complex Integrated Endpoint, MSI 00
                DevCap:        MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
                        ExtTag- RBE- FLReset-
                DevCtl:        Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 128 bytes
                DevSta:        CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
                LnkCap:        Port #0, Speed unknown, Width x0, ASPM unknown, Latency L0 <64ns, L1 <1us
                        ClockPM- Surprise- LLActRep- BwNot-
                LnkCtl:        ASPM Disabled; Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta:        Speed unknown, Width x0, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
        Capabilities: [100 v1] Virtual Channel
                Caps:        LPEVC=0 RefClk=100ns PATEntryBits=1
                Arb:        Fixed- WRR32- WRR64- WRR128-
                Ctrl:        ArbSelect=Fixed
                Status:        InProgress-
                VC0:        Caps:        PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
                        Arb:        Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
                        Ctrl:        Enable+ ID=0 ArbSelect=Fixed TC/VC=01
                        Status:        NegoPending- InProgress-
                VC1:        Caps:        PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
                        Arb:        Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
                        Ctrl:        Enable+ ID=1 ArbSelect=Fixed TC/VC=80
                        Status:        NegoPending- InProgress-
        Capabilities: [130 v1] Root Complex Link
                Desc:        PortNumber=05 ComponentID=02 EltType=Config
                Link0:        Desc:        TargetPort=00 TargetComponent=02 AssocRCRB- LinkType=MemMapped LinkValid+
                        Addr:        00000000f0008000
        Kernel driver in use: snd_hda_intel

Code:


**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: CMI9880 [CMI9880]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: CMI9880 Digital [CMI9880 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 6: Si3054 Modem [Si3054 Modem]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Also, this is what alsamixer looks like, the "PCM" sound doesnt actually control anything (originally, there wasnt even volume control for it...not that it does anything anyways), the speakers are muted by muting "Surround".
Code:

┌───────────────────────────────────────────────────────────── AlsaMixer v1.0.25 ─────────────────────────────────────────────────────────────┐
│ Card: HDA Intel                                                                                                    F1:  Help              │
│ Chip: C-Media CMI9880                                                                                              F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All                                                                            F6:  Select sound card  │
│ Item: PCM [dB gain: 0.00, 0.00]                                                                                    Esc: Exit              │
│                                                                                                                                            │
│                                                                                                                                            │
│                                                                                                                                            │
│                                                                                                                                            │
│                                                                                                                                            │
│                                                                                                                                            │
│                                                                                                                                            │
│    ┌──┐                                                                                              ┌──┐                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    │▒▒│                                                                                              │  │                                  │
│    ├──┤          ┌──┐          ┌──┐          ┌──┐          ┌──┐          ┌──┐          ┌──┐          ├──┤          ┌──┐          ┌──┐      │
│    │MM│          │OO│          │MM│          │MM│          │MM│          │MM│          │MM│          │MM│          │MM│          │MM│      │
│    └──┘          └──┘          └──┘          └──┘          └──┘          └──┘          └──┘          └──┘          └──┘          └──┘      │
│  100<>100                                                                                            0<>0                                  │
│<    PCM    >  Surround      Center          LFE          Side        S/PDIF    S/PDIF Defaul    Beep        Caller ID    Off-hook    │
│                                                                                                                                            │
│                                                                                                                                            │
│                                                                                                                                            │
│                                                                                                                                            │
│                                                                                                                                            │
│                                                                                                                                            │
│                                                                                                                                            │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘


RockDoctor 07-17-2012 07:26 AM

I know this will sound strange, but try upping the volume on the Beep channel. Long before Pulse Audio, I used to have to do that to get sound out of some of my older systems.

aus9 07-17-2012 07:35 AM

MM means muted

press the M key to unmute in alsamixer pls

2) if that does not work we will need to create an asoundrc file in your home folder to force pcm to hw:0,1

hang on....I guessed modem might be interfering but that device 6

so if (1) fails are you using that intel modem?

this has to be an on board device yes?

---------- Post added 17-07-12 at 20:36 ----------

MM means muted

press the M key to unmute in alsamixer pls

2) if that does not work we will need to create an asoundrc file in your home folder to force pcm to hw:0,1

hang on....I guessed modem might be interfering but that device 6

so if (1) fails are you using that intel modem?

this has to be an on board device yes?

nemasu 07-17-2012 10:31 AM

Hello,

Well the sound works, it's just that it's at 100% volume all the time,
the only thing in alsamixer that makes any difference is muting the Surround
will mute the actual speakers.

I am not using the modem, and it is on board, it's a laptop with no external devices.

Thanks

aus9 07-17-2012 06:52 PM

have you tried pressing m at the pcm control and then press page down or down arrow?

nemasu 07-17-2012 07:42 PM

Quote:

Originally Posted by aus9 (Post 4731102)
have you tried pressing m at the pcm control and then press page down or down arrow?

Yes I've tried that, PCM does not affect the sound coming out at all (volume bar or mute),
actually, the first few times I started alsamixer, there was no volume bar for PCM either,
it just recently showed up for some reason.

aus9 07-17-2012 08:12 PM

ok well we may need to create an asoundrc file

can you post the full output to

aplay -l

aplay -L

cat /proc/asound/card0/codec#0 | grep Codec

cat /proc/asound/card0/codec#1 | grep Codec

aus9 07-17-2012 08:14 PM

oops you don't have a second card ...got confused with another poster

I must start taking the blue pill

and I can't edit

forgive me

aus9 07-17-2012 08:20 PM

ahh you may be missing ac97 codec...according to google

also post the output to

lsmod (inside a code box pls)

aus9 07-17-2012 08:34 PM

ahh found your device

http://www.kernel.org/doc/Documentat...dio-Models.txt

CMI9880
=======
minimal 3-jack in back
min_fp 3-jack in back, 2-jack in front
full 6-jack in back, 2-jack in front
full_dig 6-jack in back, 2-jack in front, SPDIF I/O
allout 5-jack in back, 2-jack in front, SPDIF out
auto auto-config reading BIOS (default)

we can ignore asoundrc for the moment

instead we create a model= to get your stacks to match

ok so we know you must have a spdif jack, look at how many jacks you have a choose one, lets say its 5 at back 2 at front with optical

now we do this with root powers

edit /etc/modprobe.d/alsa-base.conf

and add the following line then reboot and recheck your alsamixer image and see if you change things

naturally this may not be your model so change that string....allout to "whatever"


Code:

options snd-hda-intel model=allout
good luck

nemasu 07-18-2012 09:10 PM

Thanks again for the help.

So I tried all the models, this is what I got:
Minimal: Center and LFE channels mute left and right speakers respectively, no volume bar
Min_fp: same as above
Full: same as above
Full_dig: same as above
Allout: same as above
auto: Surround mutes everything, no volume control, seems to be the default

I loaded the ac97 codec, so it will show up in this lsmod:
Code:

Module                  Size  Used by
snd_ac97_codec        86422  0
ac97_bus                770  1 snd_ac97_codec
snd_hda_intel          18995  3
michael_mic            1598  4
ecb                    1565  2
lib80211_crypt_ccmp    4153  1
iTCO_wdt              10569  0
tc1100_wmi              1923  0
serio_raw              3413  0
pcspkr                  1351  0
snd_hda_codec_si3054    2794  1
ipw2200              158767  0
snd_hda_codec_cmedia    7063  1
libipw                35059  1 ipw2200
yenta_socket          18543  0
iTCO_vendor_support    1441  1 iTCO_wdt
tifm_7xx1              3470  0
firewire_ohci          27139  0
tifm_core              3559  1 tifm_7xx1
firewire_core          42581  1 firewire_ohci
uhci_hcd              28080  0
snd_hda_codec          65740  3 snd_hda_codec_si3054,snd_hda_intel,snd_hda_codec_cmedia
snd_hwdep              4514  1 snd_hda_codec
lib80211_crypt_tkip    6950  1
lib80211                2965  4 lib80211_crypt_ccmp,lib80211_crypt_tkip,libipw,ipw2200

Here's some more info:

Code:

root@localhost:~ # cat /proc/asound/card0/codec#0 | grep Codec
Codec: C-Media CMI9880
root@localhost:~ # cat /proc/asound/card0/codec#1 | grep Codec
Codec: LSI Si3054
root@localhost:~ # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: CMI9880 [CMI9880]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: CMI9880 Digital [CMI9880 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 6: Si3054 Modem [Si3054 Modem]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@localhost:~ # aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=Intel
    HDA Intel, CMI9880
    Default Audio Device
sysdefault:CARD=Intel
    HDA Intel, CMI9880
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, CMI9880
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, CMI9880
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, CMI9880
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, CMI9880
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, CMI9880
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, CMI9880
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, CMI9880 Digital
    IEC958 (S/PDIF) Digital Audio Output


aus9 07-23-2012 10:33 PM

sorry I am wrong on the ac97 google result as you have snd_hda_codec_cmedia

can you reboot and try again pls?

I am struggling on this one

Have you ever installed pulseaudio on this distro? maybe one of its settings is interfering with alsa?


All times are GMT -5. The time now is 10:31 PM.