Sound card takes time to be initialised

Bug #987298 reported by Matthieu Baerts
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux
Fix Released
Medium
linux (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

It seems my sound card takes time to be initialised. `dmesg` shows me a lot of lines with: "hda-intel: spurious response". After that I have this line: "hda_intel: azx_get_response timeout, switching to single_cmd mode" and then a lot of lines with this message: "hda-codec: out of range" Note that the sound work but it's a bit annoying because ligthdm is frozen until the sound works...

According to this document:
 => http://www.mjmwired.net/kernel/Documentation/sound/alsa/HD-Audio.txt#81
It seems that it's a knowing bug but how can I help to fix it? :)

WORKAROUND: I can load snd-hda-intel module with this option:
probe_mask=0x103

or by adding this line in /etc/modprobe.d/alsa-base.conf :
options snd-hda-intel probe_mask=0x103

I still have no sound at start-up (the first 30-40 seconds) and I still have a lot of errors messages with dmesg but now lightdm is no longer frozen for a few time.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-3.2.0-23-generic 3.2.0-23.36
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu5
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC269VB Analog [ALC269VB Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: mbaerts 2064 F.... pulseaudio
 /dev/snd/controlC0: mbaerts 2064 F.... pulseaudio
 /dev/snd/pcmC0D0p: mbaerts 2064 F...m pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf1e00000 irq 49'
   Mixer name : 'Realtek ALC269VB'
   Components : 'HDA:10ec0269,1b0a205a,00100100'
   Controls : 26
   Simple ctrls : 14
Card1.Amixer.info:
 Card hw:1 'HDMI'/'HDA ATI HDMI at 0xf0030000 irq 50'
   Mixer name : 'ATI R6xx HDMI'
   Components : 'HDA:1002aa01,00aa0100,00100100'
   Controls : 6
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Mon Apr 23 15:28:19 2012
HibernationDevice: RESUME=UUID=06229bec-927d-4cfa-9a82-f9949d5151ca
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110803.1)
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
 Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
 Bus 001 Device 003: ID 064e:a130 Suyin Corp.
MachineType: Medion P662X
ProcFB:
 0 radeondrmfb
 1 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-23-generic root=UUID=e7e166e5-3bef-4daf-88a1-5368a679c4a0 ro pcie_aspm=force
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-23-generic N/A
 linux-backports-modules-3.2.0-23-generic N/A
 linux-firmware 1.79
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: yes
SourcePackage: linux
StagingDrivers: mei
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/13/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 202
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: H36QM
dmi.board.vendor: To be filled by O.E.M.
dmi.board.version: 1.0
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 10
dmi.chassis.vendor: PEGATRON CORPORATION
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr202:bd04/13/2010:svnMedion:pnP662X:pvr1.0:rvnTobefilledbyO.E.M.:rnH36QM:rvr1.0:cvnPEGATRONCORPORATION:ct10:cvr1.0:
dmi.product.name: P662X
dmi.product.version: 1.0
dmi.sys.vendor: Medion

Revision history for this message
Matthieu Baerts (matttbe) wrote :
Revision history for this message
Matthieu Baerts (matttbe) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthieu Baerts (matttbe) wrote :

As workaround, I can load snd-hda-intel module with this option: probe_mask=0x103

(or by adding this line:)
    options snd-hda-intel probe_mask=0x103
(at the end of this file:)
    /etc/modprobe.d/alsa-base.conf

I still have no sound at start-up (the first 30-40 seconds) and I still have a lot of errors messages with dmesg but now lightdm is no longer frozen for a few time.

Revision history for this message
Matthieu Baerts (matttbe) wrote :

This bug is maybe linked to this bug #536699 (except that it was with an old version of the kernel)

Revision history for this message
Matthieu Baerts (matttbe) wrote :

I forgot to say that lightdm was not frozen at startup on Oneiric.

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Matthieu Baerts (matttbe) wrote :

@unity-greeter team: I don't know if you can do something for that but due to this bug (Sound card takes time to be initialised), LightDM on Ubuntu Precise (but not on Oneiric) is frozen during 5 or 10 seconds at startup.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.4kernel[1] (Not a kernel in the daily directory). Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag(Only that one tag, please leave the other tags). This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.4-rc3-precise/

tags: added: needs-upstream-testing
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Matthieu Baerts (matttbe) wrote :

I also have this bug with this 3.4 version (and it's a bit worth because the previous workaround no longer works => ligthdm is still frozen during 5-10 sec at startup)

tags: added: kernel-bug-exists-upstream
removed: needs-upstream-testing
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Matthieu Baerts (matttbe) wrote :

And I also have this bug with the rc4 version ( http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.4-rc4-precise/ )

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

This issue appears to be an upstream bug, since you tested the latest upstream kernel. Would it be possible for you to open an upstream bug report at bugzilla.kernel.org [1]? That will allow the upstream Developers to examine the issue, and may provide a quicker resolution to the bug.

If you are comfortable with opening a bug upstream, It would be great if you can report back the upstream bug number in this bug report. That will allow us to link this bug to the upstream report.

[1] https://wiki.ubuntu.com/Bugs/Upstream/kernel

Changed in linux (Ubuntu):
status: Confirmed → Triaged
Changed in linux:
importance: Unknown → Medium
status: Unknown → Confirmed
Changed in linux:
status: Confirmed → Fix Released
Revision history for this message
penalvch (penalvch) wrote :

Matthieu Baerts, if you updated to the kernel enablement stack in 12.04.3, does this address your issue?

no longer affects: unity-greeter (Ubuntu)
tags: added: bios-outdated-009 needs-upstream-testing regression-potential
description: updated
tags: added: regression-release
removed: regression-potential
Changed in linux (Ubuntu):
status: Triaged → Incomplete
importance: Medium → Low
Revision history for this message
Matthieu Baerts (matttbe) wrote :

@Christopher: This bug has been fixed in the kernel 3.5, so yes, it should be fixed when using Ubuntu 12.04.3 with the kernel 3.8.
I guess I can change the status to 'Fix Released'

Note that with this new kernel, there is another bug: LP: #1170917

Changed in linux (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Matthieu Baerts (matttbe) wrote :

PS: sorry to not have updated this status when the bug was fixed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.