Problems with Intel HDA driver
On my new laptop there were no sound with snd-hda-intel driver, so I tried to change model parameter. It seems that with model=hp-m4 my soundcard mostly works (except that main speakers still play when I plug headphones).
I've attached my alsa-info.txt script.
Signature · 1 line
Andrius Štikonas
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Mon, 14 Sep 2009 14:33:34 +0300,
Quoted 4 lines · Andrius Štikonas
On my new laptop there were no sound with snd-hda-intel driver, so I tried to change model parameter. It seems that with model=hp-m4 my soundcard mostly works (except that main speakers still play when I plug headphones).
Try rather model=hp-dv5. The speaker mute issue could be fixed via enable_msi=1 option.
Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Takashi Iwai wrote On 14-09-2009 15:25:
Quoted 12 lines
At Mon, 14 Sep 2009 14:33:34 +0300,
Quoted 4 lines · Andrius Štikonas
On my new laptop there were no sound with snd-hda-intel driver, so I tried to change model parameter. It seems that with model=hp-m4 my soundcard mostly works (except that main speakers still play when I plug headphones).
Try rather model=hp-dv5. The speaker mute issue could be fixed via enable_msi=1 option.
grr another dv6. Yes hp-dv5 works on some dv6's but apparently not on everyone of them. Also I managed to get sound without passing dv5 but enabling EAPD through hda-analyzer.
I'll try enable_msi=1 to see what happens.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Mon, 14 Sep 2009 15:36:54 +0300,
Quoted 10 lines · Ozan Çağlayan
Takashi Iwai wrote On 14-09-2009 15:25:
Quoted 8 lines
At Mon, 14 Sep 2009 14:33:34 +0300,
Quoted 4 lines · Andrius Štikonas
On my new laptop there were no sound with snd-hda-intel driver, so I tried to change model parameter. It seems that with model=hp-m4 my soundcard mostly works (except that main speakers still play when I plug headphones).
Quoted 7 lines
Quoted 4 lines
Try rather model=hp-dv5. The speaker mute issue could be fixed via enable_msi=1 option.
grr another dv6. Yes hp-dv5 works on some dv6's but apparently not on everyone of them. Also I managed to get sound without passing dv5 but enabling EAPD through hda-analyzer.
Yeah, I think we can add EAPD handling as default for IDT92HD71xx codecs. I've never seen machines that can't live with GPIO0 bit up.
Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Takashi Iwai wrote On 14-09-2009 15:36:
Quoted 4 lines
Yeah, I think we can add EAPD handling as default for IDT92HD71xx codecs. I've never seen machines that can't live with GPIO0 bit up.
enable_msi doesn't seem to affect the auto-muting problem. I played with every single node in hda-analyzer but can't get auto-mute work. I can manually mute the HP output and the internal speakers by checking/unchecking OUT checkboxes on relevant NIDs. There's a 8xn matrix for GPIO settings, I played with them as well to set unsol but nope.
I want to remember that dell-m4-1 makes automute work but breaks the mixer channels:
http://www.spinics.net/lists/alsa-devel/msg26714.html
Err, I know that I didn't answer the last question in the thread as I'm a little bit lost in the NID pool and didn't have time to investigate further.
At Mon, 14 Sep 2009 16:15:02 +0300,
Quoted 13 lines · Ozan Çağlayan
Takashi Iwai wrote On 14-09-2009 15:36:
Quoted 4 lines
Yeah, I think we can add EAPD handling as default for IDT92HD71xx codecs. I've never seen machines that can't live with GPIO0 bit up.
enable_msidoesn't seem to affect the auto-muting problem. I played with every single node in hda-analyzer but can't get auto-mute work. I can manually mute the HP output and the internal speakers by checking/unchecking OUT checkboxes on relevant NIDs. There's a 8xn matrix for GPIO settings, I played with them as well to set unsol but nope.
Quoted 8 lines
I want to remember that dell-m4-1 makes automute work but breaks the mixer channels:
http://www.spinics.net/lists/alsa-devel/msg26714.html
Err, I know that I didn't answer the last question in the thread as I'm a little bit lost in the NID pool and didn't have time to investigate further.
Could you check whether this still valid?
Basically the model option doesn't change the auto-mute behavior. It just changes which pin to be detected and which pin to mute. So, if model=dell-m4-1 makes the auto-muting working, it means that the BIOS setup is broken.
Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Mon, 14 Sep 2009 15:15:53 +0200,
Quoted 25 lines · I wrote:
At Mon, 14 Sep 2009 16:15:02 +0300,
Quoted 13 lines · Ozan Çağlayan
Takashi Iwai wrote On 14-09-2009 15:36:
Quoted 4 lines
Yeah, I think we can add EAPD handling as default for IDT92HD71xx codecs. I've never seen machines that can't live with GPIO0 bit up.
enable_msidoesn't seem to affect the auto-muting problem. I played with every single node in hda-analyzer but can't get auto-mute work. I can manually mute the HP output and the internal speakers by checking/unchecking OUT checkboxes on relevant NIDs. There's a 8xn matrix for GPIO settings, I played with them as well to set unsol but nope.Quoted 8 lines
I want to remember that dell-m4-1 makes automute work but breaks the mixer channels:
http://www.spinics.net/lists/alsa-devel/msg26714.html
Err, I know that I didn't answer the last question in the thread as I'm a little bit lost in the NID pool and didn't have time to investigate further.
Quoted 6 lines
Could you check whether this still valid?
Basically the model option doesn't change the auto-mute behavior. It just changes which pin to be detected and which pin to mute. So, if model=dell-m4-1 makes the auto-muting working, it means that the BIOS setup is broken.
I looked through alsa-info output now, and found the culprit. NID 0x0f is set as a line-out, and currently the driver doesn't don't do auto-muting for line-out unless a headphone is present. Changing it to a headphone should fix. Or you can give hp_detect=1 hint via sysfs and reconfigure.
Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Takashi Iwai wrote On 14-09-2009 16:23:
Quoted 7 lines
I looked through alsa-info output now, and found the culprit. NID
0x0fis set as a line-out, and currently the driver doesn't don't do auto-muting for line-out unless a headphone is present. Changing it to a headphone should fix. Or you can give hp_detect=1 hint via sysfs and reconfigure.
Yes! hp_detect=1 worked altogether with passing hp-dv5 model. I'm ready to test any patch you suggest.
At Mon, 14 Sep 2009 16:41:10 +0300,
Quoted 10 lines · Ozan Çağlayan
Takashi Iwai wrote On 14-09-2009 16:23:
Quoted 7 lines
I looked through alsa-info output now, and found the culprit. NID
0x0fis set as a line-out, and currently the driver doesn't don't do auto-muting for line-out unless a headphone is present. Changing it to a headphone should fix. Or you can give hp_detect=1 hint via sysfs and reconfigure.
Quoted 2 lines
Yes! hp_detect=1 worked altogether with passing hp-dv5 model. I'm ready to test any patch you suggest.
Good to hear. The final patch is already merged to sound git tree, and a new snapshot tarball is being created and updated now. FWIW, the essential change is below.
thanks,
Takashi
---
From 6e34c033210bb86b3f5f45fd6497f74150bdf620 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <[email protected]>
Date: Mon, 14 Sep 2009 15:42:18 +0200
Subject: [PATCH] ALSA: hda - Add support for HP dv6
Add the quirk entry for HP dv6. Also add a workaround for the headphone detection by setting hp_detect=1 beforehand. Without this, the driver won't do auto-muting because BIOS doesn't give any HP pin but only a line-out pin.
--- sound/pci/hda/patch_sigmatel.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
sound/pci/hda/patch_sigmatel.c +7 -0
@@ -1690,6 +1690,8 @@ static struct snd_pci_quirk stac92hd71bxx_cfg_tbl[] = { "HP mini 1000", STAC_HP_M4),SND_PCI_QUIRK (PCI_VENDOR_ID_HP ,0x361b ,"HP HDX" ,STAC_HP_HDX ),/* HDX16 */ +SND_PCI_QUIRK_MASK (PCI_VENDOR_ID_HP ,0xfff0 ,0x3620 , +"HP dv6" ,STAC_HP_DV5 ),SND_PCI_QUIRK_MASK (PCI_VENDOR_ID_HP ,0xfff0 ,0x7010 ,"HP" ,STAC_HP_DV5 ), SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x0233,
@@ -5383,6 +5385,11 @@ again:case STAC_HP_DV5 :snd_hda_codec_set_pincfg (codec,0x0d ,0x90170010 );stac92xx_auto_set_pinctl (codec,0x0d ,AC_PINCTL_OUT_EN ); +/* HP dv6 gives the headphone pin as a line-out. Thus we +* need to set hp_detect flag here to force to enable HP +* detection. +*/ + spec->hp_detect =1 ;break ;case STAC_HP_HDX : spec->num_dmics =1 ;
Signature · 6 lines
1.6.4.2 _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Takashi Iwai wrote On 14-09-2009 16:46:
Quoted 13 lines
At Mon, 14 Sep 2009 16:41:10 +0300,
Quoted 10 lines · Ozan Çağlayan
Takashi Iwai wrote On 14-09-2009 16:23:
Quoted 8 lines
I looked through alsa-info output now, and found the culprit. NID
0x0fis set as a line-out, and currently the driver doesn't don't do auto-muting for line-out unless a headphone is present. Changing it to a headphone should fix. Or you can give hp_detect=1 hint via sysfs and reconfigure.
Quoted 9 lines
Quoted 3 lines
Yes! hp_detect=1 worked altogether with passing hp-dv5 model. I'm ready to test any patch you suggest.
Good to hear. The final patch is already merged to sound git tree, and a new snapshot tarball is being created and updated now. FWIW, the essential change is below.
Ok tested today's snapshot, it works like a charm, thanks again.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Tue, 15 Sep 2009 12:04:38 +0300,
Quoted 19 lines · Ozan Çağlayan
Takashi Iwai wrote On 14-09-2009 16:46:
Quoted 17 lines
At Mon, 14 Sep 2009 16:41:10 +0300,
Quoted 13 lines · Ozan Çağlayan
Takashi Iwai wrote On 14-09-2009 16:23:
Quoted 8 lines
I looked through alsa-info output now, and found the culprit. NID
0x0fis set as a line-out, and currently the driver doesn't don't do auto-muting for line-out unless a headphone is present. Changing it to a headphone should fix. Or you can give hp_detect=1 hint via sysfs and reconfigure.Yes! hp_detect=1 worked altogether with passing hp-dv5 model. I'm ready to test any patch you suggest.
Quoted 7 lines
Quoted 5 lines
Good to hear. The final patch is already merged to sound git tree, and a new snapshot tarball is being created and updated now. FWIW, the essential change is below.
Ok tested today's snapshot, it works like a charm, thanks again.
Great. Thank you guys for testing!
Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi Takashi,
I just updated my driver and libs to 1.0.21 to see whether this is fixed. Unfortunately, when I plug my headphones, the laptop speakers are still playing.
http://www.alsa-project.org/db/?f=c0082231c70ef69de999506f3d59dec0c0cdb633
Quoted 41 lines · Takashi Iwai
At Mon, 14 Sep 2009 15:15:53 +0200,
Quoted 23 lines · I wrote:
At Mon, 14 Sep 2009 16:15:02 +0300,
Quoted 11 lines · Ozan Çağlayan
Takashi Iwai wrote On 14-09-2009 15:36:
Quoted 2 lines
Yeah, I think we can add EAPD handling as default for IDT92HD71xx codecs. I've never seen machines that can't live with GPIO0 bit up.
enable_msidoesn't seem to affect the auto-muting problem. I played with every single node in hda-analyzer but can't get auto-mute work. I can manually mute the HP output and the internal speakers by checking/unchecking OUT checkboxes on relevant NIDs. There's a 8xn matrix for GPIO settings, I played with them as well to set unsol but nope.Quoted 8 lines
I want to remember that dell-m4-1 makes automute work but breaks the mixer channels:
http://www.spinics.net/lists/alsa-devel/msg26714.html
Err, I know that I didn't answer the last question in the thread as I'm a little bit lost in the NID pool and didn't have time to investigate further.
Quoted 6 lines
Could you check whether this still valid?
Basically the model option doesn't change the auto-mute behavior. It just changes which pin to be detected and which pin to mute. So, if model=dell-m4-1 makes the auto-muting working, it means that the BIOS setup is broken.
I looked through alsa-info output now, and found the culprit. NID
0x0fis set as a line-out, and currently the driver doesn't don't do auto-muting for line-out unless a headphone is present. Changing it to a headphone should fix. Or you can give hp_detect=1 hint via sysfs and reconfigure.Takashi
Signature · 8 lines
Munzir Taha Telecommunications and Electronics Engineer Master CIW Designer, ICDL, MOUS, Linux+, LPI, SCSA Riyadh, SA _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel