atiixp: Problems making it work on SB400
Hi!
I've recently obtained a Turion64 notebook (branded as TARGA, originally built by MSI). It is based on ATI chipset (SB400)
However, I don't get any audio output, neither on the headphone jack nor on the speakers - despite everything looking quite nice in /proc/asound (see remainder of mail). I've already tried ac97 quirks and played with every possible mixer setting. No success :(
I'm happy to any suggestions and/or hints where to start further debugging the issue.
Thanks in advance!
====
/proc/asound/cards:
0 [IXP ]: ATIIXP - ATI IXP
ATI IXP rev 1 with ALC658 at 0xfbdfc800, irq 193
/proc/asound/devices:
17: [0- 1]: digital audio playback
16: [0- 0]: digital audio playback
24: [0- 0]: digital audio capture
0: [0- 0]: ctl
33: : timer
/proc/asound/pcm:
00-00: ATI IXP AC97 : ATI IXP AC97 : playback 1 : capture 1 00-01: ATI IXP IEC958 : ATI IXP IEC958 (AC97) : playback 1
/proc/asound/version:
Advanced Linux Sound Architecture Driver Version 1.0.9rc2 (Thu Mar 24 10:33:39 2005 UTC).
/proc/asound/IXP/atiixp:
00: 00000000
04: 00004037
08: 9a500a04
0c: 00005c04
10: 1f405d00
14: 0000007f
18: 00000d09
1c: 00000000
20: 00000000
24: 00000000
28: 00000000
2c: 00000000
30: 03c00000
34: 00002003
38: 1e43d000
3c: 202fc000
40: 1e43d000
44: 202fc928
48: 08001000
4c: 00000000
50: 00000000
54: 00000000
58: 00000000
5c: 00000000
60: 03c00000
64: 00000000
68: 00000000
6c: 00000000
70: 00000000
74: 00000000
78: 00000000
7c: 00000000
80: 00000000
84: 00000000
88: 00000000
8c: 0000005a
90: 00000000
94: 00000000
98: 00000000
9c: 00000000
a0: 00000000
a4: 00000000
a8: 00000000
ac: 00000000
b0: 00000000
b4: 00000000
b8: 00000000
bc: 00000000
c0: 00000000
c4: 00000000
c8: 00000000
cc: 00000000
d0: 00000000
d4: 00000000
d8: 00000000
dc: 00000000
e0: 00000000
e4: 00000000
e8: 00000000
ec: 00000000
f0: 00000000
f4: 00000000
f8: 00000000
fc: 00000000
/proc/asound/IXP/codec97#0/ac97#0:
0-0/0: Realtek ALC658 rev 0
Revision : 0x00
Compat. Class : 0x00
Subsys. Vendor ID: 0xffff
Subsys. ID : 0xffff
Capabilities : DAC resolution : 20-bit ADC resolution : 18-bit 3D enhancement : No 3D Stereo Enhancement
Current setup
Mic gain : +0dB [+0dB]
POP path : pre 3D
Sim. stereo : off
3D enhancement : off Loudness : off Mono output : MIX Mic select : Mic1
ADC/DAC loopback : off
Double rate slots: 10/11
Extended ID : codec=0 rev=2 LDAC SDAC CDAC DSA=0 SPDIF DRA VRA
Extended status : LDAC SDAC CDAC SPDIF=3/4 VRA
PCM front DAC : 8000Hz
PCM Surr DAC : 8000Hz
PCM LFE DAC : 8000Hz
PCM ADC : 48000Hz
SPDIF Control : Consumer PCM Category=0x2 Generation=1 Rate=48kHz
/proc/asound/IXP/codec97#0/ac97#0-0+regs:
0:00 = 0180
0:02 = 0707
0:04 = 0000
0:06 = 0000
0:08 = 0000
0:0a = 000e
0:0c = 000f
0:0e = 010d
0:10 = 0c0c
0:12 = 0303
0:14 = 0000
0:16 = 0d0d
0:18 = 0303
0:1a = 0505
0:1c = 0808
0:1e = 8000
0:20 = 0000
0:22 = 0000
0:24 = 0000
0:26 = 000f
0:28 = 09c7
0:2a = 01c1
0:2c = 1f40
0:2e = 1f40
0:30 = 1f40
0:32 = bb80
0:34 = bb80
0:36 = 1a18
0:38 = 1a1a
0:3a = 2824
0:3c = 0000
0:3e = 0000
0:40 = 0000
0:42 = 0000
0:44 = 0000
0:46 = 0000
0:48 = 0000
0:4a = 0000
0:4c = 0000
0:4e = 0000
0:50 = 0000
0:52 = 0000
0:54 = 0000
0:56 = 0000
0:58 = 0000
0:5a = 0000
0:5c = 0000
0:5e = 0000
0:60 = 0000
0:62 = 0000
0:64 = 0808
0:66 = 0808
0:68 = 0aea
0:6a = 8001
0:6c = 4601
0:6e = 0002
0:70 = 0008
0:72 = 0000
0:74 = 011f
0:76 = 0000
0:78 = 0007
0:7a = 40b0
0:7c = 414c
0:7e = 4780
/proc/asound/IXP/oss_mixer:
VOLUME "Master" 0
BASS "" 0
TREBLE "" 0
SYNTH "" 0
PCM "PCM" 0
SPEAKER "PC Speaker" 0
LINE "Line" 0
MIC "Mic" 0
CD "CD" 0
IMIX "" 0
ALTPCM "" 0
RECLEV "" 0
IGAIN "Capture" 0
OGAIN "" 0
LINE1 "Aux" 0
LINE2 "" 0
LINE3 "" 0
DIGITAL1 "IEC958" 0
DIGITAL2 "" 0
DIGITAL3 "" 0
PHONEIN "Phone" 0
PHONEOUT "Master Mono" 0
VIDEO "Video" 0
RADIO "" 0
MONITOR "" 0
/proc/asound/IXP/pcm0p/sub0/status (while playing):
state: RUNNINGtrigger_time: 1118529954.000001603
tstamp : 1118529975.000184514
delay : 13526
avail : 2858avail_max : 4096
-----hw_ptr : 84778appl_ptr : 98304
lspci -v
0000:00:00.0 Host bridge: ATI Technologies Inc: Unknown device 5951
Subsystem: Micro-Star International Co., Ltd.: Unknown device 0291
Flags: bus master, 66MHz, medium devsel, latency 0
0000:00:02.0 PCI bridge: ATI Technologies Inc: Unknown device 5a34 (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 I/O behind bridge: 0000d000-0000dfff Memory behind bridge: fbe00000-fbefffff Prefetchable memory behind bridge: f0000000-faffffff Capabilities: [50] Power Management version 3 Capabilities: [58] #10 [0041] Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable+ Capabilities: [b0] #0d [0000] Capabilities: [b8] #08 [a803]
0000:00:13.0 USB Controller: ATI Technologies Inc: Unknown device 4374 (prog-if 10 [OHCI])
Subsystem: ATI Technologies Inc: Unknown device 4374
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 209
Memory at fbdfd000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [d0] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-
0000:00:13.1 USB Controller: ATI Technologies Inc: Unknown device 4375 (prog-if 10 [OHCI])
Subsystem: ATI Technologies Inc: Unknown device 4375
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 209
Memory at fbdfe000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [d0] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-
0000:00:13.2 USB Controller: ATI Technologies Inc: Unknown device 4373 (prog-if 20 [EHCI])
Subsystem: ATI Technologies Inc: Unknown device 4373
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 209
Memory at fbdff000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [dc] Power Management version 2
Capabilities: [d0] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-
0000:00:14.0 SMBus: ATI Technologies Inc: Unknown device 4372 (rev 10)
Subsystem: Micro-Star International Co., Ltd.: Unknown device 0291 Flags: 66MHz, medium devsel I/O ports at c800 [size=16] Memory at fbdfc400 (32-bit, non-prefetchable) [size=1K] Capabilities: [b0] #08 [a802]
0000:00:14.1 IDE interface: ATI Technologies Inc: Unknown device 4376 (prog-if 8a [Master SecP PriP])
Subsystem: Micro-Star International Co., Ltd.: Unknown device 0291
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 201
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at <ignored>
I/O ports at ff00 [size=16]
Capabilities: [70] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-
0000:00:14.3 ISA bridge: ATI Technologies Inc: Unknown device 4377
Flags: bus master, 66MHz, medium devsel, latency 0
0000:00:14.4 PCI bridge: ATI Technologies Inc: Unknown device 4371 (prog-if 01 [Subtractive decode])
Flags: bus master, 66MHz, medium devsel, latency 64 Bus: primary=00, secondary=02, subordinate=04, sec-latency=64 I/O behind bridge: 0000e000-0000efff Memory behind bridge: fbf00000-fbffffff
0000:00:14.5 Multimedia audio controller: ATI Technologies Inc: Unknown device 4370 (rev 01)
Subsystem: Micro-Star International Co., Ltd.: Unknown device 0291
Flags: bus master, 66MHz, slow devsel, latency 64, IRQ 193
Memory at fbdfc800 (32-bit, non-prefetchable) [size=256]
Capabilities: [40] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-
0000:00:14.6 Modem: ATI Technologies Inc: Unknown device 4378 (rev 01) (prog-if 00 [Generic])
Subsystem: Micro-Star International Co., Ltd.: Unknown device 0131
Flags: bus master, 66MHz, slow devsel, latency 64, IRQ 193
Memory at fbdfcc00 (32-bit, non-prefetchable) [size=256]
Capabilities: [40] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-
0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
Flags: fast devsel Capabilities: [80] #08 [2101]
0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
Flags: fast devsel
0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
Flags: fast devsel
0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
Flags: fast devsel
0000:01:00.0 VGA compatible controller: ATI Technologies Inc: Unknown device 5653 (prog-if 00 [VGA])
Subsystem: Micro-Star International Co., Ltd.: Unknown device 0291
Flags: bus master, fast devsel, latency 0, IRQ 10
Memory at f0000000 (32-bit, prefetchable) [size=128M]
I/O ports at d800 [size=256]
Memory at fbef0000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at fbec0000 [disabled] [size=128K]
Capabilities: [50] Power Management version 2
Capabilities: [58] #10 [0001]
Capabilities: [80] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
0000:02:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Micro-Star International Co., Ltd.: Unknown device 0291
Flags: bus master, medium devsel, latency 64, IRQ 225
I/O ports at e800 [size=256]
Memory at fbfffc00 (32-bit, non-prefetchable) [size=256]
Expansion ROM at fbfe0000 [disabled] [size=64K]
Capabilities: [50] Power Management version 2
0000:02:04.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
Subsystem: Micro-Star International Co., Ltd.: Unknown device 0291 Flags: bus master, medium devsel, latency 168, IRQ 209 Memory at 40000000 (32-bit, non-prefetchable) [size=4K] Bus: primary=02, secondary=03, subordinate=06, sec-latency=176 Memory window 0: 40400000-407ff000 (prefetchable) Memory window 1: 40800000-40bff000 I/O window 0: 00004400-000044ff I/O window 1: 00004800-000048ff 16-bit legacy interface ports at 0001
0000:02:04.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
Subsystem: Micro-Star International Co., Ltd.: Unknown device 0291 Flags: bus master, medium devsel, latency 168, IRQ 217 Memory at 40001000 (32-bit, non-prefetchable) [size=4K] Bus: primary=02, secondary=07, subordinate=0a, sec-latency=176 Memory window 0: 40c00000-40fff000 (prefetchable) Memory window 1: 41000000-413ff000 I/O window 0: 00004c00-00004cff I/O window 1: 00005000-000050ff 16-bit legacy interface ports at 0001
0000:02:04.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 04) (prog-if 10 [OHCI])
Subsystem: Micro-Star International Co., Ltd.: Unknown device 0291
Flags: bus master, medium devsel, latency 64, IRQ 169
Memory at fbfff000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [dc] Power Management version 2
0000:02:09.0 Network controller: Intel Corp.: Unknown device 4223 (rev 05)
Subsystem: Intel Corp.: Unknown device 1001
Flags: bus master, medium devsel, latency 64, IRQ 201 Memory at fbffe000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [dc] Power Management version 2
lspci -n
0000:00:00.0 0600: 1002:5951
0000:00:02.0 0604: 1002:5a34
0000:00:13.0 0c03: 1002:4374
0000:00:13.1 0c03: 1002:4375
0000:00:13.2 0c03: 1002:4373
0000:00:14.0 0c05: 1002:4372 (rev 10)
0000:00:14.1 0101: 1002:4376
0000:00:14.3 0601: 1002:4377
0000:00:14.4 0604: 1002:4371
0000:00:14.5 0401: 1002:4370 (rev 01)
0000:00:14.6 0703: 1002:4378 (rev 01)
0000:00:18.0 0600: 1022:1100
0000:00:18.1 0600: 1022:1101
0000:00:18.2 0600: 1022:1102
0000:00:18.3 0600: 1022:1103
0000:01:00.0 0300: 1002:5653
0000:02:03.0 0200: 10ec:8139 (rev 10)
0000:02:04.0 0607: 1180:0476 (rev ac)
0000:02:04.1 0607: 1180:0476 (rev ac)
0000:02:04.2 0c00: 1180:0552 (rev 04)
0000:02:09.0 0280: 8086:4223 (rev 05)
Signature · 4 lines
- Harald Welte <[email protected]> http://gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)
Hi Harald,
At Fri, 24 Jun 2005 18:59:08 +0200,
Quoted 6 lines · Harald Welte
Hi!
I've recently obtained a Turion64 notebook (branded as TARGA, originally built by MSI). It is based on ATI chipset (SB400)
Quoted 7 lines
However, I don't get any audio output, neither on the headphone jack nor on the speakers - despite everything looking quite nice in
/proc/asound(see remainder of mail). I've already tried ac97 quirks and played with every possible mixer setting. No success :(I'm happy to any suggestions and/or hints where to start further debugging the issue.
After a quick look at your information, I couldn't find anything wrong. The ac97 register values look OK (compared with ALC658 datasheet).
Just to be sure, could you install alsa-driver-1.0.9b? Also, please attach /etc/asound.state (after "alsactl store") to check the mixer configuration.
There have been some bug reports with ATIIXP-laptop, and interestingly someone reported that it was fixed by disabling ACPI. But, his case was only for the speaker output, so not 100% identical with your case.
Takashi
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Hi Takashi!
Quoted 3 lines · Takashi Iwai
After a quick look at your information, I couldn't find anything wrong. The ac97 register values look OK (compared with ALC658 datasheet).
Yes, I meanwhile obtained the datasheet, too (and played with GPIO output and EAPD bits, but at no success).
Quoted 1 line
Just to be sure, could you install alsa-driver-1.0.9b?
I tried that, too (forgot to mention it in my initial mail.
Quoted 4 lines
There have been some bug reports with ATIIXP-laptop, and interestingly someone reported that it was fixed by disabling ACPI. But, his case was only for the speaker output, so not 100% identical with your case.
For some strange reason, the headphone output now works. I don't really know what I did different from my first tries where it wasn't working.
So it seems like I'm observing the same bug.
Booting with acpi=off didn't change the behaviour, and the BIOS config is so stripped-down that it has no option to disable ACPI.
The only thing that I could find was that the atiixp (not ac97) registers 0x10 and 0x14 change when inserting/removing a plug into the headphone jack. Unfortunately there is no public datasheed for the SB400 :(
Signature · 4 lines
- Harald Welte <[email protected]> http://gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)
At Fri, 24 Jun 2005 22:16:52 +0200,
Quoted 20 lines · Harald Welte
Hi Takashi!
Quoted 3 lines · Takashi Iwai
After a quick look at your information, I couldn't find anything wrong. The ac97 register values look OK (compared with ALC658 datasheet).
Yes, I meanwhile obtained the datasheet, too (and played with GPIO output and EAPD bits, but at no success).
Quoted 1 line
Just to be sure, could you install alsa-driver-1.0.9b?
I tried that, too (forgot to mention it in my initial mail.
Quoted 4 lines
There have been some bug reports with ATIIXP-laptop, and interestingly someone reported that it was fixed by disabling ACPI. But, his case was only for the speaker output, so not 100% identical with your case.
Quoted 4 lines
For some strange reason, the headphone output now works. I don't really know what I did different from my first tries where it wasn't working.
So it seems like I'm observing the same bug.
Yes, it sounds so...
Quoted 2 lines
Booting with acpi=off didn't change the behaviour, and the BIOS config is so stripped-down that it has no option to disable ACPI.
OK, then the report might be a false positive.
Quoted 4 lines
The only thing that I could find was that the atiixp (not ac97) registers
0x10and0x14change when inserting/removing a plug into the headphone jack. Unfortunately there is no public datasheed for the SB400 :(
The reg 0x10 is the register for reading an ac97 register value. Hence it's volatile.
The reg 0x14 is the read-only register indicating which ac97 slots (3-12, corresponding bit 0-9) are enabled for the next frame. So, this looks also irrelevant, too.
Sorry, currently I have no more clue. I'll try to ask ATI guys.
Takashi
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
At Mon, 27 Jun 2005 16:18:02 +0200,
Quoted 4 lines · I wrote:
Quoted 4 lines
For some strange reason, the headphone output now works. I don't really know what I did different from my first tries where it wasn't working.
Quoted 8 lines
Quoted 1 line
So it seems like I'm observing the same bug.
Yes, it sounds so...
Quoted 2 lines
Booting with acpi=off didn't change the behaviour, and the BIOS config is so stripped-down that it has no option to disable ACPI.
OK, then the report might be a false positive.
For reference: Check bugreports on ALSA BTS
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1162 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1193
Takashi
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click