Bug 12440
Summary: | No sound from speakers in HP dv5, headphones work correctly | ||
---|---|---|---|
Product: | Drivers | Reporter: | Giuseppe Bilotta (giuseppe.bilotta) |
Component: | Sound(ALSA) | Assignee: | Takashi Iwai (tiwai) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | erry1974, hyc |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.28 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Attachments: |
alsa-info output
lscpi output Patch to add the quirk for my system alsa-info output from working config Fix HP dv5 preset model alsa-info.sh output with the dv5 patch alsa-info with patch for dv5 applied alsa-info output with Takashi's patch for dv5 applied (plain text) alsa-info output with Takashi's path applied and model=hp-dv5 option |
Description
Giuseppe Bilotta
2009-01-12 20:34:18 UTC
Please run alsa-info.sh with --no-upload option, and attach the generated file to here. The script is found in http://www.alsa-project.org/alsa-info.sh Then, try to pass model=hp-m4. This will set the GPIO. Created attachment 19768 [details]
alsa-info output
I'm attaching the alsa-info output for 2.6.28. I'll try the option and see if it fixes the problem.
Created attachment 19769 [details]
lscpi output
model=hp-m4 does indeed fix the output from the main speakers. I'm attaching the lspci output for my sound card. If I understand the workings correctly, I can probably cook up a patch to fix the problem
Created attachment 19771 [details]
Patch to add the quirk for my system
The attached git patch adds a quirk for my machine.
Thanks, applied now to sound git tree. Could you attach alsa-info output on the working status, too? Created attachment 19773 [details]
alsa-info output from working config
Here it is. This is from v2.6.29-rc1-191-g2db8ebb which is latest upstream from Linus plus the patch I attached here.
Thanks. As mentioned, the patch was already applied. Will be included in the next pull request. Actually, there seems to be a problem: when the model is set to hp-m4, either manually (using the model= option on the module before the patch) or automatically (patched module), the integrated speakers are enabled but the integrated mic is disabled, so I can listen to sounds but I cannot record or use Skype. So this fix is either wrong or not adequate. Sorry for the noise, I only tested the sound output. Reopening the bug. So the problem is currently the following: * without the patch, and without setting hp-m4 as model, the front mic (integrated) is present, can be selected as input source and it works correctly, but the integrated speakers don't produce any sound, although the headphones work correctly * with the patch, or by setting the hp-m4 model manually, the speakers produce sound but the integrated mic is not seen anymore and it's not offered as input source; I don't have an external mic to test with OK, what about the patch below? Created attachment 19782 [details]
Fix HP dv5 preset model
Created attachment 19793 [details]
alsa-info.sh output with the dv5 patch
The patch seems to work correctly (tested on latest git). I'm also attaching the output from alsa-info.sh with this patch applied.
Hi Takashi! I have exacly the same problem of Giuseppe, using a dv4 pavilion series... I tried your patch for dv5 series without success, internal microphones don't work, instead external mic and speakers work fine for me. I am using "options model=hp-m4 and enable-msi=1" for the module. kernel is a vanilla 2.6.28 running in ubuntu 8.10 I think that a quirk is needed also for dv4 series... I have added an attachment with alsa-information Thanks for your attention, Errico Created attachment 19875 [details]
alsa-info with patch for dv5 applied
Please add a quirk also for DV4 series :-)
Created attachment 19877 [details]
alsa-info output with Takashi's patch for dv5 applied (plain text)
same attachment in plain text... hi!
With my dv5 patch, pass model=hp-dv5 instead of hp-m4, and reboot once after that to restore the BIOS status. At best, try sound.git tree below: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git master You can pull master branch onto Linus git tree. Hi Takashi, I have tried model=hp-dv5 but without success... The behaviour is the same that model=hp-m4 (internal mic don't works). Thanks, Errico Did you switch "Input Source" mixer between Mic and Line? Also please give alsa-info output with model=hp-dv5. Hi Takashi, good news after a little troubleshooting... Passing model=hp-dv5 it's possible enable "digital input" source in the mixer settings (I use GNOME panel). This is not possible with model=hp-m4 option. Selecting "digital Mic1" in "digital input" integrated mic now works! This is the only setting which works, using digital mic2 I have no voice at all. In "input source" (without "digital") is selectable only "mic". Now "Line" option is no present passing hp-dv5 option. BTW, the audio-card is usable only with "enable-msi=1", without this, I have a terrible looping audio (with hp-dv5 or hp-m4). External mic works allways fine. I'am attaching alsa-utils output (model=hp-dv5) Thanks Created attachment 19935 [details]
alsa-info output with Takashi's path applied and model=hp-dv5 option
Internal mic of dv4 works using "Digital input" source, setting "Digital mic 1"
Thanks. Now I committed the patch to set the proper model (hp-dv5) for your device to sound git tree. It'll be included in the next pull request. Let's close the bug now. Fyi, HP makes two parallel lines of laptops, one with Intel CPU and one with AMD. I have a dv5z (AMD) and the audio is also not working on it with kernel 2.6.28.2. I added model=hp-dv5 to my modprobe options and it works now. The PCI ID is 0x3600, not 0x3603: + SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x3600, + "HP dv5", STAC_HP_DV5), The entry is added now to sound git tree. Thanks. |