No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
Hi all,
despite enabling all mixel elements and increasing all sliders to the maximum (or to other reasonable values) there is no sound from the internal speakers on an AMD Turion based MSI Megabook with ATI chip and ALC655 rev0.
There is a very low output on the headphone jack, but it is really far too low and barely hearable when the Master and PCM slider are set to the maximum.
I tried both 2.6.12 and 2.6.13 as well as building 1.0.10rc1 seperatly.
Any idea? What kind of debug output would be helpful?
Sincerely yours,
Signature · 3 lines
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
http://www.exactcode.de | http://www.t2-project.org
+49 (0)30 255 897 45Quoted 6 lines · René Rebe
Hi all,
despite enabling all mixel elements and increasing all sliders to the maximum (or to other reasonable values) there is no sound from the internal speakers on an AMD Turion based MSI Megabook with ATI chip and ALC655 rev0.
Quoted 6 lines
There is a very low output on the headphone jack, but it is really far too low and barely hearable when the Master and PCM slider are set to the maximum.
I tried both 2.6.12 and 2.6.13 as well as building 1.0.10rc1 seperatly.
Any idea? What kind of debug output would be helpful?
You aren't using the Gnome or KDE mixer are you?
Make sure you try it with alsamixer, and especially check the "External Amplifier" control (if you have it).
Lee
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Hi,
Lee, thanks for your mail.
Quoted 9 lines · Lee Revell
Quoted 9 lines
despite enabling all mixel elements and increasing all sliders to the maximum (or to other reasonable values) there is no sound from the internal speakers on an AMD Turion based MSI Megabook with ATI chip and ALC655 rev0.
There is a very low output on the headphone jack, but it is really far too low and barely hearable when the Master and PCM slider are set to the maximum.
Quoted 8 lines
Quoted 3 lines
I tried both 2.6.12 and 2.6.13 as well as building 1.0.10rc1 seperatly.
Any idea? What kind of debug output would be helpful?
You aren't using the Gnome or KDE mixer are you?
Make sure you try it with alsamixer, and especially check the "External Amplifier" control (if you have it).
The console is with me, so I used alsamixer as always. I tried every control - including external amplifier. Though the later has no effect at all.
Yours,
Signature · 3 lines
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
http://www.exactcode.de | http://www.t2-project.org
+49 (0)30 255 897 45At Mon, 29 Aug 2005 14:19:29 +0200,
Quoted 4 lines · René Rebe
despite enabling all mixel elements and increasing all sliders to the maximum (or to other reasonable values) there is no sound from the internal speakers on an AMD Turion based MSI Megabook with ATI chip and ALC655 rev0.
It's a known device which doesn't work so far. Possibly missing a vendor specific configuration like GPIO...
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Hi,
Quoted 8 lines · Takashi Iwai
Quoted 4 lines · René Rebe
despite enabling all mixel elements and increasing all sliders to the maximum (or to other reasonable values) there is no sound from the internal speakers on an AMD Turion based MSI Megabook with ATI chip and ALC655 rev0.
It's a known device which doesn't work so far. Possibly missing a vendor specific configuration like GPIO...
Anything I could look into to find out?
Yours,
Signature · 3 lines
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
http://www.exactcode.de | http://www.t2-project.org
+49 (0)30 255 897 45At Mon, 29 Aug 2005 18:20:20 +0200,
Quoted 11 lines · René Rebe
Hi,
Quoted 6 lines · Takashi Iwai
Quoted 4 lines · René Rebe
despite enabling all mixel elements and increasing all sliders to the maximum (or to other reasonable values) there is no sound from the internal speakers on an AMD Turion based MSI Megabook with ATI chip and ALC655 rev0.
Quoted 4 lines
Quoted 2 lines
It's a known device which doesn't work so far. Possibly missing a vendor specific configuration like GPIO...
Anything I could look into to find out?
At the last time Harald Welte and I tried to debug this, we couldn't find the culprit. See the thread on alsa-devel in June.
The ac97 registers seem OK, and I don't see any relevant registers of ATI IXP chip...
Could you try to give MSI a pressure to help this out a bit? (You can pass them my address if necessary, of course :)
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
At Mon, 29 Aug 2005 18:57:01 +0200,
Quoted 19 lines · I wrote:
At Mon, 29 Aug 2005 18:20:20 +0200,
Quoted 11 lines · René Rebe
Hi,
Quoted 6 lines · Takashi Iwai
Quoted 4 lines · René Rebe
despite enabling all mixel elements and increasing all sliders to the maximum (or to other reasonable values) there is no sound from the internal speakers on an AMD Turion based MSI Megabook with ATI chip and ALC655 rev0.
Quoted 4 lines
Quoted 2 lines
It's a known device which doesn't work so far. Possibly missing a vendor specific configuration like GPIO...
Anything I could look into to find out?
Quoted 8 lines
At the last time Harald Welte and I tried to debug this, we couldn't find the culprit. See the thread on alsa-devel in June.
The ac97 registers seem OK, and I don't see any relevant registers of ATI IXP chip...
Could you try to give MSI a pressure to help this out a bit? (You can pass them my address if necessary, of course :)
Anyway, /proc/asound/card0/codec97#0/* files would be needed for further debugging.
If it's related with EAPD, does changing the ac97 reg 7ah (misc control) bit 1 have any influence?
You can change the ac97 register value by writing above ac97#0-0+regs file. See alsa-kernel/Documentation/Procfiles.txt for details.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Hi,
Quoted 7 lines · Takashi Iwai
Anyway, /proc/asound/card0/codec97#0/* files would be needed for further debugging.
If it's related with EAPD, does changing the ac97 reg 7ah (misc control) bit 1 have any influence?
You can change the ac97 register value by writing above ac97#0-0+regs file. Seealsa-kernel/Documentation/Procfiles.txtfor details.
Yes. The register had 0:7a = 2092, I echoed "7a 2090" into the proc file and voila - sound is working!
Thank you very much!,
Signature · 3 lines
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
http://www.exactcode.de | http://www.t2-project.org
+49 (0)30 255 897 45At Tue, 30 Aug 2005 11:30:38 +0200,
Quoted 8 lines · René Rebe
Hi,
Quoted 3 lines · Takashi Iwai
Anyway, /proc/asound/card0/codec97#0/* files would be needed for further debugging.
Quoted 7 lines
Quoted 4 lines
If it's related with EAPD, does changing the ac97 reg 7ah (misc control) bit 1 have any influence?
You can change the ac97 register value by writing above ac97#0-0+regs file. Seealsa-kernel/Documentation/Procfiles.txtfor details.Yes. The register had 0:7a = 2092, I echoed "7a 2090" into the proc file and voila - sound is working!
That's good to know. Now we need to turn this on automatically at the start up.
Could you attach /proc/asound/card0/codec97#0/* files? Also please give the output of "lspci -nv", too.
thanks,
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Hi,
Quoted 5 lines · Takashi Iwai
That's good to know. Now we need to turn this on automatically at the start up.
Could you attach /proc/asound/card0/codec97#0/* files? Also please give the output of "lspci -nv", too.
0000:00:00.0 Class 0600: 1002:5950
Subsystem: 1462:0131
Flags: bus master, 66Mhz, medium devsel, latency 0
0000:00:01.0 Class 0604: 1002:5a3f
Flags: bus master, 66Mhz, medium devsel, latency 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: fbe00000-fbefffff
Prefetchable memory behind bridge: 00000000f4000000-00000000faf00000
Expansion ROM at 0000d000 [disabled] [size=4K]
Capabilities: [44] #08 [a803]
Capabilities: [b0] #0d [0000]0000:00:13.0 Class 0c03: 1002:4374 (prog-if 10)
Subsystem: 1002:4374
Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 11 Memory at fbdfd000 (32-bit, non-prefetchable)
Capabilities: [d0] Message Signalled Interrupts: 64bit- Queue=0/0
Enable-
0000:00:13.1 Class 0c03: 1002:4375 (prog-if 10)
Subsystem: 1002:4375
Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 11 Memory at fbdfe000 (32-bit, non-prefetchable)
Capabilities: [d0] Message Signalled Interrupts: 64bit- Queue=0/0
Enable-
0000:00:13.2 Class 0c03: 1002:4373 (prog-if 20)
Subsystem: 1002:4373
Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 11 Memory at fbdff000 (32-bit, non-prefetchable)
Capabilities: [dc] Power Management version 2
Capabilities: [d0] Message Signalled Interrupts: 64bit- Queue=0/0
Enable-
0000:00:14.0 Class 0c05: 1002:4372 (rev 10)
Subsystem: 1462:0131
Flags: 66Mhz, medium devsel
I/O ports at c800
Memory at fbdfc400 (32-bit, non-prefetchable) [size=1K]
Capabilities: [b0] #08 [a802]0000:00:14.1 Class 0101: 1002:4376 (prog-if 8a [Master SecP PriP])
Subsystem: 1462:0131
Flags: bus master, 66Mhz, medium devsel, latency 0, IRQ 11 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 Class 0601: 1002:4377
Flags: bus master, 66Mhz, medium devsel, latency 0
0000:00:14.4 Class 0604: 1002:4371 (prog-if 01)
Flags: bus master, 66Mhz, medium devsel, latency 64
Bus: primary=00, secondary=02, subordinate=0a, sec-latency=64 I/O behind bridge: 0000e000-0000efff
Memory behind bridge: fbf00000-fbffffff Prefetchable memory behind bridge: 20000000-24ffffff Expansion ROM at 0000e000 [disabled] [size=4K]
0000:00:14.5 Class 0401: 1002:4370 (rev 01)
Subsystem: 1462:0131
Flags: bus master, 66Mhz, slow devsel, latency 64, IRQ 10 Memory at fbdfc800 (32-bit, non-prefetchable)
Capabilities: [40] Message Signalled Interrupts: 64bit- Queue=0/0
Enable-
0000:00:14.6 Class 0703: 1002:4378 (rev 01)
Subsystem: 1462:0131
Flags: bus master, 66Mhz, slow devsel, latency 64, IRQ 10 Memory at fbdfcc00 (32-bit, non-prefetchable)
Capabilities: [40] Message Signalled Interrupts: 64bit- Queue=0/0
Enable-
0000:00:18.0 Class 0600: 1022:1100
Flags: fast devsel
Capabilities: [80] #08 [2101]
0000:00:18.1 Class 0600: 1022:1101
Flags: fast devsel
0000:00:18.2 Class 0600: 1022:1102
Flags: fast devsel
0000:00:18.3 Class 0600: 1022:1103
Flags: fast devsel
0000:01:05.0 Class 0300: 1002:5955
Subsystem: 1462:0131
Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 10
Memory at f4000000 (32-bit, prefetchable) [size=f8000000]
I/O ports at d800 [size=256]
Memory at fbef0000 (32-bit, non-prefetchable) [size=64K]
Expansion ROM at 00020000 [disabled]
Capabilities: [50] Power Management version 20000:02:03.0 Class 0200: 10ec:8139 (rev 10)
Subsystem: 1462:0131
Flags: bus master, medium devsel, latency 64, IRQ 5
I/O ports at e800 [size=576M]
Memory at fbfffc00 (32-bit, non-prefetchable) [size=256]
Expansion ROM at 00010000 [disabled]
Capabilities: [50] Power Management version 20000:02:04.0 Class 0607: 1180:0476 (rev ac)
Subsystem: 1462:0131
Flags: bus master, medium devsel, latency 168, IRQ 11
Memory at fbf00000 (32-bit, non-prefetchable)
Bus: primary=02, secondary=03, subordinate=06, sec-latency=176
Memory window 0: 20000000-21fff000 (prefetchable)
Memory window 1: 26000000-27fff000
I/O window 0: 0000e000-0000e0ff
I/O window 1: 0000ec00-0000ecff
16-bit legacy interface ports at 00010000:02:04.1 Class 0607: 1180:0476 (rev ac)
Subsystem: 1462:0131
Flags: bus master, medium devsel, latency 168, IRQ 6
Memory at fbf01000 (32-bit, non-prefetchable)
Bus: primary=02, secondary=07, subordinate=0a, sec-latency=176
Memory window 0: 22000000-23fff000 (prefetchable)
Memory window 1: 28000000-29fff000
I/O window 0: 00001000-000010ff
I/O window 1: 00001400-000014ff
16-bit legacy interface ports at 00010000:02:04.2 Class 0c00: 1180:0552 (rev 04) (prog-if 10)
Subsystem: 1462:0131
Flags: bus master, medium devsel, latency 64, IRQ 7 Memory at fbfff000 (32-bit, non-prefetchable)
Capabilities: [dc] Power Management version 2
0000:02:09.0 Class 0200: 17fe:2220
Subsystem: 1462:6855
Flags: bus master, medium devsel, latency 64, IRQ 5 I/O ports at e400
Memory at fbfff800 (32-bit, non-prefetchable) [size=32] Memory at fbffe800 (32-bit, non-prefetchable) [size=2K]
Capabilities: [40] Power Management version 2
/proc/asound/card0/codec97#0/ac97#0-0
0-0/0: Realtek ALC655 rev 0
Revision : 0x00
Compat. Class : 0x00
Subsys. Vendor ID: 0xffff
Subsys. ID : 0xffff
Capabilities : DAC resolution : 16-bit ADC resolution : 16-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
Extended ID : codec=0 rev=2 LDAC SDAC CDAC DSA=0 SPDIF
Extended status : SPCV LDAC SDAC CDAC SPDIF=3/4
SPDIF Control : Consumer PCM Copyright Category=0x22 Generation=1
Rate=48kHz
/proc/asound/card0/codec97#0/ac97#0-0+regs
0:00 = 0000
0:02 = 1616
0:04 = 0000
0:06 = 801f
0:08 = 0000
0:0a = 0014
0:0c = 801f
0:0e = 801f
0:10 = 9f1f
0:12 = 9f1f
0:14 = 0000
0:16 = 9f1f
0:18 = 0707
0:1a = 0000
0:1c = 0000
0:1e = 0000
0:20 = 0400
0:22 = 0000
0:24 = 0000
0:26 = 000f
0:28 = 09c4
0:2a = 05c0
0:2c = bb80
0:2e = bb80
0:30 = bb80
0:32 = bb80
0:34 = 0000
0:36 = 9f9f
0:38 = 9f9f
0:3a = 2a20
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 = 8000
0:6c = 0000
0:6e = 0025
0:70 = 81e0
0:72 = 22e8
0:74 = 8000
0:76 = 0000
0:78 = 0007
0:7a = 2090
0:7c = 414c
0:7e = 4760
Signature · 3 lines
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
http://www.exactcode.de | http://www.t2-project.org
+49 (0)30 255 897 45At Tue, 30 Aug 2005 11:49:42 +0200,
Quoted 10 lines · René Rebe
Hi,
Quoted 5 lines · Takashi Iwai
That's good to know. Now we need to turn this on automatically at the start up.
Could you attach /proc/asound/card0/codec97#0/* files? Also please give the output of "lspci -nv", too.
(snip)
Thanks, could you try the patch below?
I hoped there is something else to detect the spdif-input capability, but it seems not. So, blacklisting the pci ssid seems to be the only way to go...
Harald, the patch might fix the problem on your laptop, too. Could you check it?
Takashi
Index: alsa-kernel/pci/ac97/ac97_patch.c
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v retrieving revision 1.93
pci/ac97/ac97_patch.c +7 -2
@@ -2145,8 +2145,13 @@ val =snd_ac97_read (ac97,0x7a );/* misc control */ if (ac97->id ==0x414c4780 )/* ALC658 */ val &= ~(1 <<1 );/* Pin 47 is spdif input pin */ -else /* ALC655 */ - val |= (1 <<1 );/* Pin 47 is spdif input pin */ +else {/* ALC655 */ +if (ac97->subsystem_vendor ==0x1462 && + ac97->subsystem_device ==0x0131 )/* MSI laptop */ + val &= ~(1 <<1 );/* Pin 47 is EAPD (for internal speaker) */ +else + val |= (1 <<1 );/* Pin 47 is spdif input pin */ + } val &= ~(1 <<12 );/* vref enable */ snd_ac97_write_cache (ac97,0x7a , val);/* set default: spdif-in enabled,
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Hi,
Quoted 1 line
Thanks, could you try the patch below?
Works for me (tm) for a make ; make install ; rmmod ; modprobe cycle. No reboot yet. But I'm confident that it will work and notify you if not.
Many thanks!
Signature · 3 lines
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
http://www.exactcode.de | http://www.t2-project.org
+49 (0)30 255 897 45At Tue, 30 Aug 2005 12:02:21 +0200,
Quoted 15 lines · I wrote:
At Tue, 30 Aug 2005 11:49:42 +0200,
Quoted 10 lines · René Rebe
Hi,
Quoted 5 lines · Takashi Iwai
That's good to know. Now we need to turn this on automatically at the start up.
Could you attach /proc/asound/card0/codec97#0/* files? Also please give the output of "lspci -nv", too.
(snip)
Quoted 8 lines
Thanks, could you try the patch below?
I hoped there is something else to detect the spdif-input capability, but it seems not. So, blacklisting the pci ssid seems to be the only way to go...
Harald, the patch might fix the problem on your laptop, too. Could you check it?
I found that Harald's case is a bit different. It uses ALC658 instead of ALC655, IIRC.
The patch below is a newer version with more comments.
Harald, please add the PCI SSID of your device in alc655_is_using_eapd() function and let me know whether it works.
This patch must work with René's machine, too.
Takashi
Index: alsa-kernel/pci/ac97/ac97_patch.c
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v retrieving revision 1.93
pci/ac97/ac97_patch.c +22 -3
@@ -2130,6 +2130,23 @@ .update_jacks = alc655_update_jacks }; +/* We set up pin 47 as SPDIF input like the datasheet's default. +* Some devices require this pin to use as EAPD control, typically for +* the internal speaker. +* Since this can't be detected automatically from the other registers, +* we need to use a blacklist with PCI SSID. +*/ +static inline int alc655_is_using_eapd (ac97_t *ac97) +{ +u32 subid = ((u32 )ac97->subsystem_vendor <<16 ) | ac97->subsystem_device; +switch (subid) { +case 0x14620131 :/* MSI laptop */ +/* add more here... */ +return 1 ; + } +return 0 ; +} +int patch_alc655 (ac97_t * ac97) {unsigned int val;
@@ -2143,10 +2160,12 @@/* adjust default values */ val =snd_ac97_read (ac97,0x7a );/* misc control */ -if (ac97->id ==0x414c4780 )/* ALC658 */ - val &= ~(1 <<1 );/* Pin 47 is spdif input pin */ -else /* ALC655 */ +if (alc655_is_using_eapd (ac97)) + val &= ~(1 <<1 );/* Pin 47 is EAPD */ +else val |= (1 <<1 );/* Pin 47 is spdif input pin */ +if (ac97->id ==0x414c4780 )/* ALC658 */ + val ^= (1 <<1 );/* this bit inversed on ALC658 */ val &= ~(1 <<12 );/* vref enable */ snd_ac97_write_cache (ac97,0x7a , val);/* set default: spdif-in enabled,
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 2 lines · Takashi Iwai
Harald, the patch might fix the problem on your laptop, too. Could you check it?
I've checked it (on 2.6.13-rc6): It doesn't change anything for me (i.e. headphone output works, speakers are silent). What a pity.
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 Tue, 30 Aug 2005 14:03:01 +0200,
Quoted 9 lines · Harald Welte
[1 <text/plain; us-ascii (quoted-printable)>]
Quoted 2 lines · Takashi Iwai
Harald, the patch might fix the problem on your laptop, too. Could you check it?
I've checked it (on 2.6.13-rc6): It doesn't change anything for me (i.e. headphone output works, speakers are silent). What a pity.
You'll likely to modify the patch. Check the second one I sent, and add the entry of your PCI SSID.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 9 lines · Takashi Iwai
Quoted 2 lines
Harald, the patch might fix the problem on your laptop, too. Could you check it?
I found that Harald's case is a bit different. It uses ALC658 instead of ALC655, IIRC.
The patch below is a newer version with more comments.Harald, please add the PCI SSID of your device in
alc655_is_using_eapd()function and let me know whether it works.
The PCI ID's are the same:
0000:00:14.6 0703: 1002:4378 (rev 01)
Subsystem: 1462:0131
Flags: bus master, 66MHz, slow devsel, latency 64, IRQ 5
Memory at fbdfcc00 (32-bit, non-prefetchable) [size=256]
Capabilities: [40] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-And unfortunately this patch also doesn't make the speakers work for me, sorry :(
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 Tue, 30 Aug 2005 14:24:23 +0200,
Quoted 14 lines · Harald Welte
Quoted 9 lines · Takashi Iwai
Quoted 2 lines
Harald, the patch might fix the problem on your laptop, too. Could you check it?
I found that Harald's case is a bit different. It uses ALC658 instead of ALC655, IIRC.
The patch below is a newer version with more comments.Harald, please add the PCI SSID of your device in
alc655_is_using_eapd()function and let me know whether it works.The PCI ID's are the same:
Quoted 8 lines
0000:00:14.6 0703: 1002:4378 (rev 01)
Subsystem: 1462:0131 Flags: bus master, 66MHz, slow devsel, latency 64, IRQ 5 Memory at fbdfcc00 (32-bit, non-prefetchable) [size=256] Capabilities: [40] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-And unfortunately this patch also doesn't make the speakers work for me, sorry :(
Hmm, did you turn on "External Amplifer" mixer switch? Anyway, could you attach the contents of /proc/asound/card0/codec97#0/* files again after the patch?
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 4 lines · Takashi Iwai
Quoted 2 lines
And unfortunately this patch also doesn't make the speakers work for me, sorry :(
Hmm, did you turn on "External Amplifer" mixer switch?
I tried it with enabled and disabled EA mixer switch, no change :(
However, I didn't reboot, I just unloaded snd_atiixp and snd-pcm-ac97 (unpatched), loaded snd-pcm-ac97 (patched) and snd_atiixp on top of it. Will try a "clean boot" just now.
Quoted 2 lines
Anyway, could you attach the contents of /proc/asound/card0/codec97#0/* files again after the patch?
See below.
Thanks!
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)
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 : SPCV LDAC SDAC CDAC SPDIF=6/9 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
0:00 = 0180
0:02 = 1112
0:04 = 0000
0:06 = 0000
0:08 = 0000
0:0a = 000e
0:0c = 001f
0:0e = 820e
0:10 = 0c0c
0:12 = 0d0d
0:14 = 0000
0:16 = 0d0d
0:18 = 0a0a
0:1a = 0000
0:1c = 0000
0:1e = 8000
0:20 = 0000
0:22 = 0000
0:24 = 0000
0:26 = 000f
0:28 = 09c7
0:2a = 05e1
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 = b001
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
At Tue, 30 Aug 2005 15:06:52 +0200,
Quoted 6 lines · Harald Welte
Quoted 3 lines · Takashi Iwai
Quoted 2 lines
And unfortunately this patch also doesn't make the speakers work for me, sorry :(
Quoted 7 lines
Quoted 1 line
Hmm, did you turn on "External Amplifer" mixer switch?
I tried it with enabled and disabled EA mixer switch, no change :(
However, I didn't reboot, I just unloaded
snd_atiixpand snd-pcm-ac97 (unpatched), loaded snd-pcm-ac97 (patched) andsnd_atiixpon top of it. Will try a "clean boot" just now.
Reloading modules should work...
Quoted 4 lines
Quoted 2 lines
Anyway, could you attach the contents of /proc/asound/card0/codec97#0/* files again after the patch?
See below.
(snip)
Quoted 1 line
0:7a = 40b0
Hmm, the bit 1 isn't set, i.e. the patch didn't do the right job.
Could you try to tune this manually by writing like
# echo 7a 40b2 > /proc/asound/card0/codec97#0/ac97#0-0+regs as root?
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 5 lines · Takashi Iwai
Quoted 3 lines
However, I didn't reboot, I just unloaded
snd_atiixpand snd-pcm-ac97 (unpatched), loaded snd-pcm-ac97 (patched) andsnd_atiixpon top of it. Will try a "clean boot" just now.Reloading modules should work...
Rebooting didn't change anything either. But I thought I'd try it just to make sure
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Anyway, could you attach the contents of /proc/asound/card0/codec97#0/* files again after the patch?
See below.
(snip)
Quoted 1 line
0:7a = 40b0
Hmm, the bit 1 isn't set, i.e. the patch didn't do the right job.
strange.
Quoted 3 lines
Could you try to tune this manually by writing like
# echo 7a 40b2 > /proc/asound/card0/codec97#0/ac97#0-0+regs as root?
done. doesn't change anything. I again re-tried with EA on/off and headphones plugged in and not plugged in. It still behaves exactly like the original kernel.
Thanks again.
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 Tue, 30 Aug 2005 15:59:40 +0200,
Quoted 8 lines · Harald Welte
Quoted 4 lines
Could you try to tune this manually by writing like
# echo 7a 40b2 > /proc/asound/card0/codec97#0/ac97#0-0+regs as root?done. doesn't change anything. I again re-tried with EA on/off and headphones plugged in and not plugged in. It still behaves exactly like the original kernel.
It's a pity. Just to be sure, compare the value of 0x7a in /proc/asound/card0/codec97#0/ac97#0-0+regs file after the procedure above.
I have no other clue yet...
thanks,
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 7 lines · Takashi Iwai
At Tue, 30 Aug 2005 15:59:40 +0200,
Quoted 5 lines · Harald Welte
Quoted 4 lines
Could you try to tune this manually by writing like
# echo 7a 40b2 > /proc/asound/card0/codec97#0/ac97#0-0+regs as root?
Quoted 7 lines
Quoted 3 lines
done. doesn't change anything. I again re-tried with EA on/off and headphones plugged in and not plugged in. It still behaves exactly like the original kernel.
It's a pity. Just to be sure, compare the value of
0x7ain /proc/asound/card0/codec97#0/ac97#0-0+regs file after the procedure above.
yes, I did that. the register has been set to the value I wrote to it.
Quoted 1 line
I have no other clue yet...
No problem, it's not all that important... I didn't buy the device because of it's lousy notebook speakers anyway ;)
Thanks again,
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 Tue, 30 Aug 2005 16:36:36 +0200,
Quoted 17 lines · Harald Welte
Quoted 7 lines · Takashi Iwai
At Tue, 30 Aug 2005 15:59:40 +0200,
Quoted 5 lines · Harald Welte
Quoted 4 lines
Could you try to tune this manually by writing like
# echo 7a 40b2 > /proc/asound/card0/codec97#0/ac97#0-0+regs as root?Quoted 7 lines
Quoted 3 lines
done. doesn't change anything. I again re-tried with EA on/off and headphones plugged in and not plugged in. It still behaves exactly like the original kernel.
It's a pity. Just to be sure, compare the value of
0x7ain /proc/asound/card0/codec97#0/ac97#0-0+regs file after the procedure above.
Quoted 6 lines
yes, I did that. the register has been set to the value I wrote to it.
Quoted 1 line
I have no other clue yet...
No problem, it's not all that important... I didn't buy the device because of it's lousy notebook speakers anyway ;)
Yesterday there was a bugreport, possibly about the same device as you have.
Could you try the patch below?
The point of the patch is to turn on reg 0x74 0x0800.
Takashi
Index: alsa-kernel/pci/ac97/ac97_codec.c
===================================================================
RCS file: /home/tiwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v retrieving revision 1.185
pci/ac97/ac97_codec.c +1 -0
@@ -112,6 +112,7 @@ { 0x414c4723, 0xffffffff, "ALC650F", NULL, NULL }, /* already patched */ { 0x414c4720, 0xfffffff0, "ALC650", patch_alc650, NULL }, { 0x414c4760, 0xfffffff0, "ALC655", patch_alc655, NULL }, +{ 0x414c4781, 0xffffffff, "ALC658D", NULL, NULL }, /* already patched */ { 0x414c4780, 0xfffffff0, "ALC658", patch_alc655, NULL }, { 0x414c4790, 0xfffffff0, "ALC850", patch_alc850, NULL }, { 0x414c4730, 0xffffffff, "ALC101", NULL, NULL },
Index: alsa-kernel/pci/ac97/ac97_id.h
===================================================================
RCS file: /home/tiwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_id.h,v retrieving revision 1.12
pci/ac97/ac97_id.h +1 -0
@@ -52,6 +52,7 @@#define AC97_ID_ALC650F 0x414c4723#define AC97_ID_ALC655 0x414c4760#define AC97_ID_ALC658 0x414c4780 +#define AC97_ID_ALC658D 0x414c4781#define AC97_ID_ALC850 0x414c4790#define AC97_ID_YMF753 0x594d4803#define AC97_ID_VT1616 0x49434551
Index: alsa-kernel/pci/ac97/ac97_patch.c
===================================================================
RCS file: /home/tiwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v retrieving revision 1.94
pci/ac97/ac97_patch.c +13 -2
@@ -2134,7 +2134,13 @@ {unsigned int val; - ac97->spec.dev_flags = (ac97->id ==0x414c4780 );/* ALC658 */ +if (ac97->id ==AC97_ID_ALC658D ) { + ac97->spec.dev_flags =1 ;/* ALC658 */ +if ((snd_ac97_read (ac97,AC97_ALC650_REVISION ) &0x3f ) ==2 ) { + ac97->id =AC97_ID_ALC658D ; + ac97->spec.dev_flags =2 ; + } + } ac97->build_ops = &patch_alc655_ops;
@@ -2143,7 +2149,7 @@/* adjust default values */ val =snd_ac97_read (ac97,0x7a );/* misc control */ -if (ac97->id ==0x414c4780 )/* ALC658 */ +if (ac97->spec.dev_flags)/* ALC658 */ val &= ~(1 <<1 );/* Pin 47 is spdif input pin */ else {/* ALC655 */ if (ac97->subsystem_vendor == 0x1462 &&
@@ -2164,6 +2170,11 @@/* full DAC volume */ snd_ac97_write_cache (ac97,AC97_ALC650_SURR_DAC_VOL ,0x0808 );snd_ac97_write_cache (ac97,AC97_ALC650_LFE_DAC_VOL ,0x0808 ); + +/* update undocumented bit... */ +if (ac97->id ==AC97_ID_ALC658D ) +snd_ac97_update_bits (ac97,0x74 ,0x0800 ,0x0800 ); +return 0 ; }
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
At Fri, 02 Sep 2005 12:04:28 +0200,
Quoted 3 lines · I wrote:
Could you try the patch below?
The point of the patch is to turn on reg0x740x0800.
There was a typo. The fixed patch is below.
Takashi
Index: alsa-kernel/pci/ac97/ac97_codec.c
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v retrieving revision 1.185
pci/ac97/ac97_codec.c +1 -0
@@ -112,6 +112,7 @@ { 0x414c4723, 0xffffffff, "ALC650F", NULL, NULL }, /* already patched */ { 0x414c4720, 0xfffffff0, "ALC650", patch_alc650, NULL }, { 0x414c4760, 0xfffffff0, "ALC655", patch_alc655, NULL }, +{ 0x414c4781, 0xffffffff, "ALC658D", NULL, NULL }, /* already patched */ { 0x414c4780, 0xfffffff0, "ALC658", patch_alc655, NULL }, { 0x414c4790, 0xfffffff0, "ALC850", patch_alc850, NULL }, { 0x414c4730, 0xffffffff, "ALC101", NULL, NULL },
Index: alsa-kernel/pci/ac97/ac97_id.h
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_id.h,v retrieving revision 1.12
pci/ac97/ac97_id.h +1 -0
@@ -52,6 +52,7 @@#define AC97_ID_ALC650F 0x414c4723#define AC97_ID_ALC655 0x414c4760#define AC97_ID_ALC658 0x414c4780 +#define AC97_ID_ALC658D 0x414c4781#define AC97_ID_ALC850 0x414c4790#define AC97_ID_YMF753 0x594d4803#define AC97_ID_VT1616 0x49434551
Index: alsa-kernel/pci/ac97/ac97_patch.c
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v retrieving revision 1.94
pci/ac97/ac97_patch.c +13 -2
@@ -2134,7 +2134,13 @@ {unsigned int val; - ac97->spec.dev_flags = (ac97->id ==0x414c4780 );/* ALC658 */ +if (ac97->id ==AC97_ID_ALC658 ) { + ac97->spec.dev_flags =1 ;/* ALC658 */ +if ((snd_ac97_read (ac97,AC97_ALC650_REVISION ) &0x3f ) ==2 ) { + ac97->id =AC97_ID_ALC658D ; + ac97->spec.dev_flags =2 ; + } + } ac97->build_ops = &patch_alc655_ops;
@@ -2143,7 +2149,7 @@/* adjust default values */ val =snd_ac97_read (ac97,0x7a );/* misc control */ -if (ac97->id ==0x414c4780 )/* ALC658 */ +if (ac97->spec.dev_flags)/* ALC658 */ val &= ~(1 <<1 );/* Pin 47 is spdif input pin */ else {/* ALC655 */ if (ac97->subsystem_vendor == 0x1462 &&
@@ -2164,6 +2170,11 @@/* full DAC volume */ snd_ac97_write_cache (ac97,AC97_ALC650_SURR_DAC_VOL ,0x0808 );snd_ac97_write_cache (ac97,AC97_ALC650_LFE_DAC_VOL ,0x0808 ); + +/* update undocumented bit... */ +if (ac97->id ==AC97_ID_ALC658D ) +snd_ac97_update_bits (ac97,0x74 ,0x0800 ,0x0800 ); +return 0 ; }
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Quoted 7 lines · Takashi Iwai
At Fri, 02 Sep 2005 12:04:28 +0200,
Quoted 3 lines · I wrote:
Could you try the patch below?
The point of the patch is to turn on reg0x740x0800.There was a typo. The fixed patch is below.
Thanks, I'll try later this afternoon.
btw: In case this doesn't work, please don't invest any further time
into this. The device was actually a GPL violation, and as I now see,
the vendor-provided kernel objectcode (based on 2.6.6) produces correct sound output, whereas the sourcecode they ship doesn't. So I've now asked my lawyer to send them a nice letter indicating that the soucre code they provide is not the "full corresponding source code" and that they need to publish the changes they did - including those that make the speakers work :)
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)