Lenovo G560 autoswitch headphone + mic not working

Bug #590756 reported by wompy
60
This bug affects 10 people
Affects Status Importance Assigned to Milestone
linux-backports-modules-2.6.32 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Hi,

I've got a Conexant 5069 and after using the following deb-patch i'm not able to use my internal nor my external mic. But the Headphone-Autoswitch works now.
Details:
Lenovo G560
Conexant 5069
Ubuntu 10.4
alsa-base 1.0.23-0ubuntu1~10.04~ricotz1
alsa-intel-hda-conexant-update 2.6.32.21

Thanks for your help!

lspci -vvnn
00:00.0 Host bridge [0600]: Intel Corporation Core Processor DRAM Controller [8086:0044] (rev 02)
 Subsystem: Lenovo Device [17aa:391e]
 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
 Capabilities: <access denied>
 Kernel modules: intel-agp

00:01.0 PCI bridge [0604]: Intel Corporation Core Processor PCI Express x16 Root Port [8086:0045] (rev 02)
 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: 64 bytes
 Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
 I/O behind bridge: 00005000-00005fff
 Memory behind bridge: 92000000-930fffff
 Prefetchable memory behind bridge: 0000000080000000-0000000091ffffff
 Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
 BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B-
  PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
 Capabilities: <access denied>
 Kernel driver in use: pcieport
 Kernel modules: shpchp

00:16.0 Communication controller [0780]: Intel Corporation 5 Series/3400 Series Chipset HECI Controller [8086:3b64] (rev 06)
 Subsystem: Lenovo Device [17aa:38a5]
 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
 Interrupt: pin A routed to IRQ 5
 Region 0: Memory at 9b106100 (64-bit, non-prefetchable) [size=16]
 Capabilities: <access denied>

00:1a.0 USB Controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b3c] (rev 05) (prog-if 20)
 Subsystem: Lenovo Device [17aa:38aa]
 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0
 Interrupt: pin A routed to IRQ 16
 Region 0: Memory at 9b105c00 (32-bit, non-prefetchable) [size=1K]
 Capabilities: <access denied>
 Kernel driver in use: ehci_hcd

00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 05)
 Subsystem: Lenovo Device [17aa:38af]
 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: 64 bytes
 Interrupt: pin A routed to IRQ 22
 Region 0: Memory at 9b100000 (64-bit, non-prefetchable) [size=16K]
 Capabilities: <access denied>
 Kernel driver in use: HDA Intel
 Kernel modules: snd-hda-intel

00:1c.0 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 [8086:3b42] (rev 05)
 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: 64 bytes
 Bus: primary=00, secondary=02, subordinate=05, sec-latency=0
 I/O behind bridge: 00004000-00004fff
 Memory behind bridge: 9a100000-9b0fffff
 Prefetchable memory behind bridge: 0000000093100000-00000000940fffff
 Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
 BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
  PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
 Capabilities: <access denied>
 Kernel driver in use: pcieport
 Kernel modules: shpchp

00:1c.1 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 [8086:3b44] (rev 05)
 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: 64 bytes
 Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
 I/O behind bridge: 00003000-00003fff
 Memory behind bridge: 99100000-9a0fffff
 Prefetchable memory behind bridge: 0000000094100000-00000000950fffff
 Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
 BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
  PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
 Capabilities: <access denied>
 Kernel driver in use: pcieport
 Kernel modules: shpchp

00:1c.2 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 [8086:3b46] (rev 05)
 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: 64 bytes
 Bus: primary=00, secondary=07, subordinate=07, sec-latency=0
 I/O behind bridge: 00002000-00002fff
 Memory behind bridge: 98100000-990fffff
 Prefetchable memory behind bridge: 0000000095100000-00000000960fffff
 Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
 BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
  PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
 Capabilities: <access denied>
 Kernel driver in use: pcieport
 Kernel modules: shpchp

00:1c.4 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 [8086:3b4a] (rev 05)
 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: 64 bytes
 Bus: primary=00, secondary=08, subordinate=0b, sec-latency=0
 I/O behind bridge: 00001000-00001fff
 Memory behind bridge: 97100000-980fffff
 Prefetchable memory behind bridge: 0000000096100000-00000000970fffff
 Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
 BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
  PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
 Capabilities: <access denied>
 Kernel driver in use: pcieport
 Kernel modules: shpchp

00:1d.0 USB Controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b34] (rev 05) (prog-if 20)
 Subsystem: Lenovo Device [17aa:38b8]
 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0
 Interrupt: pin A routed to IRQ 23
 Region 0: Memory at 9b105800 (32-bit, non-prefetchable) [size=1K]
 Capabilities: <access denied>
 Kernel driver in use: ehci_hcd

00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev a5) (prog-if 01)
 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
 Bus: primary=00, secondary=0c, subordinate=0c, sec-latency=32
 Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
 BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
  PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
 Capabilities: <access denied>

00:1f.0 ISA bridge [0601]: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller [8086:3b09] (rev 05)
 Subsystem: Lenovo Device [17aa:38be]
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0
 Capabilities: <access denied>
 Kernel modules: iTCO_wdt

00:1f.2 SATA controller [0106]: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller [8086:3b29] (rev 05) (prog-if 01)
 Subsystem: Lenovo Device [17aa:38c1]
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
 Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0
 Interrupt: pin B routed to IRQ 34
 Region 0: I/O ports at 6048 [size=8]
 Region 1: I/O ports at 6054 [size=4]
 Region 2: I/O ports at 6040 [size=8]
 Region 3: I/O ports at 6050 [size=4]
 Region 4: I/O ports at 6020 [size=32]
 Region 5: Memory at 9b105000 (32-bit, non-prefetchable) [size=2K]
 Capabilities: <access denied>
 Kernel driver in use: ahci
 Kernel modules: ahci

00:1f.3 SMBus [0c05]: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller [8086:3b30] (rev 05)
 Subsystem: Lenovo Device [17aa:38bf]
 Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Interrupt: pin C routed to IRQ 10
 Region 0: Memory at 9b106000 (64-bit, non-prefetchable) [size=256]
 Region 4: I/O ports at 6000 [size=32]
 Kernel modules: i2c-i801

01:00.0 VGA compatible controller [0300]: nVidia Corporation GT218 [GeForce 310M] [10de:0a75] (rev a2)
 Subsystem: Lenovo Device [17aa:392d]
 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
 Interrupt: pin A routed to IRQ 16
 Region 0: Memory at 92000000 (32-bit, non-prefetchable) [size=16M]
 Region 1: Memory at 80000000 (64-bit, prefetchable) [size=256M]
 Region 3: Memory at 90000000 (64-bit, prefetchable) [size=32M]
 Region 5: I/O ports at 5000 [size=128]
 [virtual] Expansion ROM at 93080000 [disabled] [size=512K]
 Capabilities: <access denied>
 Kernel driver in use: nvidia
 Kernel modules: nvidia-current, nvidiafb, nouveau

01:00.1 Audio device [0403]: nVidia Corporation High Definition Audio Controller [10de:0be3] (rev a1)
 Subsystem: Lenovo Device [17aa:392d]
 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: 64 bytes
 Interrupt: pin A routed to IRQ 16
 Region 0: Memory at 93000000 (32-bit, non-prefetchable) [size=16K]
 Capabilities: <access denied>
 Kernel driver in use: HDA Intel
 Kernel modules: snd-hda-intel

06:00.0 Network controller [0280]: Broadcom Corporation Device [14e4:4727] (rev 01)
 Subsystem: Broadcom Corporation Device [14e4:0510]
 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: 64 bytes
 Interrupt: pin A routed to IRQ 17
 Region 0: Memory at 99100000 (64-bit, non-prefetchable) [size=16K]
 Capabilities: <access denied>
 Kernel driver in use: wl
 Kernel modules: wl

07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 02)
 Subsystem: Lenovo Device [17aa:392e]
 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: 64 bytes
 Interrupt: pin A routed to IRQ 35
 Region 0: I/O ports at 2000 [size=256]
 Region 2: Memory at 95110000 (64-bit, prefetchable) [size=4K]
 Region 4: Memory at 95100000 (64-bit, prefetchable) [size=64K]
 Expansion ROM at 95120000 [disabled] [size=128K]
 Capabilities: <access denied>
 Kernel driver in use: r8169
 Kernel modules: r8169

ff:00.0 Host bridge [0600]: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers [8086:2c62] (rev 02)
 Subsystem: Lenovo Device [17aa:392b]
 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

ff:00.1 Host bridge [0600]: Intel Corporation Core Processor QuickPath Architecture System Address Decoder [8086:2d01] (rev 02)
 Subsystem: Lenovo Device [17aa:392b]
 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

ff:02.0 Host bridge [0600]: Intel Corporation Core Processor QPI Link 0 [8086:2d10] (rev 02)
 Subsystem: Lenovo Device [17aa:392b]
 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

ff:02.1 Host bridge [0600]: Intel Corporation Core Processor QPI Physical 0 [8086:2d11] (rev 02)
 Subsystem: Lenovo Device [17aa:392b]
 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

ff:02.2 Host bridge [0600]: Intel Corporation Core Processor Reserved [8086:2d12] (rev 02)
 Subsystem: Lenovo Device [17aa:392b]
 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

ff:02.3 Host bridge [0600]: Intel Corporation Core Processor Reserved [8086:2d13] (rev 02)
 Subsystem: Lenovo Device [17aa:392b]
 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

Revision history for this message
Jerone Young (jerone) wrote :

@wompy
         I also need (attached as file to bug) the output of /proc/asound/card0/codec#0

Jerone Young (jerone)
summary: - Lenovo G560 autoswitch headphone + mic
+ Lenovo G560 autoswitch headphone + mic not working
Revision history for this message
wompy (wompy-dompy) wrote :

Ok..i havent found a codec#0-file in the card0-folder, so this is the file called codec#1. I will also upload the files from the card1-folder.

Revision history for this message
wompy (wompy-dompy) wrote :

this is the file codex#0 from the card1-folder...

Revision history for this message
wompy (wompy-dompy) wrote :

and for the case another codex-file is needed, here is the last one. Thanks for your help

Revision history for this message
Jerone Young (jerone) wrote :

@wompy
          Can you install the deb attached .. make sure to uninstall the other dkms deb from the other bug you had installed. Then reboot and let me know if things work?

Revision history for this message
wompy (wompy-dompy) wrote :

@Jerone headphone works. External and internal Mics do not work. sorry;)

Revision history for this message
Jerone Young (jerone) wrote :

@wompy
         Ok need to do a little more work. Will have something posted hopefully today.

Revision history for this message
Jerone Young (jerone) wrote :

@wompy
              Sorry for the delay. Been traveling. Can you check that the micrphones are not muted. After looking over the codec files .. the first package I created *should* have worked. I don't (or say hope) that lenovo didn't rewire the G series.

              Let me know. Check the sound applet and also alsamixer (from the command line). If it is the case then have to spin some experiement packages for you to try till can get right how they did it.

              Also on your system are the microphones working under Windows (need to make sure your hardware isn't having issues).

Revision history for this message
wompy (wompy-dompy) wrote :

@Jerone

Ok..the windows-test succeeded with internal+external mic.
I checked every setting in the sound applet and the alsamixer (also with and without sudo). I didn't work.
I hear also a loud beep when i shutdown ubuntu and i think it correlates to your patch. In the alsa-mixer is a setting for the beep but even it is muted, i hear the beep during the shutdown-process.

Thanks for your engagement.

Revision history for this message
wompy (wompy-dompy) wrote :

Hi,

is there still someone working on this issue? Do you need some more information?

Revision history for this message
Jerone Young (jerone) wrote :

@wompy
          Sorry. I got very busy. But looking to try and get something out today that you can test.

Revision history for this message
Jerone Young (jerone) wrote :

@wompy
                   Thanks for the patience. Try this new package. It turns out I messed up on the first package I gave you. Make sure it's uninstalled & reboot before installing this one. Basically I put a quirk for the wrong controller. This *should* fix the microphone. Let me know as soon as you can.

Revision history for this message
wompy (wompy-dompy) wrote :

@Jerone

Thanks for your help again. The internal mic works, but the quality is not that good, so i would like to use the external mic. I'm not able to choose which mic to use in the audio-settings and they do not record simultaneously, if this fact is important.

Revision history for this message
Jerone Young (jerone) wrote :

@wompy
          It auto selects. So if you have mic plugged into the jack then it will use that and not the internal mic. Otherwise it will use the internal mic. It's a feature of the card and how the conexant cards work.

         The best thing to do is try playing with the audio settings. Though internal mics a lot of the time can have bad positioning and pic up a lot of fan noise from the computer.

         But does look as though things are working. I'll submit a fix upstream.

Revision history for this message
Jerone Young (jerone) wrote :

@wompy
                    Make sure to play with the input volume. You can sometimes have it to high or to low also.

Revision history for this message
Jerone Young (jerone) wrote :
Revision history for this message
wompy (wompy-dompy) wrote :

@Jerone

Sorry, but I'm shure, that the mic does not change from internal to external, when i plug the jack in. The internal mic is used in both cases.

Revision history for this message
Jerone Young (jerone) wrote :

@wompy
        This is odd. Your Lenovo has the same setup as the rest ... which is what makes this odd. I'll look it over. May need another HDA VERB to fix this then.

Revision history for this message
Jerone Young (jerone) wrote :

@wompy
               Looking over the codec .. are you sure it's not switching to the headset? It look identical to other Lenovo systems and they work...can you check one more time?

Revision history for this message
wompy (wompy-dompy) wrote :

When i try to reinstall the package, i get this problem:
sudo gdebi alsa-intel-hda-conexant-test-dkms_1.0.23.git20100718_all.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Building data structures... Done

alsa-intel-hda-conexant-test driver in DKMS format.
Wollen Sie das Software-Paket installieren? [j/N]:j
Wähle vormals abgewähltes Paket alsa-intel-hda-conexant-test-dkms.
(Lese Datenbank ... 214749 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke alsa-intel-hda-conexant-test-dkms (aus alsa-intel-hda-conexant-test-dkms_1.0.23.git20100718_all.deb) ...
Richte alsa-intel-hda-conexant-test-dkms ein (1.0.23.git20100718) ...
Loading new alsa-intel-hda-conexant-test-1.0.23.git20100718 DKMS files...
First Installation: checking all kernels...
Building only for 2.6.32-23-generic
Building for architecture x86_64
Building initial module for 2.6.32-23-generic

Error! Build of snd-hda-codec-via.ko failed for: 2.6.32-23-generic (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/alsa-intel-hda-conexant-test/1.0.23.git20100718/build/ for more information.
Traceback (most recent call last):
  File "/usr/share/apport/package-hooks/dkms.py", line 47, in <module>
    report['SourcePackage'] = apport.packaging.get_source(package)
  File "/usr/lib/python2.6/dist-packages/apport/packaging_impl.py", line 106, in get_source
    if self._apt_pkg(package).installed:
  File "/usr/lib/python2.6/dist-packages/apport/packaging_impl.py", line 66, in _apt_pkg
    raise ValueError, 'package does not exist'
ValueError: package does not exist
dpkg: Fehler beim Bearbeiten von alsa-intel-hda-conexant-test-dkms (--install):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 7 zurück
Fehler traten auf beim Bearbeiten von:
 alsa-intel-hda-conexant-test-dkms

i dont know whats wrong. Did i remove some dependency? Maybe i didn't see the error, when i installed the package for the first time, because synaptic says it is correctly installed. Sorry, if this whole problem is based on any mistake by me. I'm thankfull that you're helping me.

Revision history for this message
Jerone Young (jerone) wrote :

@womy
          First remove the package completely ... reboot. You'll need the kernel headers for the kernel you have installed (this is usually there by default). Then try a reinstall.

Revision history for this message
Jerone Young (jerone) wrote :

@wompy
            Also you might have been caught between updates. Make sure before you try to get all the latest updates .. there have been a lot rolling in the last few days.

Revision history for this message
wompy (wompy-dompy) wrote :

@Jerome
I made all outstanding updates,removed the package completly, made two clean reboots and get the same error as above. But there has been a kernel-update from 2.6.32-23 to -24. I've got the headers installed.

Revision history for this message
anulanghya (anulanghya) wrote :

Hi all,

I also purchased Lenovo G560, and my auto switch head phone is not working. I even installed alsa-intel-hda-conexant-test-dkms_1.0.23.git20100718_all.deb and still the issue remains as it is.

Please help as it is a big problem for me.
If I could not get a solution for this problem soon, i'll have to move to some other OS (Which I really don't want to do).

Revision history for this message
Jerone Young (jerone) wrote :

@womy @anulanghya

   I actually messed up that package. Attached is a new one to try.

Revision history for this message
Jerone Young (jerone) wrote :

@womy @anulanghya
            Actually this package will not fix the issue. But I will look more into this issue this week.

Revision history for this message
Jerone Young (jerone) wrote :

@womy @anulanghya

        Hey can you guys try out this package. Let me know asap if fixes the problem.

        The issue looks like Lenovo wired this port to a different port we were not listening to the mic event on. Other Lenovos listen on a different port for the mic event.

         Make sure before installing this one to remove the other package from your system and reboot. Then when this one is installed reboot and you should see it fix .. *crossing fingers*

Revision history for this message
wompy (wompy-dompy) wrote :

@Jerone

I'm sorry, mic doesn't work. The Headphone-Jack changes automatically, but external and internal mic are muted. Is Lenovo afraid you haven't got enough work to do...?

Revision history for this message
Jerone Young (jerone) wrote :

@wompy
          Hmm .. so I found something I missed. I'll need to create a new patch if this one works .. try out this package:

Revision history for this message
Jerone Young (jerone) wrote :
Revision history for this message
wompy (wompy-dompy) wrote :

@Jerone
No, nothing changed since the last .deb. mic doesn't work.

Revision history for this message
Jerone Young (jerone) wrote :

@wompy
      Thanks for keeping trying these out, ok this confirms they are doing something a bit different with the gseries .. let me do a little bit more research and come up with a different package.

Revision history for this message
Zolzaya Erdenebaatar (zolzaya-eb) wrote :

Same problem here.

Revision history for this message
Can Goymen (rcangoymen) wrote :

I have the same problem..

Revision history for this message
Yahya Al-Hajj (yahya) wrote :

I have the same problem

Revision history for this message
Yahya Al-Hajj (yahya) wrote :

Is anybody working on this bug?

Revision history for this message
Alex Sudakov (cygakob) wrote :

+1

Lenovo G560
cyga@cyga-laptop:~$ dpkg-query -l alsa-base
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-====================================-====================================-========================================================================================
ii alsa-base 1.0.23+dfsg-1ubuntu4 ALSA driver configuration files

cyga@cyga-laptop:~$ lspci -vvnn | grep Audio
00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 05)
01:00.1 Audio device [0403]: nVidia Corporation High Definition Audio Controller [10de:0be3] (rev a1)

Switching between onboard speakers and headphones worked after:
cyga@cyga-laptop:~$ tail -n1 /etc/modprobe.d/alsa-base.conf
options snd-hda-intel model="ideapad"

But neither of the options I tried there worked for onboard mic.
External mic works fine.

Let me know if more info is needed.

Revision history for this message
Luc Oli (luconico) wrote :

I'm just in the same situation.
Lenovo G560, Ubuntu 10.10.
External Microphone working, internal no.
Any solution?
Thanks,
Luca.

Revision history for this message
kayno (kayno) wrote :

my lenovo g560 also suffers from this. ubuntu 10.10. added "options snd-hda-intel model=auto" to /etc/modprobe.d/alsa-base.conf to make the speakers switch off when headphones are plugged in, which worked, however now my internal mic doesn't work.

if i can post anything from my conf to help, let me know.

thanks
kayno

Revision history for this message
kayno (kayno) wrote :

i just managed to get my internal mic to work, along with my headphone jack. i installed hda_analyzer (see http://www.alsa-project.org/main/index.php/HDA_Analyzer) and used it to tweak the following setting:

"Node[0x14] AUD_IN", in the "Connection List" change to "Audio Selector [0x18]", and I maxed all the "Input Amplifier" sliders.

See here for a screen shot: http://imgur.com/BvUsK

i still have "options snd-hda-intel model=auto" in /etc/modprobe.d/alsa-base.conf

hopefully this can help others too.

Revision history for this message
Can Goymen (rcangoymen) wrote : Re: [Bug 590756] Re: Lenovo G560 autoswitch headphone + mic not working
Download full text (17.8 KiB)

I've just fixed this problem with following way;

1. I installed Alsa Driver Modules,

sudo add-apt-repository ppa:ubuntu-audio-dev/ppa
sudo apt-get update
sudo apt-get install linux-alsa-driver-modules-$(uname -r)

2. Edit alsa-base.conf and add "options snd-hda-intel model=ideapad" to the
end of options snd** lines (it doesn't matter, just paste where you want),

gksudo gedit /etc/modprobe.d/alsa-base.conf
add "options snd-hda-intel model=ideapad"
save and close

Then your laptop needs to be restarted to effect this change. Now, when I
switched to headphone, I don't hear sound on laptop and headphone
simultaneously.

On 6 December 2010 14:29, kayno <email address hidden> wrote:

> i just managed to get my internal mic to work, along with my headphone
> jack. i installed hda_analyzer (see http://www.alsa-
> project.org/main/index.php/HDA_Analyzer) and used it to tweak the
> following setting:
>
> "Node[0x14] AUD_IN", in the "Connection List" change to "Audio Selector
> [0x18]", and I maxed all the "Input Amplifier" sliders.
>
> See here for a screen shot: http://imgur.com/BvUsK
>
> i still have "options snd-hda-intel model=auto" in /etc/modprobe.d/alsa-
> base.conf
>
> hopefully this can help others too.
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/590756
>
> Title:
> Lenovo G560 autoswitch headphone + mic not working
>
> Status in “linux-backports-modules-2.6.32” package in Ubuntu:
> New
>
> Bug description:
> Hi,
>
> I've got a Conexant 5069 and after using the following deb-patch i'm not
> able to use my internal nor my external mic. But the Headphone-Autoswitch
> works now.
> Details:
> Lenovo G560
> Conexant 5069
> Ubuntu 10.4
> alsa-base 1.0.23-0ubuntu1~10.04~ricotz1
> alsa-intel-hda-conexant-update 2.6.32.21
>
> Thanks for your help!
>
> lspci -vvnn
> 00:00.0 Host bridge [0600]: Intel Corporation Core Processor DRAM
> Controller [8086:0044] (rev 02)
> Subsystem: Lenovo Device [17aa:391e]
> 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
> Capabilities: <access denied>
> Kernel modules: intel-agp
>
> 00:01.0 PCI bridge [0604]: Intel Corporation Core Processor PCI Express x16
> Root Port [8086:0045] (rev 02)
> 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: 64 bytes
> Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
> I/O behind bridge: 00005000-00005fff
> Memory behind bridge: 92000000-930fffff
> Prefetchable memory behind bridge: 0000000080000000-0000000091ffffff
> Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort-
> <TAbort- <MAbort+ <SERR- <PERR-
> BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B-
> PriDiscTmr- SecDiscTmr- DiscTm...

Revision history for this message
Luc Oli (luconico) wrote :

@Kayno
I followed your suggestions about hda analyzer. I set all the things as you showed on the imagine you attached in, but unfortunately the mic is still not working.
Don't know how to proceed...
Thanks,
Luc.

Revision history for this message
kayno (kayno) wrote :

this fix still works for me every time, but it doesn't save and I have to do it after every reboot. using the diff button on hda_analyzer, this is all that is changing:

Diff for codec 0/1 (0x14f15069):
---
+++
@@ -51,26 +51,26 @@
     ControlAmp: chs=1, dir=1, idx=0, ofs=0
   Control: name="Beep Playback Switch", index=0, device=0
     ControlAmp: chs=1, dir=1, idx=0, ofs=0
   Amp-Out caps: ofs=0x07, nsteps=0x07, stepsize=0x0f, mute=0
   Amp-Out vals: 0x00
 Node 0x14 [Audio Input] wcaps 0x100d1b: Stereo Amp-In R/L
   Device: name="CONEXANT Analog", type="Audio", device=0
   Amp-In caps: ofs=0x4a, nsteps=0x50, stepsize=0x03, mute=1
- Amp-In vals: [0x50 0x50] [0x80 0x80] [0x50 0x50] [0x80 0x80]
+ Amp-In vals: [0x50 0x50] [0x50 0x50] [0x50 0x50] [0x50 0x50]
   Converter: stream=0, channel=0
   SDI-Select: 0
   PCM:
     rates [0x160]: 44100 48000 96000
     bits [0xe]: 16 20 24
     formats [0x1]: PCM
   Power: setting=D0, actual=D0
   Connection: 4
- 0x17 0x18 0x23* 0x24
+ 0x17 0x18* 0x23 0x24
 Node 0x15 [Audio Input] wcaps 0x100d1b: Stereo Amp-In R/L
   Amp-In caps: ofs=0x4a, nsteps=0x50, stepsize=0x03, mute=1
   Amp-In vals: [0x4a 0x4a] [0x4a 0x4a] [0x4a 0x4a] [0x4a 0x4a]
   Converter: stream=0, channel=0
   SDI-Select: 0
   PCM:
     rates [0x160]: 44100 48000 96000
     bits [0xe]: 16 20 2

@Luc - id suggest tweaking all the AUD_IN settings and see what happens. have the sound preferences window in ubuntu open on the audio tab, and talk as you tweak - if it starts working you will see "input level" register your talking

Revision history for this message
Luc Oli (luconico) wrote :

Thank you Kayno.
Now the internal mic is working. We need just to find the way to make it permanent.
Right?

Luc.

Revision history for this message
kayno (kayno) wrote :

I have emailed the alsa-devel mailing list with the hda_analyzer diff and and the output of alsa-info.sh. not sure what they will do, but the hda_analyzer tool's about button said to do that.

Revision history for this message
kayno (kayno) wrote :

for reference, the email i sent to the alsa-devel mailing list: http://mailman.alsa-project.org/pipermail/alsa-devel/2010-December/034895.html

Revision history for this message
lucoli (lucoli) wrote :

@kayno
I've read the reply to your inquiry on the alsa-devel mailing list and didn't understand what did they mean.
Any hint?
Cheers,
Luc.

Revision history for this message
William Bouterse (bill-bouterse) wrote :

Another Ubuntu/Mint Lenovo 560 owner/user with the same problem
reading @kayno and alsa-dev response tried adjusting the parameters with hd-analyser.
Even using the screenshot from post #41 I have not achieved success.
I notice in my display there is no "audio stream 1" under "converter"
Mine shows "audio stream 0"
I have tried messing with converter settings.
I do have the "options snd-hda-intel model=thinkpad" in /etc/modprobe.d/alsa-base.conf"
under /etc/pulse
 default-sample-format = s16le
 default-sample-rate = 48000
 default-sample-channels = 6
 #default-channel-map = front-left,front-right

Here's hoping !?

WHB

Revision history for this message
William Bouterse (bill-bouterse) wrote :

As of 12/30/10 with Ubuntu Natty Daily updated
todays hd-analyze (12/30/10)
wget -O run.py http://www.alsa-project.org/hda-analyzer.py
python run.py

Using the screen-shot as reference from Kayno's post #41
http://imgur.com/BvUsK

The internal mic now works ! :o)

Great work by the Alsa folks and Kayno
As to whether it "sticks" after reboot?
For me its less of an issue now that the major problem is at least addressed
I did notice a difference in the hd-analyze layout this time, a change in appearance from yesterday.
So "someones" been busy!

Sorry, I got so excited I posted without checking the reboot issue :0/

WHB

Revision history for this message
William Bouterse (bill-bouterse) wrote :

Responding to my own post :

Yes I still need to reactivate hd-analyzer each reboot.
Not a show-stopper.

One thing that persists is the difference in working shows; "audio stream 1"
and non-working; shows "audio stream 0"
(assuming this is just stating the obvious)

 As a reduct with lspci
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)

Once again good work to those unsung open source heroes.

WHB

Revision history for this message
kayno (kayno) wrote :

looks like this has been fixed in newer versions of alsa - i downloaded this version: http://ftp.kernel.org/pub/linux/kernel/people/tiwai/alsa/alsa-driver/alsa-driver-20101221.tar.gz and compiled and installed (./configure; make; make install) and now my mic works all the time, even after a reboot. i think the relevant fix is in the file alsa-driver/sound/pci/hda/patch_conexant.c:

        /* Node 14 connections: 0x17 0x18 0x23 0x24 0x27 */
        {0x14, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0) | 0x50},
        {0x14, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(1)},
        {0x14, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(2) | 0x50},
        {0x14, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(3)},
        {0x14, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(4)},
        {0x14, AC_VERB_SET_CONNECT_SEL, 2}, /* default to internal mic */

taking a look at a diff with the older version of alsa, you can see the AC_VERB_SET_CONNECT_SEL changed from 1 to 2:

2822c2944
< {0x14, AC_VERB_SET_CONNECT_SEL, 1}, /* default to internal mic */
---
> {0x14, AC_VERB_SET_CONNECT_SEL, 2}, /* default to internal mic */

if you dont want to go down that path, consider installing snd-hda-tools (add repos "deb http://ppa.launchpad.net/diwic/ppa/ubuntu lucid main" and "deb-src http://ppa.launchpad.net/diwic/ppa/ubuntu lucid main") and then use hda-verb to change the settings previously changed using hda-analyzer. you will need to figure out the options for hda-verb, i worked out how to change the audio selector:

$ sudo hda-verb /dev/snd/hwC0D1 0x14 SET_CONNECT_SEL 0

see the following ubuntu post for ideas on setting up a script to automate hda-verb: http://ubuntuforums.org/showpost.php?p=9826074&postcount=121

id go with installing the newer version of alsa though...

Revision history for this message
Raymond (superquad-vortex2) wrote :

There are two demux (input source selector) , The first one in [Audio Input] node 0x14 and the second one in node 0x17

There are three [audio input] 0x14, 0x15 ,0x16 and another selector 0x18

you will need to implement input source control which allow you to select any input sources

Node 0x14 [Audio Input] wcaps 0x100d1b: Stereo Amp-In R/L
  Amp-In caps: ofs=0x4a, nsteps=0x50, stepsize=0x03, mute=1
  Amp-In vals: [0x40 0x40] [0x00 0x00] [0x4a 0x4a] [0x4a 0x4a]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power: setting=D0, actual=D0
  Connection: 4
     0x17* 0x18 0x23 0x24

Node 0x17 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
  Amp-Out vals: [0x04 0x04]
  Power: setting=D0, actual=D0
  Connection: 4
     0x1a* 0x1b 0x1d 0x1e
Node 0x18 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
  Amp-Out vals: [0x04 0x04]
  Power: setting=D0, actual=D0
  Connection: 4
     0x1a 0x1b* 0x1d 0x1e

Revision history for this message
Flyboy (lukas-loser) wrote :

On archlinux, kernel 2.6.36 with the latest compiled alsa-drivers and even with hda-analyzer setting Node 0x14 to max and switching to selector 0x18 still cant get internal mic working. This is my alsa-info : http://www.alsa-project.org/db/?f=0f484d7fe11baf2c59a218db83b3b1f13f46d98a . Any suggestions ?

Revision history for this message
Flyboy (lukas-loser) wrote :
Revision history for this message
Matthew Damiano (damiano) wrote :

For my system, I got kanyo's method to work automatically on every boot by reverse engineering the ioctl calls that come from HDA Analyzer when you click on the widgets to adjust the settings. Here is my pyhon script:

#!/usr/bin/python
# Matt Damiano's script based on hda-analyzer
# to automatically enable onboard mic on Lenovo G560
#

import os
import struct
from fcntl import ioctl

def main():
    fd = get_fd_for_device(0, 1)
    modify_settings(fd)

def __ioctl_val(val):
    # copied directly from hda_codec.py
    # workaround for OverFlow bug in python 2.4
    if val & 0x80000000:
        return -((val^0xffffffff)+1)
    return val

IOCTL_INFO = __ioctl_val(0x80dc4801)
IOCTL_VERB_WRITE = __ioctl_val(0xc0084811)

def modify_settings(fd):
    # set active connection for Node [0x14] AUD_IN to Audio Selector [0x18]
    set_active_connection_verb = 336003329
    unmute_val2_verb = 335765760
    unmute_val3_verb = 335761664
    boost_val2_volume_verb = 335765840
    boost_val3_volume_verb = 335761744

    ioctl(fd, IOCTL_VERB_WRITE, struct.pack('II', set_active_connection_verb, 0))
    ioctl(fd, IOCTL_VERB_WRITE, struct.pack('II', unmute_val2_verb, 0))
    ioctl(fd, IOCTL_VERB_WRITE, struct.pack('II', unmute_val3_verb, 0))
    ioctl(fd, IOCTL_VERB_WRITE, struct.pack('II', boost_val2_volume_verb, 0))
    ioctl(fd, IOCTL_VERB_WRITE, struct.pack('II', boost_val3_volume_verb, 0))

    return

def get_fd_for_device(card, device):
    fd = os.open("/dev/snd/hwC%sD%s" % (card, device), os.O_RDWR)

    ## just to prove his is the right file descriptor...
    info = struct.pack('Ii64s80si64s', 0, 0, '', '', 0, '')
    result = ioctl(fd, IOCTL_INFO, info)
    name = struct.unpack('Ii64s80si64s', result)[3]
    print name

    return fd

if __name__ == "__main__":
    main()

Andy Whitcroft (apw)
Changed in linux-backports-modules-2.6.32 (Ubuntu):
status: New → Won't Fix
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.