[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

After updating wheezy, sound card not properly recognized anymore



Hi,

after installing automatic updates a few weeks ago for my wheezy box,
sound disappeared. I'm using the box only occasionally and didn't
immediately try to figure out what's wrong - I assumed the next update
would fix it. Sadly, I'm still without sound. (That is one kernel update
later.)

First I checked that nothing is muted and that all sound output is at
maximum. Doing that I noticed in the sound settings (little speaker
symbol in the top right hand corner of gnome, then sound settings) that
only a dummy output device is listed. That's probably bad. I'm using the
onboard sound of the Gigabyte GA-Z68XP-UD4 mainboard with Intel Z68
Express Chipset. The specs say it should be using the Realtek ALC889 codec.

Next I checked whether modules are loaded (as far as I can see, they
are; lsmod output is further below) and whether the speakers work (they do).

Then I started to google for debugging howtos and possible fixes. Most
of what I found suggested to write something like
   pcm.!default {
       type hw
       card 0
       device 0
   }
   ctl.!default {
       type hw
       card 0
       device 0
   }
into ~.asoundrc or into /etc/asoundrc. None of those existed but
creating them (and testing different card/devices values) didn't work.
On the upside I learned about aplay and speaker-test (see output below)
which seem to indicate that the sound isn't going to the correct device.

Another suggestion was to use alsa-info.sh to gather information about
the current alsa configuration. Unfortunately, I couldn't find the
script. Which package does it belong to? Has it been replaced with
something newer? Or do I have to download it manually from the alsa
project webpage?

I'm not a Linux pro and this is as far as I got. Any help to fix the
issue would be appreciated.

Best, Simon

~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC889 Analog [ALC889 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC889 Digital [ALC889 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

~$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default:CARD=PCH
    HDA Intel PCH, ALC889 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC889 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC889 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output


speaker-test results in a nutshell:
null       | fail
pulse      | fail
default    | OK
sysdefault | OK
front      | fail
surround40 | fail
surround41 | fail
surround50 | OK
surround51 | fail
surround71 | fail
iec958     | fail
hdmi       | fail
(Please see the attachment for all speaker-test output.)


~$ uname -a
Linux Stoertebecker 3.2.0-4-amd64 #1 SMP Debian 3.2.32-1 x86_64 GNU/Linux

~$ lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset
Family High Definition Audio Controller (rev 05)
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI
Turks/Whistler HDMI Audio [Radeon HD 6000 Series]

~$ sudo lspci -s 00:1b.0 -vv
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset
Family High Definition Audio Controller (rev 05)
	Subsystem: Giga-byte Technology Device a132
	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: 4 bytes
	Interrupt: pin A routed to IRQ 46
	Region 0: Memory at fbff8000 (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: 00000000feeff00c  Data: 4199
	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=02
			Status:	NegoPending- InProgress-
	Capabilities: [130 v1] Root Complex Link
		Desc:	PortNumber=0f ComponentID=00 EltType=Config
		Link0:	Desc:	TargetPort=00 TargetComponent=00 AssocRCRB-
LinkType=MemMapped LinkValid+
			Addr:	00000000fed1c000
	Kernel driver in use: snd_hda_intel


~$ sudo lspci -s 01:00.1 -vv
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI
Turks/Whistler HDMI Audio [Radeon HD 6000 Series]
	Subsystem: ASUSTeK Computer Inc. Device aa90
	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: 4 bytes
	Interrupt: pin B routed to IRQ 47
	Region 0: Memory at fb9fc000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 3
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [58] Express (v2) Legacy Endpoint, MSI 00
		DevCap:	MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
			ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
		DevCtl:	Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
			RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
			MaxPayload 256 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
		LnkCap:	Port #0, Speed 5GT/s, Width x16, ASPM L0s L1, Latency L0
<64ns, L1 <1us
			ClockPM- Surprise- LLActRep- BwNot-
		LnkCtl:	ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+
			ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 5GT/s, Width x16, TrErr- Train- SlotClk+ DLActive-
BWMgmt- ABWMgmt-
		DevCap2: Completion Timeout: Not Supported, TimeoutDis-
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
		LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-,
Selectable De-emphasis: -6dB
			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance-
ComplianceSOS-
			 Compliance De-emphasis: -6dB
		LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-,
EqualizationPhase1-
			 EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
		Address: 00000000feeff00c  Data: 41a1
	Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1
Len=010 <?>
	Capabilities: [150 v1] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF-
MalfTLP- ECRC- UnsupReq- ACSViol-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF-
MalfTLP- ECRC- UnsupReq- ACSViol-
		UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+
MalfTLP+ ECRC- UnsupReq- ACSViol-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
		AERCap:	First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
	Kernel driver in use: snd_hda_intel

~$ sudo lsmod | grep snd
snd_hda_codec_hdmi     30783  1
snd_hda_codec_realtek   188858  1
snd_hda_intel          26345  0
snd_hda_codec          78031  3
snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
snd_hwdep              13186  1 snd_hda_codec
snd_pcm                63900  3
snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi
snd_page_alloc         13003  2 snd_pcm,snd_hda_intel
snd_seq                45093  0
snd_seq_device         13176  1 snd_seq
snd_timer              22917  2 snd_seq,snd_pcm
snd                    52850  9
snd_timer,snd_seq_device,snd_seq,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
soundcore              13065  1 snd

~$ sudo dmesg | grep snd
[   40.024353] snd_hda_intel 0000:00:1b.0: irq 46 for MSI/MSI-X
[   40.024388] snd_hda_intel 0000:00:1b.0: setting latency timer to 64
[   40.097432] snd_hda_intel 0000:01:00.1: irq 47 for MSI/MSI-X
[   40.097450] snd_hda_intel 0000:01:00.1: setting latency timer to 64
~$ sudo dmesg | grep sound
[   40.097239] input: HDA Intel PCH Headphone as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input6
[   40.135978] input: HD-Audio Generic HDMI/DP,pcm=3 as
/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input7

~$ cat /var/log/syslog | grep audio
Nov  9 08:24:05 Stoertebecker pulseaudio[6857]: [pulseaudio]
server-lookup.c: Unable to contact D-Bus:
org.freedesktop.DBus.Error.NoServer: Failed to connect to socket
/tmp/dbus-CHYLvWugRI: Connection refused
Nov  9 08:24:05 Stoertebecker pulseaudio[6857]: [pulseaudio] main.c:
Unable to contact D-Bus: org.freedesktop.DBus.Error.NoServer: Failed to
connect to socket /tmp/dbus-CHYLvWugRI: Connection refused
Nov  9 08:24:05 Stoertebecker pulseaudio[6865]: [pulseaudio] pid.c:
Daemon already running.
Nov  9 08:24:05 Stoertebecker rtkit-daemon[4010]: Successfully made
thread 6867 of process 6867 (/usr/bin/pulseaudio) owned by '1000' high
priority at nice level -11.
Nov  9 08:24:05 Stoertebecker pulseaudio[6867]: [pulseaudio] pid.c:
Daemon already running.
Nov  9 08:24:05 Stoertebecker rtkit-daemon[4010]: Successfully made
thread 6869 of process 6869 (/usr/bin/pulseaudio) owned by '1000' high
priority at nice level -11.
Nov  9 08:24:05 Stoertebecker pulseaudio[6869]: [pulseaudio] pid.c:
Daemon already running.
Nov  9 08:24:05 Stoertebecker rtkit-daemon[4010]: Successfully made
thread 6871 of process 6871 (/usr/bin/pulseaudio) owned by '1000' high
priority at nice level -11.
Nov  9 08:24:05 Stoertebecker pulseaudio[6871]: [pulseaudio] pid.c:
Daemon already running.
Nov  9 08:24:05 Stoertebecker rtkit-daemon[4010]: Successfully made
thread 6873 of process 6873 (/usr/bin/pulseaudio) owned by '1000' high
priority at nice level -11.
Nov  9 08:24:05 Stoertebecker pulseaudio[6873]: [pulseaudio] pid.c:
Daemon already running.
root@Stoertebecker:/home/simon# cat /var/log/syslog | grep pulse
Nov  9 08:24:05 Stoertebecker pulseaudio[6857]: [pulseaudio]
server-lookup.c: Unable to contact D-Bus:
org.freedesktop.DBus.Error.NoServer: Failed to connect to socket
/tmp/dbus-CHYLvWugRI: Connection refused
Nov  9 08:24:05 Stoertebecker pulseaudio[6857]: [pulseaudio] main.c:
Unable to contact D-Bus: org.freedesktop.DBus.Error.NoServer: Failed to
connect to socket /tmp/dbus-CHYLvWugRI: Connection refused
Nov  9 08:24:05 Stoertebecker pulseaudio[6865]: [pulseaudio] pid.c:
Daemon already running.
Nov  9 08:24:05 Stoertebecker rtkit-daemon[4010]: Successfully made
thread 6867 of process 6867 (/usr/bin/pulseaudio) owned by '1000' high
priority at nice level -11.
Nov  9 08:24:05 Stoertebecker pulseaudio[6867]: [pulseaudio] pid.c:
Daemon already running.
Nov  9 08:24:05 Stoertebecker rtkit-daemon[4010]: Successfully made
thread 6869 of process 6869 (/usr/bin/pulseaudio) owned by '1000' high
priority at nice level -11.
Nov  9 08:24:05 Stoertebecker pulseaudio[6869]: [pulseaudio] pid.c:
Daemon already running.
Nov  9 08:24:05 Stoertebecker rtkit-daemon[4010]: Successfully made
thread 6871 of process 6871 (/usr/bin/pulseaudio) owned by '1000' high
priority at nice level -11.
Nov  9 08:24:05 Stoertebecker pulseaudio[6871]: [pulseaudio] pid.c:
Daemon already running.
Nov  9 08:24:05 Stoertebecker rtkit-daemon[4010]: Successfully made
thread 6873 of process 6873 (/usr/bin/pulseaudio) owned by '1000' high
priority at nice level -11.
Nov  9 08:24:05 Stoertebecker pulseaudio[6873]: [pulseaudio] pid.c:
Daemon already running.


~$ speaker-test -D null -l 2

speaker-test 1.0.25

Playback device is null
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 1 to 206158430
Period size range from 0 to 206158431
Using max buffer size 206158428
Periods = 4
was set period_size = 51539607
was set buffer_size = 206158428
 0 - Front Left
Time per period = 0.276256
 0 - Front Left
Time per period = 0.248782
~$ speaker-test -D pulse -l 2

speaker-test 1.0.25

Playback device is pulse
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

Playback open error: -111,Connection refused
~$ speaker-test -D default -l 2

speaker-test 1.0.25

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
 0 - Front Left
Time per period = 2.836055
 0 - Front Left
Time per period = 2.986616
~$ speaker-test -D sysdefault -l 2

speaker-test 1.0.25

Playback device is sysdefault
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
 0 - Front Left
Time per period = 2.836198
 0 - Front Left
Time per period = 2.986622
~$ speaker-test -D front -l 2

speaker-test 1.0.25

Playback device is front
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument
~$ speaker-test -D surround40 -l 2

speaker-test 1.0.25

Playback device is surround40
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument
~$ speaker-test -D surround50 -l 2

speaker-test 1.0.25

Playback device is surround50
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 22 to 5461
Period size range from 11 to 2730
Using max buffer size 5460
Periods = 4
was set period_size = 1365
was set buffer_size = 5460
 0 - Front Left
Time per period = 2.872174
 0 - Front Left
Time per period = 2.985909
~$ speaker-test -D surround51 -l 2

speaker-test 1.0.25

Playback device is surround51
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument
~$ speaker-test -D surround71 -l 2

speaker-test 1.0.25

Playback device is surround71
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument
~$ speaker-test -D iec958 -l 2

speaker-test 1.0.25

Playback device is iec958
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument

speaker-test 1.0.25

Playback device is hdmi
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Playback open error: -2,No such file or directory


Reply to: