LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-15-2012, 09:16 PM   #1
nemasu
LQ Newbie
 
Registered: Mar 2004
Location: Japan
Distribution: noop, Arch, Gentoo
Posts: 14

Rep: Reputation: 0
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
 
Old 07-16-2012, 07:59 AM   #2
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
If you're using pulseaudio, you might try pavucontrol
 
Old 07-16-2012, 10:36 AM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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
 
Old 07-17-2012, 12:14 AM   #4
nemasu
LQ Newbie
 
Registered: Mar 2004
Location: Japan
Distribution: noop, Arch, Gentoo
Posts: 14

Original Poster
Rep: Reputation: 0
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    │
│                                                                                                                                             │
│                                                                                                                                             │
│                                                                                                                                             │
│                                                                                                                                             │
│                                                                                                                                             │
│                                                                                                                                             │
│                                                                                                                                             │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
 
Old 07-17-2012, 07:26 AM   #5
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
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.
 
Old 07-17-2012, 07:35 AM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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?
 
Old 07-17-2012, 10:31 AM   #7
nemasu
LQ Newbie
 
Registered: Mar 2004
Location: Japan
Distribution: noop, Arch, Gentoo
Posts: 14

Original Poster
Rep: Reputation: 0
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
 
Old 07-17-2012, 06:52 PM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
have you tried pressing m at the pcm control and then press page down or down arrow?
 
Old 07-17-2012, 07:42 PM   #9
nemasu
LQ Newbie
 
Registered: Mar 2004
Location: Japan
Distribution: noop, Arch, Gentoo
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by aus9 View Post
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.
 
Old 07-17-2012, 08:12 PM   #10
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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
 
Old 07-17-2012, 08:14 PM   #11
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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
 
Old 07-17-2012, 08:20 PM   #12
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
ahh you may be missing ac97 codec...according to google

also post the output to

lsmod (inside a code box pls)
 
Old 07-17-2012, 08:34 PM   #13
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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
 
Old 07-18-2012, 09:10 PM   #14
nemasu
LQ Newbie
 
Registered: Mar 2004
Location: Japan
Distribution: noop, Arch, Gentoo
Posts: 14

Original Poster
Rep: Reputation: 0
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

Last edited by nemasu; 07-18-2012 at 09:13 PM. Reason: Double post
 
Old 07-23-2012, 10:33 PM   #15
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Low Audio Volume in HP DV5292 HDA Intel rhonaldmoses Linux - Laptop and Netbook 19 05-12-2007 12:04 AM
Can't adjust playback volume on HDA Intel card (Alsa 1.0.13, Linux 2.6.18.2) lithiumfx Linux - Laptop and Netbook 17 12-08-2006 05:26 PM
integrated hda audio modem bluetooth , (intel hda audio does not work) reggae linux Linux - Laptop and Netbook 1 07-05-2006 10:13 PM
integrated hda audio modem bluetooth , (intel hda audio does not work) reggae linux Linux - Laptop and Netbook 2 07-05-2006 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration