Skip to contentSkip to conversation

Intel Poulsbo(SCH) chipset does not recognize Adi 1986 codec under linux]]

Fwd: Kan-I Jyo 3 participants 12 messages Jun 25, 2008 – Aug 1, 2008 Sound

lore
Share & tools
lore

Kan-I Jyo

author
#0 lore raw

Dear list,

My original mail on this topic was posted to the alsa-user list, while I was informed that this alsa-devel list would be the right place to post.

The problem I had encountered is that the Adi 1986 codec chip on my device with Poulsbo(SCH) chipset could not be recognized by the snd_hda_intel driver module.

Tobin has kindly given me an advice on trying an ALSA driver that is later than 1.0.16.final. For a cross-test pupose, I have tried both the following 1.0.16 and the latest 1.0.17-rc2.

[1.0.16] ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.16.tar.bz2

[1.0.17-rc2] ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.17rc2.tar.bz2

By following the guide described in the INSTALL text file in both the above two packages, I have done make and make install without a problem.

Unfortunately, both these two version of ALSA driver does not recognized the Adi 1986 codec and in the dmesg output claiming that "no codecs found!".

<dmesg>
-- snip --
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1b.0 to 64
ALSA /root/alsa-driver-1.0.16/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:1887:
hda-intel: no codecs found!
ACPI: PCI interrupt for device 0000:00:1b.0 disabled
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1b.0 to 64
ALSA /root/alsa-driver-1.0.17rc2/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:2142:
hda-intel: no codecs found!
ACPI: PCI interrupt for device 0000:00:1b.0 disabled
-- snip --

I have also tried applying some module parameters like probe_mask and position_fix but with no luck.

Actually, we have two machines with Poulsbo(SCH) chipset inside. The ALSA driver works fine in one(with a chipset's revision of "04") while it does not work on the other (with a chipset's revision of "06").

Here I attach the "lspci -nnvvvxxxx" result from both two machines.

Any comment would be greatly appericiated. If anyone needs more information, please let me know.

---------- Forwarded message ----------

2008/6/24 stan <[email protected]>:

Quoted 69 lines

This is a response from the alsa-devel list. I forwarded your message there as that was the more appropriate list.

Not sure what version of alsa driver you are using, but the driver for that chipset was added prior to 1.0.16 final. Anything after that should work.

Tobin

On Mon, 2008-06-23 at 06:20 -0700, stan wrote:

Sent to wrong list.

email message attachment ([Alsa-user] Intel Poulsbo(SCH) chipset does not recognize Adi 1986 codec under linux.eml)

-------- Forwarded Message --------
From: Kan-I Jyo <[email protected]>
To: [email protected]
Subject: [Alsa-user] Intel Poulsbo(SCH) chipset does not recognize Adi 1986 codec under linux
Date: Mon, 23 Jun 2008 20:53:42 +0900

Dear list,

I have recently got a device with Intel's Poulsbo chipset and Adi 1986 codec attatched.

The Adi 1986 codec along with the Poulsbo chipset could been recognized by installing the SoundMAX driver under Windows XP.

While switching to Linux, the snd_intel_hda is loaded but the Adi 1986 codec could not been seen and there is no "codec#0" entry under /proc/asound/card0.

Quoted 1 line

From what I can see from dmesg, the hda_intel module had complained

about "no codecs found!".

<dmesg.txt>
-- snip --

[   93.463277] PCI: Setting latency timer of device 0000:00:1b.0 to 64
[   93.463286] Do fixup for Poulsbo <6>D0 or newer stepping
[   93.463439] HDA snoop disabled, try to enable ... OK
[   93.491624] hda-intel: no codecs found!

-- snip --

I have attached both output of dmesg command the "lspci -nnvvvxxx" result along with this mail. Any comment would be greatly appreciated.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________ Alsa-user mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user

_______________________________________________ Alsa-devel mailing list [email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

-- Tobin Davis

22. The only copy of Norton Utilities was on THAT disk???

--Top 100 things you don't want the sysadmin to say

Signature · 3 lines
Sincerely,

Jyo

00:1b.0 Audio device [0403]: Intel Corporation System Controller Hub (SCH Poulsbo) HD Audio Controller [8086:811b] (rev 04)
Subsystem: Intel Corporation Unknown device [8086:8119]
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: 32 bytes
Interrupt: pin A routed to IRQ 17
Region 0: Memory at dff58000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [70] Express Unknown type IRQ 0
Device: Supported: MaxPayload 128 bytes, PhantFunc 0, ExtTag-
Device: Latency L0s <64ns, L1 <1us
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 L0s Enabled CommClk- ExtSynch-
Link: Speed unknown, Width x0
Capabilities: [60] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
Address: 00000000 Data: 0000
Capabilities: [100] Virtual Channel
Capabilities: [130] Unknown (5)
00: 86 80 1b 81 06 00 10 00 04 00 03 04 08 00 00 00
10: 04 80 f5 df 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 86 80 19 81
30: 00 00 00 00 50 00 00 00 00 00 00 00 0a 01 00 00
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00
50: 01 70 02 48 00 00 00 00 00 00 00 00 00 00 00 00
60: 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 10 60 91 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 86 0f 04 00 00 00 00 00
100: 02 00 01 13 01 00 00 00 00 00 00 00 00 00 00 00
110: 00 00 00 00 ff 00 00 80 00 00 00 00 00 00 00 00
120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
130: 05 00 01 00 00 01 00 0f 00 00 00 00 00 00 00 00
140: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
230: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
5f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
650: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
660: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
690: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
6f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
710: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
720: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
730: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
740: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
750: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
770: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
790: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
7f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
810: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
820: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
830: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
840: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
860: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
870: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
890: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
910: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
920: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
930: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
940: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
950: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
960: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
970: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
990: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
9f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
aa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ab0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ac0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ad0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ae0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
af0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ba0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
be0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
bf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ca0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ce0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
da0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
db0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
dd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
de0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
df0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ea0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
eb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ec0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ed0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ef0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00:1b.0 Audio device [0403]: Intel Corporation System Controller Hub (SCH Poulsbo) HD Audio Controller [8086:811b] (rev 06)
Subsystem: Intel Corporation Unknown device [8086:8119]
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-
Interrupt: pin A routed to IRQ 17
Region 0: Memory at dff5c000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [70] Express Unknown type IRQ 0
Device: Supported: MaxPayload 128 bytes, PhantFunc 0, ExtTag-
Device: Latency L0s <64ns, L1 <1us
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 L0s Enabled CommClk- ExtSynch-
Link: Speed unknown, Width x0
00: 86 80 1b 81 02 00 10 00 06 00 03 04 08 00 00 00
10: 04 c0 f5 df 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 86 80 19 81
30: 00 00 00 00 50 00 00 00 00 00 00 00 0a 01 00 00
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00
50: 01 70 02 48 00 00 00 00 00 00 00 00 00 00 00 00
60: 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 10 00 91 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 0d 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 86 0f 06 00 02 00 00 00

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#1 lore raw

If the system you are referring to is a development platform, then it is possible that the jumper settings on your sound board are not configured correctly. One simple test is to swap sound boards. Another thing to look at is the bios settings. The mainstream alsa driver should not care about the chipset revision. But if the audio hardware is misconfigured, that would cause it not to work.

Tobin

Quoted 134 lines · Kan-I Jyo

Dear list,

My original mail on this topic was posted to the alsa-user list, while I was informed that this alsa-devel list would be the right place to post.

The problem I had encountered is that the Adi 1986 codec chip on my device with Poulsbo(SCH) chipset could not be recognized by the snd_hda_intel driver module.

Tobin has kindly given me an advice on trying an ALSA driver that is later than 1.0.16.final. For a cross-test pupose, I have tried both the following 1.0.16 and the latest 1.0.17-rc2.

[1.0.16] ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.16.tar.bz2

[1.0.17-rc2] ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.17rc2.tar.bz2

By following the guide described in the INSTALL text file in both the above two packages, I have done make and make install without a problem.

Unfortunately, both these two version of ALSA driver does not recognized the Adi 1986 codec and in the dmesg output claiming that "no codecs found!".

<dmesg>
-- snip --
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1b.0 to 64
ALSA /root/alsa-driver-1.0.16/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:1887:
hda-intel: no codecs found!
ACPI: PCI interrupt for device 0000:00:1b.0 disabled
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1b.0 to 64
ALSA /root/alsa-driver-1.0.17rc2/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:2142:
hda-intel: no codecs found!
ACPI: PCI interrupt for device 0000:00:1b.0 disabled
-- snip --

I have also tried applying some module parameters like probe_mask and position_fix but with no luck.

Actually, we have two machines with Poulsbo(SCH) chipset inside. The ALSA driver works fine in one(with a chipset's revision of "04") while it does not work on the other (with a chipset's revision of "06").

Here I attach the "lspci -nnvvvxxxx" result from both two machines.

Any comment would be greatly appericiated. If anyone needs more information, please let me know.

---------- Forwarded message ----------

2008/6/24 stan <[email protected]>:

Quoted 62 lines

This is a response from the alsa-devel list. I forwarded your message there as that was the more appropriate list.

Not sure what version of alsa driver you are using, but the driver for that chipset was added prior to 1.0.16 final. Anything after that should work.

Tobin

On Mon, 2008-06-23 at 06:20 -0700, stan wrote:

Sent to wrong list.

email message attachment ([Alsa-user] Intel Poulsbo(SCH) chipset does not recognize Adi 1986 codec under linux.eml)

-------- Forwarded Message --------
From: Kan-I Jyo <[email protected]>
To: [email protected]
Subject: [Alsa-user] Intel Poulsbo(SCH) chipset does not recognize Adi 1986 codec under linux
Date: Mon, 23 Jun 2008 20:53:42 +0900

Dear list,

I have recently got a device with Intel's Poulsbo chipset and Adi 1986 codec attatched.

The Adi 1986 codec along with the Poulsbo chipset could been recognized by installing the SoundMAX driver under Windows XP.

While switching to Linux, the snd_intel_hda is loaded but the Adi 1986 codec could not been seen and there is no "codec#0" entry under /proc/asound/card0.

Quoted 1 line

From what I can see from dmesg, the hda_intel module had complained

about "no codecs found!".

<dmesg.txt>
-- snip --

[   93.463277] PCI: Setting latency timer of device 0000:00:1b.0 to 64
[   93.463286] Do fixup for Poulsbo <6>D0 or newer stepping
[   93.463439] HDA snoop disabled, try to enable ... OK
[   93.491624] hda-intel: no codecs found!

-- snip --

I have attached both output of dmesg command the "lspci -nnvvvxxx" result along with this mail. Any comment would be greatly appreciated.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________ Alsa-user mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user

_______________________________________________ Alsa-devel mailing list [email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Quoted 7 lines

-- Tobin Davis

22. The only copy of Norton Utilities was on THAT disk???

--Top 100 things you don't want the sysadmin to say

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Signature · 6 lines
Tobin Davis 


"Well, social relevance is a schtick, like mysteries, social relevance, 
science fiction..."
-- Art Spiegelman
author
#2 lore raw

Dear Tobin,

Thank you for your response.

2008/6/25 Tobin Davis <[email protected]>:

Quoted 3 lines

If the system you are referring to is a development platform, then it is possible that the jumper settings on your sound board are not configured correctly.

This was the first thing that came to my mind as well.
To make sure that the hardware is correctly configured, we had installed a retail version of Windows XP to this device along with SoundMAX driver as well. And the misterious thing is that sound output was working on this revision 06 device with Windows XP but not Linux.

Quoted 1 line

One simple test is to swap sound boards.

This is a good idea and worth trying. However, as all chips including the sound codec are hard-wired on this board, there is no extra slots like pci or isa available for me to make such a test.

Quoted 1 line

Another thing to look at is the bios settings.

Another good point that inspires me. I have digged around the BIOS menu. There did be some difference between the working machine and the not-working one. Frustratingly, the sound codec chip remains unrecognized even they have exact settings along with each other after adjustments.

Quoted 1 line

The mainstream alsa driver should not care about the chipset revision. But if the audio hardware is misconfigured, that would cause it not to work.

I can't not agree with you more. Though it seems that there is less possibility as the device works under Windows, I wil try to see if there were any other hardware jumper that I can adjust.

On the other hand, is there any other thing/info that I can do to help solve phenomenon?

Signature · 3 lines
Sincerely,

Jyo
#3 lore raw
In reply to Kan-I Jyo

At Wed, 25 Jun 2008 10:40:41 +0900,

Quoted 29 lines · Kan-I Jyo

Dear list,

My original mail on this topic was posted to the alsa-user list, while I was informed that this alsa-devel list would be the right place to post.

The problem I had encountered is that the Adi 1986 codec chip on my device with Poulsbo(SCH) chipset could not be recognized by the snd_hda_intel driver module.

Tobin has kindly given me an advice on trying an ALSA driver that is later than 1.0.16.final. For a cross-test pupose, I have tried both the following 1.0.16 and the latest 1.0.17-rc2.

[1.0.16] ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.16.tar.bz2

[1.0.17-rc2] ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.17rc2.tar.bz2

By following the guide described in the INSTALL text file in both the above two packages, I have done make and make install without a problem.

Unfortunately, both these two version of ALSA driver does not recognized the Adi 1986 codec and in the dmesg output claiming that "no codecs found!".

Quoted 12 lines

<dmesg>
-- snip --
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1b.0 to 64
ALSA /root/alsa-driver-1.0.16/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:1887:
hda-intel: no codecs found!
ACPI: PCI interrupt for device 0000:00:1b.0 disabled
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1b.0 to 64
ALSA /root/alsa-driver-1.0.17rc2/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:2142:
hda-intel: no codecs found!
ACPI: PCI interrupt for device 0000:00:1b.0 disabled

The driver was properly loaded, so the problem is in the codec communication...

On which slot is assigned the codec chip? As now, SCH is set up to probe up to 3rd slots. The driver had a problem regarding the probe on the 4th slot on some hardwares, so it limited the probe to 3 slots as default. SCH support was just copied from ICH, and this workaround was likely inherited, too.

The patch below enables the probe on 4th slot on SCH.

thanks,

Takashi

---

sound/pci/hda/hda_intel.c +1 -1
index 16715a6..2e9d9c9 100644
@@ -1157,7 +1157,7 @@ static int azx_setup_controller(struct azx *chip, struct azx_dev *azx_dev)
 
 static unsigned int azx_max_codecs[] __devinitdata = {
 	[AZX_DRIVER_ICH] = 4,		/* Some ICH9 boards use SD3 */
-	[AZX_DRIVER_SCH] = 3,
+	[AZX_DRIVER_SCH] = 4,
 	[AZX_DRIVER_ATI] = 4,
 	[AZX_DRIVER_ATIHDMI] = 4,
 	[AZX_DRIVER_VIA] = 3,		/* FIXME: correct? */
author
#4 lore raw

Dear Takashi,

Thank you for your reply.

2008/6/25 Takashi Iwai <[email protected]>:

Quoted 1 line

The patch below enables the probe on 4th slot on SCH.

Thank you for your patch.
I have applied your patch and recompiled the snd-hda-intel kernel module. A reload of the newly compiled driver stiil gives me the "no codec found!" output in dmesg.

After inserting some snd_printk() into the hda_intel.c, it seems that this "azx_readw()" macro in azx_reset() function returns a "0" to chip->codec_mask on our not-working device. It is returns a "1" on the other working device though.

<hda_intel.c>
-- snip --
751 /* detect codecs */
752 if (!chip->codec_mask) {
753 chip->codec_mask = azx_readw(chip, STATESTS);
754 snd_printk("codec_mask = 0x%x\n", chip->codec_mask);
-- snip --

<dmesg>
-- snip --
PCI: Setting latency timer of device 0000:00:1b.0 to 64
ALSA /root/alsa-driver-1.0.17rc2/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:2069:
chipset global capabilities = 0x2200
ALSA /root/alsa-driver-1.0.17rc2/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:912:
HDA snoop disabled, enabling ... OK
ALSA /root/alsa-driver-1.0.17rc2/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:754:
codec_mask = 0x0
ALSA /root/alsa-driver-1.0.17rc2/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:2142:
hda-intel: no codecs found!
ACPI: PCI interrupt for device 0000:00:1b.0 disabled

For I am not an expert in sound driver development, the above are provided for reference. But would this be some kind of hint?

Signature · 3 lines
Sincerely,

Jyo
#5 lore raw

At Wed, 25 Jun 2008 21:00:46 +0900,

Quoted 40 lines · Kan-I Jyo

Dear Takashi,

Thank you for your reply.

2008/6/25 Takashi Iwai <[email protected]>:

Quoted 1 line

The patch below enables the probe on 4th slot on SCH.

Thank you for your patch.
I have applied your patch and recompiled the snd-hda-intel kernel module. A reload of the newly compiled driver stiil gives me the "no codec found!" output in dmesg.

After inserting some snd_printk() into the hda_intel.c, it seems that this "azx_readw()" macro in azx_reset() function returns a "0" to chip->codec_mask on our not-working device. It is returns a "1" on the other working device though.

<hda_intel.c>
-- snip --
751 /* detect codecs */
752 if (!chip->codec_mask) {
753 chip->codec_mask = azx_readw(chip, STATESTS);
754 snd_printk("codec_mask = 0x%x\n", chip->codec_mask);
-- snip --

<dmesg>
-- snip --
PCI: Setting latency timer of device 0000:00:1b.0 to 64
ALSA /root/alsa-driver-1.0.17rc2/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:2069:
chipset global capabilities = 0x2200
ALSA /root/alsa-driver-1.0.17rc2/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:912:
HDA snoop disabled, enabling ... OK
ALSA /root/alsa-driver-1.0.17rc2/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:754:
codec_mask = 0x0
ALSA /root/alsa-driver-1.0.17rc2/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:2142:
hda-intel: no codecs found!
ACPI: PCI interrupt for device 0000:00:1b.0 disabled

Quoted 2 lines

For I am not an expert in sound driver development, the above are provided for reference. But would this be some kind of hint?

The hardware sets the corresponding bits to this register when the codec is found on the slot. So, this seems really like a hardware problem.

Or, if it's a timing issue, you can try to add some delays in azx_reset()...

Takashi

author
#6 lore raw

Dear Takashi,

Thank you for your kind help all the time.

2008/6/25 Takashi Iwai <[email protected]>:

Quoted 3 lines

The hardware sets the corresponding bits to this register when the codec is found on the slot. So, this seems really like a hardware problem.

For all my try these days have all led to a non-working audio device, I can not help thinking the high possibility of a hardware problem. Just want to make sure that I have made good efforts before blaming on hardware side.

Quoted 3 lines

Or, if it's a timing issue, you can try to add some delays in azx_reset()...

Considering this kind of issue, I have increased the "msleep" in azx_reset() from 1 to 1000.
With no luck, stiil there the "no codecs found" message.

Moreover, I have changed the "msleep" to "ssleep" with a even larger value. As you may have expected, no recognization of the ADi 1986A codec at all.

Though there might be no much left for trying, I just want to make sure that I did not miss any import part.
And I would like say thank you as well for your timely advetise.

Signature · 3 lines
Sincerely,

Jyo
author
#7 lore raw

2008/6/30 Kan-I Jyo <[email protected]>:

Quoted 1 line

And I would like say thank you as well for your timely advetise.

               ^^^^^^^^

it is "advise", I mean. sorry about this.

Signature · 3 lines
Sincerely,

Jyo
#8 lore raw
In reply to Kan-I Jyo

At Mon, 30 Jun 2008 22:20:17 +0900,

Quoted 19 lines · Kan-I Jyo

Dear Takashi,

Thank you for your kind help all the time.

2008/6/25 Takashi Iwai <[email protected]>:

Quoted 3 lines

The hardware sets the corresponding bits to this register when the codec is found on the slot. So, this seems really like a hardware problem.

For all my try these days have all led to a non-working audio device, I can not help thinking the high possibility of a hardware problem. Just want to make sure that I have made good efforts before blaming on hardware side.

Quoted 3 lines

Or, if it's a timing issue, you can try to add some delays in azx_reset()...

Quoted 7 lines

Considering this kind of issue, I have increased the "msleep" in azx_reset() from 1 to 1000.
With no luck, stiil there the "no codecs found" message.

Moreover, I have changed the "msleep" to "ssleep" with a even larger value. As you may have expected, no recognization of the ADi 1986A codec at all.

Then it implies that the hardware doesn't set this bit. It's supposed to be mandatory, and this probing mechanism works well for other hundreds of devices. Thus I think something still wrong in your device setup.

If you know the slot number of the codec beforehand, you can modify to force to set chip->codec_mask in azx_reset(). Then the driver will continue to probe the codec.

Takashi

author
#9 lore raw

Dear Takashi,

Thank you for your reply.

2008/7/1 Takashi Iwai <[email protected]>:

Quoted 3 lines

If you know the slot number of the codec beforehand, you can modify to force to set chip->codec_mask in azx_reset(). Then the driver will continue to probe the codec.

By changing the "chip->codec_mask", amazingly the codec chip is now recognized.

<hda_intel.c.diff>

hda_intel.c renamed from hda_intel.c.orig +2 -1
@@ -750,7 +750,8 @@ static int azx_reset(struct azx *chip)
 
 	/* detect codecs */
 	if (!chip->codec_mask) {
-		chip->codec_mask = azx_readw(chip, STATESTS);
+		/* chip->codec_mask = azx_readw(chip, STATESTS); */
+		chip->codec_mask = 1;
 		snd_printdd("codec_mask = 0x%x\n", chip->codec_mask);
 	}
 

<ends here>

I do not consider this as a good way to solve this issue, this is quite a progress to me. Thank you for your advise, Takashi.

Regardless of being recognized and been configurable by alsamixer, there is no sound output from the speaker. I have tried all the model option listed in Documentation/sound/alsa/ALSA-Configuration.txt for AD1986A and none provides a sound output.

By switching to different models, it results some similar log output in both dmesg and /var/log/messages have some info like this:

<dmesg>

--snip--
ALSA /root/alsa-driver-1.0.17rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:601:
hda_intel: azx_get_response timeout, switching to polling mode: last cmd=0x000f0000
ALSA /root/alsa-driver-1.0.17rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:608:
hda_intel: azx_get_response timeout, switching to single_cmd mode:
last cmd=0x000f0000
ALSA /root/alsa-driver-1.0.17rc3/pci/hda/hda_codec.c:2334: hda_codec:
model '6stack' is selected
ALSA /root/alsa-driver-1.0.17rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:1196:
snd_hda_codec_new() results is 0

<ends here>

When trying to apply the "position_fix" module option to values other than the default "0", I got following ouput from dmesg.

<dmesg>

--snip--
ALSA /root/alsa-driver-1.0.17rc3/acore/../alsa-kernel/core/pcm_lib.c:1540:
playback write error (DMA or IRQ trouble?)

<ends here>

And in /var/log/messages, I have following messages complaining that the position buffer is invalid.

</var/log/messages>

--snip--

Jan  2 18:34:03 localhost kernel: hda-intel: Invalid position buffer,
using LPIB read method instead.
Jan  2 18:34:03 localhost kernel: hda-intel: IRQ timing workaround is

activated for card #0. Suggest a bigger bdl_pos_adj.

<ends here>

As you have metioned in your previous update, there is high possibility that this is not a software(driver) issue but a hardware misconfiguration. Though I think there might some kind of workaround to solve this issue, I will try contacting the hardware vendor about this situation.

And still, any commet would be greatly appreciated.

Signature · 3 lines
Sincerely,

Jyo
#10 lore raw

At Thu, 3 Jul 2008 14:42:16 +0900,

Quoted 41 lines · Kan-I Jyo

Dear Takashi,

Thank you for your reply.

2008/7/1 Takashi Iwai <[email protected]>:

Quoted 3 lines

If you know the slot number of the codec beforehand, you can modify to force to set chip->codec_mask in azx_reset(). Then the driver will continue to probe the codec.

By changing the "chip->codec_mask", amazingly the codec chip is now recognized.

<hda_intel.c.diff>

hda_intel.c renamed from hda_intel.c.orig +2 -1
@@ -750,7 +750,8 @@ static int azx_reset(struct azx *chip)
 
 	/* detect codecs */
 	if (!chip->codec_mask) {
-		chip->codec_mask = azx_readw(chip, STATESTS);
+		/* chip->codec_mask = azx_readw(chip, STATESTS); */
+		chip->codec_mask = 1;
 		snd_printdd("codec_mask = 0x%x\n", chip->codec_mask);
 	}
 

<ends here>

I do not consider this as a good way to solve this issue, this is quite a progress to me. Thank you for your advise, Takashi.

Regardless of being recognized and been configurable by alsamixer, there is no sound output from the speaker. I have tried all the model option listed in Documentation/sound/alsa/ALSA-Configuration.txt for AD1986A and none provides a sound output.

By switching to different models, it results some similar log output in both dmesg and /var/log/messages have some info like this:

<dmesg>

Quoted 7 lines

--snip--
ALSA /root/alsa-driver-1.0.17rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:601:
hda_intel: azx_get_response timeout, switching to polling mode: last cmd=0x000f0000
ALSA /root/alsa-driver-1.0.17rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:608:
hda_intel: azx_get_response timeout, switching to single_cmd mode:
last cmd=0x000f0000

If this happens, usually it means that the device access is pretty ragged. Does /proc/asound/card0/codec#* show the correct values?

Quoted 7 lines

ALSA /root/alsa-driver-1.0.17rc3/pci/hda/hda_codec.c:2334: hda_codec:
model '6stack' is selected
ALSA /root/alsa-driver-1.0.17rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:1196:
snd_hda_codec_new() results is 0

<ends here>

Quoted 8 lines

When trying to apply the "position_fix" module option to values other than the default "0", I got following ouput from dmesg.

<dmesg>

--snip--
ALSA /root/alsa-driver-1.0.17rc3/acore/../alsa-kernel/core/pcm_lib.c:1540:
playback write error (DMA or IRQ trouble?)

This error is fatal, and implies that the IRQ isn't triggered properly. Doesn't this happen if you set position_fix=0? Still weird...

Quoted 6 lines

<ends here>

And in /var/log/messages, I have following messages complaining that the position buffer is invalid.

Quoted 7 lines

</var/log/messages>

--snip--

Jan  2 18:34:03 localhost kernel: hda-intel: Invalid position buffer,
using LPIB read method instead.
Jan  2 18:34:03 localhost kernel: hda-intel: IRQ timing workaround is

activated for card #0. Suggest a bigger bdl_pos_adj.

On Intel devices, we choose the 1 sample position fix while 32 samples for other controller chips. This might be a wrong assumption, but I'd like to check all other cases first.

And, this basically is no fatal error. This may lead to higher CPU load (for busy wait) but the playback should still work.

Takashi

author
#11 lore raw

Dear Takhashi,

After having some discussions with the hardware vender and reviewing some technical specifiction documents on Intel's website, this issue has now been fixed by a rework of the hardware.

I would like to say thank you for all your kind support on this issue.

2008/7/4 Takashi Iwai <[email protected]>:

Quoted 98 lines

At Thu, 3 Jul 2008 14:42:16 +0900,

Quoted 41 lines · Kan-I Jyo

Dear Takashi,

Thank you for your reply.

2008/7/1 Takashi Iwai <[email protected]>:

Quoted 3 lines

If you know the slot number of the codec beforehand, you can modify to force to set chip->codec_mask in azx_reset(). Then the driver will continue to probe the codec.

By changing the "chip->codec_mask", amazingly the codec chip is now recognized.

<hda_intel.c.diff>

hda_intel.c 2008-07-02 13:27:48.303899618 +0900 renamed from hda_intel.c.orig 2008-07-02 13:27:14.699908463 +0900 +2 -1
@@ -750,7 +750,8 @@ static int azx_reset(struct azx *chip)
 
      /* detect codecs */
      if (!chip->codec_mask) {
-             chip->codec_mask = azx_readw(chip, STATESTS);
+             /* chip->codec_mask = azx_readw(chip, STATESTS); */
+             chip->codec_mask = 1;
              snd_printdd("codec_mask = 0x%x\n", chip->codec_mask);
      }
 

<ends here>

I do not consider this as a good way to solve this issue, this is quite a progress to me. Thank you for your advise, Takashi.

Regardless of being recognized and been configurable by alsamixer, there is no sound output from the speaker. I have tried all the model option listed in Documentation/sound/alsa/ALSA-Configuration.txt for AD1986A and none provides a sound output.

By switching to different models, it results some similar log output in both dmesg and /var/log/messages have some info like this:

<dmesg>

Quoted 7 lines

--snip--
ALSA /root/alsa-driver-1.0.17rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:601:
hda_intel: azx_get_response timeout, switching to polling mode: last cmd=0x000f0000
ALSA /root/alsa-driver-1.0.17rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:608:
hda_intel: azx_get_response timeout, switching to single_cmd mode:
last cmd=0x000f0000

If this happens, usually it means that the device access is pretty ragged. Does /proc/asound/card0/codec#* show the correct values?

Quoted 7 lines

ALSA /root/alsa-driver-1.0.17rc3/pci/hda/hda_codec.c:2334: hda_codec:
model '6stack' is selected
ALSA /root/alsa-driver-1.0.17rc3/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:1196:
snd_hda_codec_new() results is 0

<ends here>

Quoted 8 lines

When trying to apply the "position_fix" module option to values other than the default "0", I got following ouput from dmesg.

<dmesg>

--snip--
ALSA /root/alsa-driver-1.0.17rc3/acore/../alsa-kernel/core/pcm_lib.c:1540:
playback write error (DMA or IRQ trouble?)

This error is fatal, and implies that the IRQ isn't triggered properly. Doesn't this happen if you set position_fix=0? Still weird...

Quoted 6 lines

<ends here>

And in /var/log/messages, I have following messages complaining that the position buffer is invalid.

Quoted 7 lines

</var/log/messages>

--snip--

Jan  2 18:34:03 localhost kernel: hda-intel: Invalid position buffer,
using LPIB read method instead.
Jan  2 18:34:03 localhost kernel: hda-intel: IRQ timing workaround is

activated for card #0. Suggest a bigger bdl_pos_adj.

On Intel devices, we choose the 1 sample position fix while 32 samples for other controller chips. This might be a wrong assumption, but I'd like to check all other cases first.

And, this basically is no fatal error. This may lead to higher CPU load (for busy wait) but the playback should still work.

Takashi

Signature · 3 lines
Sincerely,

Jyo