[jaunty] [regression] - sound does not work {hp hdx18-1080eg} {HDA Intel}

Bug #332479 reported by tankdriver
This bug report is a duplicate of:  Bug #316125: [Jaunty] HDA-Intel - no sound. Edit Remove
40
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ALSA driver
Unknown
Unknown
linux (Ubuntu)
Confirmed
Medium
Ubuntu Kernel Team
Nominated for Jaunty by Necrosis
Nominated for Karmic by Necrosis

Bug Description

sound worked perfectly in intrepid.

Using daily-live live-system 20090220 amd64.

Here are some commands and outputs:
{found in a german-loco wiki, audioproblemdescription}

----------------------------------------------------------------------------
ubuntu@ubuntu:~$ lsb_release -d
Description: Ubuntu jaunty (development branch)
ubuntu@ubuntu:~$ uname -r
2.6.28-8-generic
ubuntu@ubuntu:~$ cat /proc/asound/cards
 0 [Intel ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xdd000000 irq 22
ubuntu@ubuntu:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
ubuntu@ubuntu:~$ aplay /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
ubuntu@ubuntu:~$ lspci | grep -i audio
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
ubuntu@ubuntu:~$ ps -C esd
  PID TTY TIME CMD
ubuntu@ubuntu:~$ ps -C arts
  PID TTY TIME CMD
ubuntu@ubuntu:~$ ps -C pulseaudio
  PID TTY TIME CMD
ubuntu@ubuntu:~$ grep "^audio" /etc/group | grep "$USER" | wc -l
0
ubuntu@ubuntu:~$ lsmod | grep "snd"
snd_hda_intel 545716 1
snd_pcm_oss 52224 0
snd_mixer_oss 24960 1 snd_pcm_oss
snd_pcm 98952 2 snd_hda_intel,snd_pcm_oss
snd_seq_dummy 11524 0
snd_seq_oss 41856 0
snd_seq_midi 15744 0
snd_rawmidi 33920 1 snd_seq_midi
snd_seq_midi_event 16512 2 snd_seq_oss,snd_seq_midi
snd_seq 66144 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 34064 2 snd_pcm,snd_seq
snd_seq_device 16276 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 78792 11 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 16800 1 snd
snd_page_alloc 18704 2 snd_hda_intel,snd_pcm
ubuntu@ubuntu:~$ head -n 3 /proc/asound/card0/codec#0
Codec: IDT 92HD71B7X
Address: 0
Vendor Id: 0x111d76b2
ubuntu@ubuntu:~$ head -n 3 /proc/asound/card0/codec97#0/ac97#0-0
head: cannot open `/proc/asound/card0/codec97#0/ac97#0-0' for reading: No such file or directory
ubuntu@ubuntu:~$ head -n 3 /proc/asound/card0/codec97#0/ac97#0-0+regs
head: cannot open `/proc/asound/card0/codec97#0/ac97#0-0+regs' for reading: No such file or directory
ubuntu@ubuntu:~$ asoundconf list
Names of available sound cards:
Intel
ubuntu@ubuntu:~$ cat ~/.asoundrc
cat: /home/ubuntu/.asoundrc: No such file or directory
ubuntu@ubuntu:~$ cat ~/.asoundrc.asoundconf
cat: /home/ubuntu/.asoundrc.asoundconf: No such file or directory
----------------------------------------------------------------------------

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
MachineType: Hewlett-Packard HP HDX 18 Notebook PC
NonfreeKernelModules: nvidia
Package: linux-image-2.6.28-8-generic 2.6.28-8.24
ProcCmdLine: BOOT_IMAGE=/casper/vmlinuz noprompt cdrom-detect/try-usb=true file=/cdrom/preseed/hostname.seed boot=casper initrd=/casper/initrd.gz quiet splash --
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.28-8.24-generic
SourcePackage: linux

Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :
Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

I think this is more a pulseaudio issue. (modules are loaded correctly)

Revision history for this message
Daniel T Chen (crimsun) wrote :

Please execute the alsa-info.sh script referenced from https://wiki.ubuntu.com/DebuggingSoundProblems and attach the URL here.

Changed in pulseaudio:
status: New → Incomplete
Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :
Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

Tested with daily-live/20090225:
Sound still does not work, but something changed:
At startup, the notebookspekers usually make a quiet "click" (i think speakers initiated)
With the today's live-cd there was no "click".
and
In the GUI, there is now only one Audiodevice called "Null Output"

(ok, that are no real facts, but I think, it might can help)

Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

Now tested with daily-live 20090301 (After Jaunty alpha 5 release!)
Sound don't work. (But please ignore my previous comment, The described things are gone)

Here is the output of dmesg today. "dmesg_out.txt" (attached)

I think there are 2 "strange" lines:
...
[ 35.032009] hda_intel: azx_get_response timeout, switching to polling mode: last cmd=0x00ef000c
 ...
[ 47.205583] warning: `pulseaudio' uses 32-bit capabilities (legacy support in use)
...

If I can do anything helpful, please ask!

Changed in linux:
status: Incomplete → New
Revision history for this message
chris (christoph-plattner-deactivatedaccount) wrote :

Hello to all !

I solved the problem on my HP HDX16.
I patched the kernel driver "./sound/pci/hda/patch_sigmatel.c".
The problem is, that the linux-2.6.28 does not recognize the HP codecs well,
and the 2.6.27 did something different, so that the codec was initized per
accident (I have to reanalyze the 2.6.27 case, why it worked there).

Anyway, I added the model "hp-hdx" and added the PCI recognition for
my IDT 82HD71B7X codec.

In a second step I added the MUTE LED stuff !!!!!!!!

I like it now, the mute LED changes to orange, when mute and back to
white, when unmuted. The LED is also handled in the same C file, so
only one file has to be patched.

I already put my patch to ALSA, but there was no reaction yet. I can
provide my patch here too, but I have it @home, now I am @work.
In the botton I added the patch out of the ALSA bugtrack page,
identations may be corrrupt here, sorry ...

I also got feedback from one tester of my patch, that it was not wokring
on his HDX18. I have a HX16.

Con you provide me an lspci -v of your HDX18 sound device !
I want to check, if the subvendor/subdevice matches.

Christoph

Patch (copied from alsa issue 4418, created by me):
-------------------------------------------------------------------------------

diff -u linux-source-2.6.28-diff-base/sound/pci/hda/patch_sigmatel.c linux-source-2.6.28/sound/pci/hda/patch_sigmatel.c
--- linux-source-2.6.28-diff-base/sound/pci/hda/patch_sigmatel.c 2009-02-18 19:48:30.000000000 +0100
+++ linux-source-2.6.28/sound/pci/hda/patch_sigmatel.c 2009-02-23 00:00:43.000000000 +0100
@@ -91,6 +91,7 @@
        STAC_DELL_M4_3,
        STAC_HP_M4,
        STAC_HP_DV5,
+ STAC_HP_HDX,
        STAC_92HD71BXX_MODELS
 };

@@ -1760,6 +1761,7 @@
        [STAC_DELL_M4_3] = dell_m4_3_pin_configs,
        [STAC_HP_M4] = NULL,
        [STAC_HP_DV5] = NULL,
+ [STAC_HP_HDX] = NULL,
 };

 static const char *stac92hd71bxx_models[STAC_92HD71BXX_MODELS] = {
@@ -1769,6 +1771,7 @@
        [STAC_DELL_M4_3] = "dell-m4-3",
        [STAC_HP_M4] = "hp-m4",
        [STAC_HP_DV5] = "hp-dv5",
+ [STAC_HP_HDX] = "hp-hdx",
 };

 static struct snd_pci_quirk stac92hd71bxx_cfg_tbl[] = {
@@ -1785,6 +1788,8 @@
                      "HP dv5", STAC_HP_DV5),
        SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x361a,
                                "unknown HP", STAC_HP_M4),
+ SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x361b,
+ "HP HDX", STAC_HP_HDX),
        SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x0233,
                                "unknown Dell", STAC_DELL_M4_1),
        SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x0234,
@@ -4743,6 +4748,11 @@
                spec->num_smuxes = 0;
                spec->num_dmuxes = 0;
                break;
+ case STAC_HP_HDX:
+ spec->num_dmics = 1;
+ spec->num_dmuxes = 1;
+ spec->num_smuxes = 0;
+ break;
        default:
                spec->num_dmics = STAC92HD71BXX_NUM_DMICS;
                spec->num_smuxes = ARRAY_SIZE(stac92hd71bxx_smux_nids);

Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

thanks, chris

this sounds very good.
I have not the ability to compile my own patched ubuntu kernel (This is too high for me)
..Waiting for a official fix.

Changed in linux:
status: New → Confirmed
Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

@chris:
Here is the required lspci -v part:
(installed intrepid system)

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
 Subsystem: Hewlett-Packard Company Device 3610
 Flags: bus master, fast devsel, latency 0, IRQ 22
 Memory at dd000000 (64-bit, non-prefetchable) [size=16K]
 Capabilities: <access denied>
 Kernel driver in use: HDA Intel
 Kernel modules: snd-hda-intel

Revision history for this message
chris (christoph-plattner-deactivatedaccount) wrote :

Hello tankdriver,

don't worry about kernel build !
I found a simple method not breaking my system. Get the kernel sources
  apt-get install linux-source-2.6.28
then unpack that tar ball in "/usr/src" (where you find it), then copy the
/boot/config-2.6.28-8-generic (or whatever) to ".config" in the linux source
tree. There do "make oldconfig" and "make all". (Or do patching before).

After the build (may need 10-60min) copy ONLY the driver to the installed
module base (cp sound/pci/hda/snd-intel-hda.ko /lib/modules/.../kernel/sound/pci/hda)
after you copied (backup) the original module there). I work with that setup to keep
everything else of the original kernel.

So to your "lspci"
To be save, do the same with "lspci -vn". As far I can see, your codec chip is
103c:3610 (HP 3610) in "Subsystem" line, on my HDX16 there is the 361b !!!
This is interesting.
Can you also provide the "/proc/asound/card0/codec#0 and codec#2 file ?
To compare here the HW issue. May be I need to extend my patch for the HDX18.

BTW: I exteded my patch now. HDX16 sound is working, Mute Led is working and
HDMI audio is also working !

Bye
Christoph

Revision history for this message
chris (christoph-plattner-deactivatedaccount) wrote :

Hello,

With external help of HDX18 users, I found out, that the HDX18 has the SAME codec chips,
but uses a different subdevice code:

HDX16: 103c:361b
HDX18: 103c:3610

So I will add this number to the PCI QUIRKS also and provide the patch. I already contacted
the maintainer for my patch-set.

Christoph

Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

Here are the new required files.
(generated with jaunty daily-live 20090304)
Thanks.

Steve Beattie (sbeattie)
Changed in linux:
assignee: nobody → canonical-kernel-team
importance: Undecided → Medium
Revision history for this message
chris (christoph-plattner-deactivatedaccount) wrote :

Hello,

my patch is already working on HDX16 and HDX18 (another person has tested that).
I will prepare the patch to go into mainstream. If you are interested, I can send the
patch to you (or to this bug report).

Bye
Christoph

Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

Hi,

If I can apply this patch on a live-cd system, then I am very interested to test it!
(I don't want to install a alpha/beta on my productive system)
Please attach the patch to the bug report.

(I am not sure what "go into mainstream" does mean.
Did you mean the ubuntu-jaunty-dev-kernel mainstream?)

Thanks for everything

jaunty rocks! :-)

tankdriver

Revision history for this message
chris (christoph-plattner-deactivatedaccount) wrote :

Hello,

I can understand the thing with the production PC and I think in the same way.
Therefore I have managed that with a special idea !
I do not overwrite my kernel, modules, .... I build the kernel in my /usr/src/.... tree,
and then I ONLY copy my new audio module and repace that single module and let
the rest of kernel and modules untouched. This is the best model for me ....

Christoph

Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

ok,
I tired to build the kernel with the patch above in a live system. (I thought it might work)
After 15min building: Error: No space left on device (live system)
what a pity!

Can you send me the ready compiled modules? (we 've nearly the same HW and amd64)
Only for testing.

td

Revision history for this message
chris (christoph-plattner-deactivatedaccount) wrote : Re: [Bug 332479] Re: [jaunty] [regression] - sound does not work {hp hdx18-1080eg} {HDA Intel}

Let's try ...

Linux hdx 2.6.28-8-generic #28-Ubuntu SMP Fri Mar 6 00:09:20 UTC 2009
x86_64 GNU/Linux
Build was done on #26 I think, but this seems to have no impact ....

Good luck
Christoph

tankdriver wrote:
> ok,
> I tired to build the kernel with the patch above in a live system. (I thought it might work)

> After 15min building: Error: No space left on device (live system)
> what a pity!
>
> Can you send me the ready compiled modules? (we 've nearly the same HW and amd64)
> Only for testing.
>
> td
>
>

Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

ok;

I did the following:
- stop gdm
- unload sda-hda-intel
- replace the *.ko file
- load module
- start x server

IT WORKS!!! I AM LISTENING TO COOL FRESH CRYSTAL-CLEAR MUSIC RIGHT NOW!!!

Thanks to Christoph and all participants.

Thanks.

tankdriver (and all HP HDX linuxusers)

Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

What is the current "status" of this bug?
Is there any date or milestone linked to the fix?
(remember : tomorrow (March 12th) last alpha for jaunty ( https://wiki.ubuntu.com/JauntyReleaseSchedule ))
ALSA Bugreport: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4418 (thanks to Christoph)

(I'm just curios)

tankdriver

Revision history for this message
Rob Beazizo (beazizo) wrote :

I just got a new HP HDX18 laptop today. I confirmed that the attached snd-hda-intel.ko fixed my missing sound problem.

lspci
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)

Changed in linux:
status: Confirmed → Fix Committed
status: Fix Committed → In Progress
Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

For the record: This is the workaround till official fix:

_________________

Add the following line to /etc/modprobe.d/alsa-base.conf :

options snd-hda-intel model=model=hp-m4

then reboot/reload
_________________

Sound works, but microphone settings are wrong.

Revision history for this message
chris (christoph-plattner-deactivatedaccount) wrote :

Hello,

I do not know, how the process is working here ...
My fix was accepted and incorporated by the ALSA maintainer,
and therefore I think, this will go into next releases of the kernel ....
Can / shall I do something here ??

Christoph

tankdriver wrote:
> What is the current "status" of this bug?
> Is there any date or milestone linked to the fix?
> (remember : tomorrow (March 12th) last alpha for jaunty ( https://wiki.ubuntu.com/JauntyReleaseSchedule ))
> ALSA Bugreport: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4418 (thanks to Christoph)
>
> (I'm just curios)
>
> tankdriver
>
>

Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

I am not very experienced in such things.
Can you ensure, that this bug will be fixed in jaunty (before release)? then it's ok.
If not, please try to push forward the fix into jaunty. (it is not too late (alpha), This one is a known bug, and you have a working fix.)
Otherwise, every HP HDX 16/18 will get sound problems at April 23rd.
Thanks.

chis wrote:
>My fix was accepted and incorporated by the ALSA maintainer,
>and therefore I think, this will go into next releases of the kernel ....

Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

@chris:
!!!and please attach your latest version of the patch to this bug report!!!
thanks.

Changed in linux:
status: In Progress → Confirmed
Revision history for this message
chris (christoph-plattner-deactivatedaccount) wrote :

My last patch is against the GIT of ALSA, and it is NOT in
linux-2.6.29-rc7 up
to now. -rc8 is not checked. And I do not know, how to get this in 2.6.28 ?
Who has to be contacted for that ???

Christoph

tankdriver wrote:
> @chris:
> !!!and please attach your latest version of the patch to this bug report!!!
> thanks.
>
> ** Changed in: linux (Ubuntu)
> Status: In Progress => Confirmed
>
>

Changed in linux:
assignee: canonical-kernel-team → ubuntu-kernel-team
Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

I have changed the assigned team to the usual "ubuntu-kernel-team"
I don't know, why it was changed to the "canonical-kernel team". If my decision is wrong, please correct me.

The relevant persons should be notified automatically.
Please attach a link (or sg) to this report, so that a outsider can reproduce/retrace this patch.

To the developer out there:
This is a known bug, which make a sound support regression at HP HDX Notebooks.
Christoph Plattner wrote a working fix. (thanks)

Revision history for this message
Qbashi (kpt-j-t-kirk) wrote :

hi
I also have for 1 month a HP HDX X18 1180eb premium notebook (Belgium) i think it has the same sound card and
i'm having the same problems normally i work with Mandriva 2008.1 but there after installing and doing the normal updates i also have no sound the same with OpenSuse 11.1 then i installed Ubuntu 8.10 there i have sound and all is normal but when i upgrade to Ubuntu 9.04 also no sound that is all with GNOME .
If i use Opensuse , Mandriva or Kubuntu with 4.2 totally no sound .
I hope that this all will be fixed when the new official releases comes up.

Changed in alsa-driver:
status: New → Confirmed
importance: Undecided → Unknown
status: Confirmed → Unknown
Revision history for this message
VIRUS (tech-globalit) wrote :

Hi!

I have HP HDX18 1050er Premium. "No sound" problem too. This issue i'm fixed by change kernel to 2.6.30-rc2+.

Patch from chris (upper listing) for kernel 2.6.28, made in 2.6.30-rc2, see:
http://www.kernel.org/diff/diffview.cgi?file=%2Fpub%2Flinux%2Fkernel%2Fv2.6%2Ftesting%2Fpatch-2.6.30-rc2.bz2;z=8936

Will except kernel realease 2.6.30 and above.

Revision history for this message
VIRUS (tech-globalit) wrote :

More issue:

After installing Ubuntu 9.04 RC with new kernel 2.6.30-rc2, i have a nice 5.1 sound, but i faced another problem :-))) My NVIDIA graphics driver (180.44) can't install correctly. I fix it so:

# sh NVIDIA-Linux-x86_64-180.44-pkg2.run --extract-only
# cd NVIDIA-Linux-x86_64-180.44-pkg2/usr/src/nv/
# wget http://pavlinux.ru/nv/nvidia-x86_64-180.44-2.6.30-rc2.patch
# patch -p0 < nvidia-x86_64-180.44-2.6.30-rc2.patch
# cd ../../../
# ./nvidia-installer

Original fix topic: http://www.nvnews.net/vbulletin/showthread.php?p=1984696

Copy of patch in attach for this post...

Enjoy your HP Premium!

Revision history for this message
David Leal (dgleal) wrote :

Another alternative to the nvidia problem is to just cd into /usr/src/nvidia-180.44, apply the patch there before installing the new kernel, and then install the kernel. The driver will then be built automatically by dkms.

Btw, I haven't managed to make the mic work yet. And KDE is still complaining sound doesn't work (although it does).

Revision history for this message
slaged (george-tsafas) wrote :

I am having the same problems, I have hdx18 running kubuntu 9.04. I tried everything listed here to the best of my capabilities including making the old kernel and moving the files. I rebooted everytime. Still no luck :(.

savvvvvvvvvvvvve me from going back to windows :(

Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

@slaged:
have you tried to add the following line in your "/etc/modprobe.d/alsa-base.conf" :

options snd-hda-intel model=hp-m4

(the comment I made above was wrong)
This made my soundoutput work.

Revision history for this message
slaged (george-tsafas) wrote :

Tankdriver,
Thank you so much, I had a typo that I didnt realize. I have sound now! :)

Revision history for this message
sirdavesmith (sirdavesmith) wrote :

Hey Tankdriver and Chris,

I've got the same issue with My HDX 18t on Ubuntu 9.04 64bit, kernel 2.6.28-11. Sound seemed to work fine in intrepid and I can get sound through my head phones but not through the speakers. I'd like to do all the things Chris suggested but I am still pretty new to Ubuntu.

I did, however, add this line to the /etc/modprobe.d/alsa-base.conf:
 options snd-hda-intel model=hp-m4

Revision history for this message
sirdavesmith (sirdavesmith) wrote :

Scratch that, got the sound working on the speakers now, just the mute LED doesn't change. I can live with that, would be nice if I could get it workin too though. Question for other HDX users, have you been able to get to your fingerprint reader or HP Remote to work?

Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 332479] Re: [jaunty] [regression] - sound does not work {hp hdx18-1080eg} {HDA Intel}

HDX mute led has been fixed in upstream sound-2.6.git.

On Tue, May 12, 2009 at 5:20 PM, sirdavesmith <email address hidden> wrote:
> Scratch that, got the sound working on the speakers now, just the mute
> LED doesn't change.

To post a comment you must log in.