* No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
@ 2005-08-29 12:19 René Rebe
2005-08-29 14:33 ` Lee Revell
2005-08-29 15:40 ` [Alsa-devel] " Takashi Iwai
0 siblings, 2 replies; 25+ messages in thread
From: René Rebe @ 2005-08-29 12:19 UTC (permalink / raw)
To: alsa-user, alsa-devel
[-- Attachment #1: Type: text/plain, Size: 718 bytes --]
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,
--
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
http://www.exactcode.de | http://www.t2-project.org
+49 (0)30 255 897 45
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-29 12:19 No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270) René Rebe
@ 2005-08-29 14:33 ` Lee Revell
2005-08-29 15:34 ` René Rebe
2005-08-29 15:40 ` [Alsa-devel] " Takashi Iwai
1 sibling, 1 reply; 25+ messages in thread
From: Lee Revell @ 2005-08-29 14:33 UTC (permalink / raw)
To: René Rebe; +Cc: alsa-user, alsa-devel
On Mon, 2005-08-29 at 14:19 +0200, René Rebe wrote:
> 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?
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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-29 14:33 ` Lee Revell
@ 2005-08-29 15:34 ` René Rebe
0 siblings, 0 replies; 25+ messages in thread
From: René Rebe @ 2005-08-29 15:34 UTC (permalink / raw)
To: Lee Revell; +Cc: alsa-user, alsa-devel
[-- Attachment #1: Type: text/plain, Size: 1156 bytes --]
Hi,
Lee, thanks for your mail.
On Monday 29 August 2005 16:33, Lee Revell wrote:
> > 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?
>
> 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,
--
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
http://www.exactcode.de | http://www.t2-project.org
+49 (0)30 255 897 45
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: [Alsa-devel] No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-29 12:19 No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270) René Rebe
2005-08-29 14:33 ` Lee Revell
@ 2005-08-29 15:40 ` Takashi Iwai
2005-08-29 16:20 ` René Rebe
1 sibling, 1 reply; 25+ messages in thread
From: Takashi Iwai @ 2005-08-29 15:40 UTC (permalink / raw)
To: René Rebe; +Cc: alsa-user, alsa-devel
At Mon, 29 Aug 2005 14:19:29 +0200,
René Rebe wrote:
>
> 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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-29 15:40 ` [Alsa-devel] " Takashi Iwai
@ 2005-08-29 16:20 ` René Rebe
2005-08-29 16:57 ` Takashi Iwai
0 siblings, 1 reply; 25+ messages in thread
From: René Rebe @ 2005-08-29 16:20 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai
[-- Attachment #1: Type: text/plain, Size: 663 bytes --]
Hi,
On Monday 29 August 2005 17:40, Takashi Iwai wrote:
> René Rebe wrote:
> > 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,
--
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
http://www.exactcode.de | http://www.t2-project.org
+49 (0)30 255 897 45
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-29 16:20 ` René Rebe
@ 2005-08-29 16:57 ` Takashi Iwai
2005-08-29 17:06 ` Takashi Iwai
0 siblings, 1 reply; 25+ messages in thread
From: Takashi Iwai @ 2005-08-29 16:57 UTC (permalink / raw)
To: René Rebe; +Cc: alsa-devel
At Mon, 29 Aug 2005 18:20:20 +0200,
René Rebe wrote:
>
> Hi,
>
> On Monday 29 August 2005 17:40, Takashi Iwai wrote:
>
> > René Rebe wrote:
> > > 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?
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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-29 16:57 ` Takashi Iwai
@ 2005-08-29 17:06 ` Takashi Iwai
2005-08-30 9:30 ` René Rebe
0 siblings, 1 reply; 25+ messages in thread
From: Takashi Iwai @ 2005-08-29 17:06 UTC (permalink / raw)
To: René Rebe; +Cc: alsa-devel
At Mon, 29 Aug 2005 18:57:01 +0200,
I wrote:
>
> At Mon, 29 Aug 2005 18:20:20 +0200,
> René Rebe wrote:
> >
> > Hi,
> >
> > On Monday 29 August 2005 17:40, Takashi Iwai wrote:
> >
> > > René Rebe wrote:
> > > > 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?
>
> 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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-29 17:06 ` Takashi Iwai
@ 2005-08-30 9:30 ` René Rebe
2005-08-30 9:43 ` Takashi Iwai
0 siblings, 1 reply; 25+ messages in thread
From: René Rebe @ 2005-08-30 9:30 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai
[-- Attachment #1: Type: text/plain, Size: 701 bytes --]
Hi,
On Monday 29 August 2005 19:06, Takashi Iwai wrote:
> 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.
Yes. The register had 0:7a = 2092, I echoed "7a 2090" into the proc file and
voila - sound is working!
Thank you very much!,
--
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
http://www.exactcode.de | http://www.t2-project.org
+49 (0)30 255 897 45
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 9:30 ` René Rebe
@ 2005-08-30 9:43 ` Takashi Iwai
2005-08-30 9:49 ` René Rebe
0 siblings, 1 reply; 25+ messages in thread
From: Takashi Iwai @ 2005-08-30 9:43 UTC (permalink / raw)
To: René Rebe; +Cc: alsa-devel
At Tue, 30 Aug 2005 11:30:38 +0200,
René Rebe wrote:
>
> Hi,
>
> On Monday 29 August 2005 19:06, Takashi Iwai wrote:
>
> > 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.
>
> 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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 9:43 ` Takashi Iwai
@ 2005-08-30 9:49 ` René Rebe
2005-08-30 10:02 ` Takashi Iwai
0 siblings, 1 reply; 25+ messages in thread
From: René Rebe @ 2005-08-30 9:49 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 7935 bytes --]
Hi,
On Tuesday 30 August 2005 11:43, Takashi Iwai wrote:
> 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 2
0000: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 2
0000: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 0001
0000: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 0001
0000: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
--
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
http://www.exactcode.de | http://www.t2-project.org
+49 (0)30 255 897 45
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 9:49 ` René Rebe
@ 2005-08-30 10:02 ` Takashi Iwai
2005-08-30 10:43 ` René Rebe
` (2 more replies)
0 siblings, 3 replies; 25+ messages in thread
From: Takashi Iwai @ 2005-08-30 10:02 UTC (permalink / raw)
To: René Rebe; +Cc: Harald Welte, alsa-devel
At Tue, 30 Aug 2005 11:49:42 +0200,
René Rebe wrote:
>
> Hi,
>
> On Tuesday 30 August 2005 11:43, Takashi Iwai wrote:
>
> > 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
diff -u -r1.93 ac97_patch.c
--- alsa-kernel/pci/ac97/ac97_patch.c 22 Aug 2005 12:42:23 -0000 1.93
+++ alsa-kernel/pci/ac97/ac97_patch.c 30 Aug 2005 09:58:55 -0000
@@ -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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 10:02 ` Takashi Iwai
@ 2005-08-30 10:43 ` René Rebe
2005-08-30 10:57 ` Takashi Iwai
2005-08-30 12:03 ` Harald Welte
2 siblings, 0 replies; 25+ messages in thread
From: René Rebe @ 2005-08-30 10:43 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai, Harald Welte
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
Hi,
> 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!
--
René Rebe - Rubensstr. 64 - 12157 Berlin (Europe / Germany)
http://www.exactcode.de | http://www.t2-project.org
+49 (0)30 255 897 45
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 10:02 ` Takashi Iwai
2005-08-30 10:43 ` René Rebe
@ 2005-08-30 10:57 ` Takashi Iwai
2005-08-30 12:24 ` Harald Welte
2005-08-30 12:03 ` Harald Welte
2 siblings, 1 reply; 25+ messages in thread
From: Takashi Iwai @ 2005-08-30 10:57 UTC (permalink / raw)
To: Harald Welte, René Rebe, alsa-devel
At Tue, 30 Aug 2005 12:02:21 +0200,
I wrote:
>
> At Tue, 30 Aug 2005 11:49:42 +0200,
> René Rebe wrote:
> >
> > Hi,
> >
> > On Tuesday 30 August 2005 11:43, Takashi Iwai wrote:
> >
> > > 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?
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
diff -u -r1.93 ac97_patch.c
--- alsa-kernel/pci/ac97/ac97_patch.c 22 Aug 2005 12:42:23 -0000 1.93
+++ alsa-kernel/pci/ac97/ac97_patch.c 30 Aug 2005 10:55:26 -0000
@@ -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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 10:02 ` Takashi Iwai
2005-08-30 10:43 ` René Rebe
2005-08-30 10:57 ` Takashi Iwai
@ 2005-08-30 12:03 ` Harald Welte
2005-08-30 12:18 ` Takashi Iwai
2 siblings, 1 reply; 25+ messages in thread
From: Harald Welte @ 2005-08-30 12:03 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Rene Rebe, alsa-devel
[-- Attachment #1: Type: text/plain, Size: 602 bytes --]
On Tue, Aug 30, 2005 at 12:02:21PM +0200, Takashi Iwai wrote:
> 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.
--
- Harald Welte <laforge@gnumonks.org> http://gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 12:03 ` Harald Welte
@ 2005-08-30 12:18 ` Takashi Iwai
0 siblings, 0 replies; 25+ messages in thread
From: Takashi Iwai @ 2005-08-30 12:18 UTC (permalink / raw)
To: Harald Welte; +Cc: Rene Rebe, alsa-devel
At Tue, 30 Aug 2005 14:03:01 +0200,
Harald Welte wrote:
>
> [1 <text/plain; us-ascii (quoted-printable)>]
> On Tue, Aug 30, 2005 at 12:02:21PM +0200, Takashi Iwai wrote:
>
> > 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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 10:57 ` Takashi Iwai
@ 2005-08-30 12:24 ` Harald Welte
2005-08-30 12:42 ` Takashi Iwai
0 siblings, 1 reply; 25+ messages in thread
From: Harald Welte @ 2005-08-30 12:24 UTC (permalink / raw)
To: Takashi Iwai; +Cc: René Rebe, alsa-devel
[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]
On Tue, Aug 30, 2005 at 12:57:54PM +0200, Takashi Iwai wrote:
> > 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 :(
--
- Harald Welte <laforge@gnumonks.org> http://gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 12:24 ` Harald Welte
@ 2005-08-30 12:42 ` Takashi Iwai
2005-08-30 13:06 ` Harald Welte
0 siblings, 1 reply; 25+ messages in thread
From: Takashi Iwai @ 2005-08-30 12:42 UTC (permalink / raw)
To: Harald Welte; +Cc: René Rebe, alsa-devel
At Tue, 30 Aug 2005 14:24:23 +0200,
Harald Welte wrote:
>
> On Tue, Aug 30, 2005 at 12:57:54PM +0200, Takashi Iwai wrote:
> > > 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 :(
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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 12:42 ` Takashi Iwai
@ 2005-08-30 13:06 ` Harald Welte
2005-08-30 13:14 ` Takashi Iwai
0 siblings, 1 reply; 25+ messages in thread
From: Harald Welte @ 2005-08-30 13:06 UTC (permalink / raw)
To: Takashi Iwai; +Cc: René Rebe, alsa-devel
[-- Attachment #1.1: Type: text/plain, Size: 917 bytes --]
On Tue, Aug 30, 2005 at 02:42:26PM +0200, Takashi Iwai wrote:
> > 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.
> Anyway, could you attach the contents of
> /proc/asound/card0/codec97#0/* files again after the patch?
See below.
Thanks!
--
- Harald Welte <laforge@gnumonks.org> http://gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
[-- Attachment #1.2: f1 --]
[-- Type: text/plain, Size: 776 bytes --]
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
[-- Attachment #1.3: f2 --]
[-- Type: text/plain, Size: 768 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 13:06 ` Harald Welte
@ 2005-08-30 13:14 ` Takashi Iwai
2005-08-30 13:59 ` Harald Welte
0 siblings, 1 reply; 25+ messages in thread
From: Takashi Iwai @ 2005-08-30 13:14 UTC (permalink / raw)
To: Harald Welte; +Cc: René Rebe, alsa-devel
At Tue, 30 Aug 2005 15:06:52 +0200,
Harald Welte wrote:
>
> On Tue, Aug 30, 2005 at 02:42:26PM +0200, Takashi Iwai wrote:
>
> > > 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.
Reloading modules should work...
> > Anyway, could you attach the contents of
> > /proc/asound/card0/codec97#0/* files again after the patch?
>
> See below.
(snip)
> 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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 13:14 ` Takashi Iwai
@ 2005-08-30 13:59 ` Harald Welte
2005-08-30 14:12 ` Takashi Iwai
0 siblings, 1 reply; 25+ messages in thread
From: Harald Welte @ 2005-08-30 13:59 UTC (permalink / raw)
To: Takashi Iwai; +Cc: René Rebe, alsa-devel
[-- Attachment #1: Type: text/plain, Size: 1266 bytes --]
On Tue, Aug 30, 2005 at 03:14:48PM +0200, Takashi Iwai wrote:
> > 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.
>
> Reloading modules should work...
Rebooting didn't change anything either. But I thought I'd try it just
to make sure
> > > Anyway, could you attach the contents of
> > > /proc/asound/card0/codec97#0/* files again after the patch?
> >
> > See below.
> (snip)
> > 0:7a = 40b0
>
> Hmm, the bit 1 isn't set, i.e. the patch didn't do the right job.
strange.
> 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.
--
- Harald Welte <laforge@gnumonks.org> http://gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 13:59 ` Harald Welte
@ 2005-08-30 14:12 ` Takashi Iwai
2005-08-30 14:36 ` Harald Welte
0 siblings, 1 reply; 25+ messages in thread
From: Takashi Iwai @ 2005-08-30 14:12 UTC (permalink / raw)
To: Harald Welte; +Cc: René Rebe, alsa-devel
At Tue, 30 Aug 2005 15:59:40 +0200,
Harald Welte wrote:
>
> > 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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 14:12 ` Takashi Iwai
@ 2005-08-30 14:36 ` Harald Welte
2005-09-02 10:04 ` Takashi Iwai
0 siblings, 1 reply; 25+ messages in thread
From: Harald Welte @ 2005-08-30 14:36 UTC (permalink / raw)
To: Takashi Iwai; +Cc: René Rebe, alsa-devel
[-- Attachment #1: Type: text/plain, Size: 1163 bytes --]
On Tue, Aug 30, 2005 at 04:12:41PM +0200, Takashi Iwai wrote:
> At Tue, 30 Aug 2005 15:59:40 +0200,
> Harald Welte wrote:
> >
> > > 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.
yes, I did that. the register has been set to the value I wrote to it.
> 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,
--
- Harald Welte <laforge@gnumonks.org> http://gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-08-30 14:36 ` Harald Welte
@ 2005-09-02 10:04 ` Takashi Iwai
2005-09-02 10:14 ` Takashi Iwai
0 siblings, 1 reply; 25+ messages in thread
From: Takashi Iwai @ 2005-09-02 10:04 UTC (permalink / raw)
To: Harald Welte; +Cc: alsa-devel
At Tue, 30 Aug 2005 16:36:36 +0200,
Harald Welte wrote:
>
> On Tue, Aug 30, 2005 at 04:12:41PM +0200, Takashi Iwai wrote:
> > At Tue, 30 Aug 2005 15:59:40 +0200,
> > Harald Welte wrote:
> > >
> > > > 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.
>
> yes, I did that. the register has been set to the value I wrote to it.
>
> > 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
diff -u -r1.185 ac97_codec.c
--- alsa-kernel/pci/ac97/ac97_codec.c 16 Aug 2005 16:02:14 -0000 1.185
+++ alsa-kernel/pci/ac97/ac97_codec.c 1 Sep 2005 20:01:38 -0000
@@ -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
diff -u -r1.12 ac97_id.h
--- alsa-kernel/pci/ac97/ac97_id.h 3 Jan 2005 22:02:45 -0000 1.12
+++ alsa-kernel/pci/ac97/ac97_id.h 1 Sep 2005 20:06:26 -0000
@@ -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
diff -u -r1.94 ac97_patch.c
--- alsa-kernel/pci/ac97/ac97_patch.c 31 Aug 2005 16:29:53 -0000 1.94
+++ alsa-kernel/pci/ac97/ac97_patch.c 1 Sep 2005 20:02:47 -0000
@@ -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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-09-02 10:04 ` Takashi Iwai
@ 2005-09-02 10:14 ` Takashi Iwai
2005-09-02 11:10 ` Harald Welte
0 siblings, 1 reply; 25+ messages in thread
From: Takashi Iwai @ 2005-09-02 10:14 UTC (permalink / raw)
To: Harald Welte; +Cc: alsa-devel
At Fri, 02 Sep 2005 12:04:28 +0200,
I wrote:
>
> Could you try the patch below?
> The point of the patch is to turn on reg 0x74 0x0800.
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
diff -u -r1.185 ac97_codec.c
--- alsa-kernel/pci/ac97/ac97_codec.c 16 Aug 2005 16:02:14 -0000 1.185
+++ alsa-kernel/pci/ac97/ac97_codec.c 2 Sep 2005 10:13:19 -0000
@@ -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
diff -u -r1.12 ac97_id.h
--- alsa-kernel/pci/ac97/ac97_id.h 3 Jan 2005 22:02:45 -0000 1.12
+++ alsa-kernel/pci/ac97/ac97_id.h 2 Sep 2005 10:13:19 -0000
@@ -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
diff -u -r1.94 ac97_patch.c
--- alsa-kernel/pci/ac97/ac97_patch.c 31 Aug 2005 16:29:53 -0000 1.94
+++ alsa-kernel/pci/ac97/ac97_patch.c 2 Sep 2005 10:13:19 -0000
@@ -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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270)
2005-09-02 10:14 ` Takashi Iwai
@ 2005-09-02 11:10 ` Harald Welte
0 siblings, 0 replies; 25+ messages in thread
From: Harald Welte @ 2005-09-02 11:10 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 1148 bytes --]
On Fri, Sep 02, 2005 at 12:14:35PM +0200, Takashi Iwai wrote:
> At Fri, 02 Sep 2005 12:04:28 +0200,
> I wrote:
> >
> > Could you try the patch below?
> > The point of the patch is to turn on reg 0x74 0x0800.
>
> 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 :)
--
- Harald Welte <laforge@gnumonks.org> http://gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2005-09-02 11:10 UTC | newest]
Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-29 12:19 No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270) René Rebe
2005-08-29 14:33 ` Lee Revell
2005-08-29 15:34 ` René Rebe
2005-08-29 15:40 ` [Alsa-devel] " Takashi Iwai
2005-08-29 16:20 ` René Rebe
2005-08-29 16:57 ` Takashi Iwai
2005-08-29 17:06 ` Takashi Iwai
2005-08-30 9:30 ` René Rebe
2005-08-30 9:43 ` Takashi Iwai
2005-08-30 9:49 ` René Rebe
2005-08-30 10:02 ` Takashi Iwai
2005-08-30 10:43 ` René Rebe
2005-08-30 10:57 ` Takashi Iwai
2005-08-30 12:24 ` Harald Welte
2005-08-30 12:42 ` Takashi Iwai
2005-08-30 13:06 ` Harald Welte
2005-08-30 13:14 ` Takashi Iwai
2005-08-30 13:59 ` Harald Welte
2005-08-30 14:12 ` Takashi Iwai
2005-08-30 14:36 ` Harald Welte
2005-09-02 10:04 ` Takashi Iwai
2005-09-02 10:14 ` Takashi Iwai
2005-09-02 11:10 ` Harald Welte
2005-08-30 12:03 ` Harald Welte
2005-08-30 12:18 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.