Bug 239287

Summary: No microphone nor direct audicd with intel hda
Product: [openSUSE] openSUSE 10.2 Reporter: Lorenzo Paulatto <paulatz>
Component: SoundAssignee: Takashi Iwai <tiwai>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: hvralpha, marcelovborro
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lorenzo Paulatto 2007-01-26 15:04:37 UTC
I think it's the same issue as #138434, but I cannot post there.

Only indirect (via software) CD playback (this is not a great problem) but no microphone at all. The hardware is an Hp pavillion dv5200, output from hwinfo follows:

hwinfo --sound
11: PCI 1b.0: 0403 Audio device
  [Created at pci.286]
  UDI: /org/freedesktop/Hal/devices/pci_8086_27d8
  Unique ID: u1Nb.gRjQurT2Rl5
  SysFS ID: /devices/pci0000:00/0000:00:1b.0
  SysFS BusID: 0000:00:1b.0
  Hardware Class: sound
  Model: "Hewlett-Packard Company 82801G (ICH7 Family) High Definition Audio Controller"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x27d8 "82801G (ICH7 Family) High Definition Audio Controller"
  SubVendor: pci 0x103c "Hewlett-Packard Company"
  SubDevice: pci 0x30a5
  Revision: 0x01
  Driver: "HDA Intel"
  Driver Modules: "snd_hda_intel"
  Memory Range: 0xd2400000-0xd2403fff (rw,non-prefetchable)
  IRQ: 74 (532 events)
  Module Alias: "pci:v00008086d000027D8sv0000103Csd000030A5bc04sc03i00"
  Driver Info #0:
    Driver Status: snd_hda_intel is active
    Driver Activation Cmd: "modprobe snd_hda_intel"
Comment 1 Takashi Iwai 2007-02-02 14:26:59 UTC
Your laptop isn't supported properly with 2.6.18 kernel, but it should work with the latest ALSA driver.

Try the latest ALSA version (1.0.14rc2) or better the daily snapshot in
    ftp://ftp.suse.com/pub/projects/alsa/snapshot/driver/
Comment 2 Takashi Iwai 2007-02-02 14:44:27 UTC
*** Bug 225794 has been marked as a duplicate of this bug. ***
Comment 3 Lorenzo Paulatto 2007-02-03 11:17:05 UTC
I have compiled and installed CVS (20070302) kernel modules but it does not work. 

Some new switches appears in configuration (Mic Bypass and ExtMic) I have tryed all the combinations (extMic cannot be disabled) but with no success.
Comment 4 Marcelo Borro 2007-05-25 23:28:42 UTC
I've researched over the Internet and discovered that it's a problem with alsa.
I'm using a Asus a8v-x mobo and it uses the snd-hda-intel module. It seems that the codec used with the via vt8251 is bugged.  The codec is the Analog Devices AD1986A, witch I've found on my /proc/asound/card0/codec#0.
Googling a little bit more led me to http://www.alsa-project.org/changes/v1-0-14rc3--v1-0-14rc4.txt

This is what is interesting:
   - hda-codec - Add missing Mic Boost for AD1986A codec
   - hda-codec - Fix front/rear mic inputs on AD1986A codec
   - hda-codec - Fix surround output on AD1986A

As you can see, this problem is fixed in alsa 1.0.14rc4.  I took a look at the src.rpms, thinking about generating a new alsa package but it looks that alsa is a bit difficult to compile.

If someone with more practice with alsa could generate a alsa 1.0.14rc4 package I could test it here and post the results.
Comment 5 Lorenzo Paulatto 2007-05-27 11:37:22 UTC
(In reply to comment #4)
> If someone with more practice with alsa could generate a alsa 1.0.14rc4 package
> I could test it here and post the results.

I have been usin 1.0.14rc4 for quite a while now, and I confirm it works, even if a bit oddly at times. I haven't generate the rpm but just compiled it from source by hand, installing only the modules (read the INSTALL file in the tarball).

I have marked the bug as fixed.

bye
Comment 6 Marcelo Borro 2007-05-28 14:58:54 UTC
I got it working adding the line:
options snd-hda-intel position_fix=1 model=3stack

to /etc/modprobe.d/sound

Iḿ using the alsa 1.0.14rc4 modules. I'm reinstalling the original modules to chech if it works too.
Comment 7 Marcelo Borro 2007-05-28 15:16:45 UTC
It worked great with the alsa 1.0.13 modules too  :-)
The major difference between alsa 1.0.14rc4 and 1.0.13 is that on 13 I don't have the mic boost sliders anymore and that the master in 13 is renamed to Headphone.
The hack (options snd-hda-intel position_fix=1 model=3stack)  worked well.  Is there any way to include it on Opensuse 10.2 updates?
I'm sending this solution to all lists a participate here in Brazil.   This motherboard ( Asus A8V-X ) is a bestseller here.

For documentation, here is my audio lspci -vv

02:01.0 Audio device: VIA Technologies, Inc. VIA High Definition Audio Controller
        Subsystem: ASUSTeK Computer Inc. Unknown device 818f
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 50
        Region 0: Memory at fe9fc000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [60] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
                Address: 00000000  Data: 0000
        Capabilities: [70] Express Legacy Endpoint IRQ 0
                Device: Supported: MaxPayload 128 bytes, PhantFunc 0, ExtTag-
                Device: Latency L0s <64ns, L1 <1us
                Device: AtnBtn- AtnInd- PwrInd-
                Device: Errors: Correctable- Non-Fatal- Fatal- Unsupported-
                Device: RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                Device: MaxPayload 128 bytes, MaxReadReq 128 bytes
                Link: Supported Speed unknown, Width x0, ASPM unknown, Port 0
                Link: Latency L0s <64ns, L1 <1us
                Link: ASPM Disabled RCB 64 bytes CommClk- ExtSynch-
                Link: Speed unknown, Width x0
        Capabilities: [100] Virtual Channel
        Capabilities: [130] Unknown (5)