Skip to contentSkip to conversation

MCP51 on Asus M2NPV-VM doesn't get correct parameters set

DISCUSSION Prakash Punnoor 2 participants 8 messages Aug 10, 2006 – Aug 16, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

using snd-hda-intel I get a high pitched sound (and changing vol leads to muted sounds) if I don't set position_fix=1. I have to recheck whether I need model=3stack set or whether alsa puts it correctly. I am on x86_64 using linux-2.6.18-rc4.

00:00.0 0500: 10de:02f0 (rev a2)
Subsystem: 1043:81c0
Flags: bus master, 66MHz, fast devsel, latency 0
Capabilities: [44] HyperTransport: Slave or Primary Interface
Capabilities: [e0] HyperTransport: MSI Mapping

00:00.1 0500: 10de:02fa (rev a2)
Subsystem: 1043:81c0
Flags: 66MHz, fast devsel

00:00.2 0500: 10de:02fe (rev a2)
Subsystem: 1043:81c0
Flags: 66MHz, fast devsel

00:00.3 0500: 10de:02f8 (rev a2)
Subsystem: 1043:81c0
Flags: 66MHz, fast devsel

00:00.4 0500: 10de:02f9 (rev a2)
Subsystem: 1043:81c0
Flags: bus master, 66MHz, fast devsel, latency 0

00:00.5 0500: 10de:02ff (rev a2)

        Subsystem: 1043:81c0
        Flags: bus master, 66MHz, fast devsel, latency 0
        Capabilities: [44] #00 [00fe]
        Capabilities: [fc] #00 [0000]

00:00.6 0500: 10de:027f (rev a2)
Subsystem: 1043:81c0
Flags: 66MHz, fast devsel

00:00.7 0500: 10de:027e (rev a2)
Subsystem: 1043:81c0
Flags: 66MHz, fast devsel

00:02.0 0604: 10de:02fc (rev a1)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 I/O behind bridge: 0000a000-0000afff
Memory behind bridge: fd800000-fd8fffff
Prefetchable memory behind bridge: 00000000fd700000-00000000fd700000
Capabilities: [40] #0d [0000]
Capabilities: [48] Power Management version 2
Capabilities: [50] Message Signalled Interrupts: 64bit+ Queue=0/1
Enable+
Capabilities: [60] HyperTransport: MSI Mapping
Capabilities: [80] Express Root Port (Slot+) IRQ 0
Capabilities: [100] Virtual Channel

00:03.0 0604: 10de:02fd (rev a1)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0 I/O behind bridge: 00008000-00008fff
Memory behind bridge: fde00000-fdefffff
Prefetchable memory behind bridge: 00000000fdd00000-00000000fdd00000
Capabilities: [40] #0d [0000]
Capabilities: [48] Power Management version 2
Capabilities: [50] Message Signalled Interrupts: 64bit+ Queue=0/1
Enable+
Capabilities: [60] HyperTransport: MSI Mapping
Capabilities: [80] Express Root Port (Slot+) IRQ 0
Capabilities: [100] Virtual Channel

00:04.0 0604: 10de:02fb (rev a1)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0 I/O behind bridge: 0000b000-0000bfff
Memory behind bridge: fdc00000-fdcfffff
Prefetchable memory behind bridge: 00000000fd900000-00000000fd900000
Capabilities: [40] #0d [0000]
Capabilities: [48] Power Management version 2
Capabilities: [50] Message Signalled Interrupts: 64bit+ Queue=0/1
Enable+
Capabilities: [60] HyperTransport: MSI Mapping
Capabilities: [80] Express Root Port (Slot+) IRQ 0
Capabilities: [100] Virtual Channel

00:05.0 0300: 10de:0240 (rev a2)

        Subsystem: 1043:81cd
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 5
        Memory at fc000000 (32-bit, non-prefetchable) [size=16M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at fb000000 (64-bit, non-prefetchable) [size=16M]
        [virtual] Expansion ROM at 88000000 [disabled] [size=128K]
        Capabilities: [48] Power Management version 2
        Capabilities: [50] Message Signalled Interrupts: 64bit+ Queue=0/0 

Enable-

00:09.0 0500: 10de:0270 (rev a2)
Subsystem: 1043:81c0
Flags: bus master, 66MHz, fast devsel, latency 0
Capabilities: [44] HyperTransport: Slave or Primary Interface
Capabilities: [e0] HyperTransport: MSI Mapping

00:0a.0 0601: 10de:0260 (rev a3)
Subsystem: 1043:81c0
Flags: bus master, 66MHz, fast devsel, latency 0

00:0a.1 0c05: 10de:0264 (rev a3)

        Subsystem: 1043:81c0
        Flags: 66MHz, fast devsel, IRQ 5
        I/O ports at 4c00 [size=64]
        I/O ports at 4c40 [size=64]
        Capabilities: [44] Power Management version 2

00:0a.2 0500: 10de:0272 (rev a3)
Subsystem: 1043:81c0
Flags: 66MHz, fast devsel

00:0b.0 0c03: 10de:026d (rev a3) (prog-if 10)
Subsystem: 1043:81c0
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 5 Memory at fe02f000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [44] Power Management version 2

00:0b.1 0c03: 10de:026e (rev a3) (prog-if 20)
Subsystem: 1043:81c0
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 11 Memory at fe02e000 (32-bit, non-prefetchable) [size=256]
Capabilities: [44] Debug port
Capabilities: [80] Power Management version 2

00:0d.0 0101: 10de:0265 (rev a1) (prog-if 8a)
Subsystem: 1043:81c0
Flags: bus master, 66MHz, fast devsel, latency 0 I/O ports at f400 [size=16]
Capabilities: [44] Power Management version 2

00:0e.0 0101: 10de:0266 (rev a1) (prog-if 85)

        Subsystem: 1043:81c0
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 5
        I/O ports at 09f0 [size=8]
        I/O ports at 0bf0 [size=4]
        I/O ports at 0970 [size=8]
        I/O ports at 0b70 [size=4]
        I/O ports at e000 [size=16]
        Memory at fe02d000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [44] Power Management version 2
        Capabilities: [b0] Message Signalled Interrupts: 64bit+ Queue=0/2 

Enable-
Capabilities: [cc] HyperTransport: MSI Mapping

00:0f.0 0101: 10de:0267 (rev a1) (prog-if 85)

        Subsystem: 1043:81c0
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 10
        I/O ports at 09e0 [size=8]
        I/O ports at 0be0 [size=4]
        I/O ports at 0960 [size=8]
        I/O ports at 0b60 [size=4]
        I/O ports at cc00 [size=16]
        Memory at fe02c000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [44] Power Management version 2
        Capabilities: [b0] Message Signalled Interrupts: 64bit+ Queue=0/2 

Enable-
Capabilities: [cc] HyperTransport: MSI Mapping

00:10.0 0604: 10de:026f (rev a2) (prog-if 01)
Flags: bus master, 66MHz, fast devsel, latency 0
Bus: primary=00, secondary=04, subordinate=04, sec-latency=128 I/O behind bridge: 00009000-00009fff
Memory behind bridge: fdb00000-fdbfffff Prefetchable memory behind bridge: fda00000-fdafffff
Capabilities: [b8] #0d [0000]
Capabilities: [8c] HyperTransport: MSI Mapping

00:10.1 0403: 10de:026c (rev a2)
Subsystem: 1043:81cb
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 11 Memory at fe024000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [44] Power Management version 2
Capabilities: [50] Message Signalled Interrupts: 64bit+ Queue=0/0
Enable-
Capabilities: [6c] HyperTransport: MSI Mapping

00:14.0 0680: 10de:0269 (rev a3)

        Subsystem: 1043:816a
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 11
        Memory at fe02b000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at c800 [size=8]
        Capabilities: [44] Power Management version 2

00:18.0 0600: 1022:1100
Flags: fast devsel
Capabilities: [80] HyperTransport: Host or Secondary Interface

00:18.1 0600: 1022:1101
Flags: fast devsel

00:18.2 0600: 1022:1102
Flags: fast devsel

00:18.3 0600: 1022:1103
Flags: fast devsel
Capabilities: [f0] #0f [0010]

04:05.0 0c00: 104c:8023 (prog-if 10)

        Subsystem: 1043:808b
        Flags: bus master, medium devsel, latency 32, IRQ 5
        Memory at fdbff000 (32-bit, non-prefetchable) [size=2K]
        Memory at fdbf8000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [44] Power Management version 2

Cheers,

Signature · 3 lines
(°=                 =°)
//\ Prakash Punnoor /\\
V_/                 \_V

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#1 lore raw

At Fri, 11 Aug 2006 00:13:46 +0200,

Quoted 7 lines · Prakash Punnoor

Hi,

using snd-hda-intel I get a high pitched sound (and changing vol leads to muted sounds) if I don't set position_fix=1. I have to recheck whether I need model=3stack set or whether alsa puts it correctly. I am on x86_64 using linux-2.6.18-rc4.

The model=3stack was already fixed in ALSA HG tree but it's not included in 2.6.18rc.

position_fix=1 is actually a hardware problem. This could be fixed by BIOS update (if any)...

thanks,

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#2 lore raw

Am Mittwoch 16 August 2006 13:11 schrieb Takashi Iwai:

Quoted 10 lines

At Fri, 11 Aug 2006 00:13:46 +0200,

Quoted 6 lines · Prakash Punnoor

Hi,

using snd-hda-intel I get a high pitched sound (and changing vol leads to muted sounds) if I don't set position_fix=1. I have to recheck whether I need model=3stack set or whether alsa puts it correctly. I am on x86_64 using linux-2.6.18-rc4.

Quoted 5 lines

The model=3stack was already fixed in ALSA HG tree but it's not included in 2.6.18rc.

position_fix=1 is actually a hardware problem. This could be fixed by BIOS update (if any)...

Thx for the info. But what exactly should I report to Asus? And if they don't fix it, wouldn't a quirk be user-friendly? (The kernel also applies various quirk for broken BIOSes...)

Cheers,

Signature · 3 lines
(°=                 =°)
//\ Prakash Punnoor /\\
V_/                 \_V

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#3 lore raw

At Wed, 16 Aug 2006 14:04:50 +0200,

Quoted 12 lines · Prakash Punnoor

Am Mittwoch 16 August 2006 13:11 schrieb Takashi Iwai:

Quoted 10 lines

At Fri, 11 Aug 2006 00:13:46 +0200,

Quoted 6 lines · Prakash Punnoor

Hi,

using snd-hda-intel I get a high pitched sound (and changing vol leads to muted sounds) if I don't set position_fix=1. I have to recheck whether I need model=3stack set or whether alsa puts it correctly. I am on x86_64 using linux-2.6.18-rc4.

Quoted 7 lines
Quoted 5 lines

The model=3stack was already fixed in ALSA HG tree but it's not included in 2.6.18rc.

position_fix=1 is actually a hardware problem. This could be fixed by BIOS update (if any)...

Thx for the info. But what exactly should I report to Asus?

That the position registers (70h/74h) don't work properly. I don't know what values are read there. You need to try to dump the values to check what's going on there.

Quoted 3 lines

And if they don't
fix it, wouldn't a quirk be user-friendly? (The kernel also applies various quirk for broken BIOSes...)

Sure, but how could you choose the appropriate option for a certain board with a certain BIOS version? That's the biggest question.

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#4 lore raw

Am Mittwoch 16 August 2006 14:19 schrieb Takashi Iwai:

Quoted 4 lines

At Wed, 16 Aug 2006 14:04:50 +0200,

Quoted 1 line · Prakash Punnoor

Am Mittwoch 16 August 2006 13:11 schrieb Takashi Iwai:

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

position_fix=1 is actually a hardware problem. This could be fixed by BIOS update (if any)...

Thx for the info. But what exactly should I report to Asus?

That the position registers (70h/74h) don't work properly. I don't know what values are read there. You need to try to dump the values to check what's going on there.

Well, could you point me how to do it? Im not a kernel dev...

Quoted 6 lines
Quoted 3 lines

And if they don't
fix it, wouldn't a quirk be user-friendly? (The kernel also applies various quirk for broken BIOSes...)

Sure, but how could you choose the appropriate option for a certain board with a certain BIOS version? That's the biggest question.

IIRC, this could be done reading DMI (perhaps after checking pci ids), as I think for some other quirk in the kernel this was done (or at least proposed).

bye,

Signature · 3 lines
(°=                 =°)
//\ Prakash Punnoor /\\
V_/                 \_V

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#5 lore raw

At Wed, 16 Aug 2006 15:51:40 +0200,

Quoted 9 lines · Prakash Punnoor

Am Mittwoch 16 August 2006 14:19 schrieb Takashi Iwai:

Quoted 7 lines

At Wed, 16 Aug 2006 14:04:50 +0200,

Quoted 4 lines · Prakash Punnoor

Am Mittwoch 16 August 2006 13:11 schrieb Takashi Iwai:

Quoted 2 lines

position_fix=1 is actually a hardware problem. This could be fixed by BIOS update (if any)...

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Thx for the info. But what exactly should I report to Asus?

That the position registers (70h/74h) don't work properly. I don't know what values are read there. You need to try to dump the values to check what's going on there.

Well, could you point me how to do it? Im not a kernel dev...

Just add printk arround reading azx_dev->posbuf in azx_pcm_pointer().

Quoted 10 lines
Quoted 6 lines
Quoted 3 lines

And if they don't
fix it, wouldn't a quirk be user-friendly? (The kernel also applies various quirk for broken BIOSes...)

Sure, but how could you choose the appropriate option for a certain board with a certain BIOS version? That's the biggest question.

IIRC, this could be done reading DMI (perhaps after checking pci ids), as I think for some other quirk in the kernel this was done (or at least proposed).

Yes, but it might be way too dirty.
Any patch is welcome, though.

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#6 lore raw

Am Mittwoch 16 August 2006 15:54 schrieb Takashi Iwai:

Quoted 13 lines

At Wed, 16 Aug 2006 15:51:40 +0200,

Quoted 10 lines · Prakash Punnoor

Am Mittwoch 16 August 2006 14:19 schrieb Takashi Iwai:

Quoted 9 lines

At Wed, 16 Aug 2006 14:04:50 +0200,

Quoted 5 lines · Prakash Punnoor

Am Mittwoch 16 August 2006 13:11 schrieb Takashi Iwai:

Quoted 2 lines

position_fix=1 is actually a hardware problem. This could be fixed by BIOS update (if any)...

Thx for the info. But what exactly should I report to Asus?

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

That the position registers (70h/74h) don't work properly. I don't know what values are read there. You need to try to dump the values to check what's going on there.

Well, could you point me how to do it? Im not a kernel dev...

Just add printk arround reading azx_dev->posbuf in azx_pcm_pointer().

I tried again, and I think you can forget about the issue. The stack3 setting seems to fix everything, ie position_fix=1 isn't needed and it seems to work nice with 0. (I never tried stack3 alone...)

Sorry for the noise. :-/

Signature · 3 lines
(°=                 =°)
//\ Prakash Punnoor /\\
V_/                 \_V

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#7 lore raw

At Wed, 16 Aug 2006 18:25:16 +0200,

Quoted 19 lines · Prakash Punnoor

Am Mittwoch 16 August 2006 15:54 schrieb Takashi Iwai:

Quoted 17 lines

At Wed, 16 Aug 2006 15:51:40 +0200,

Quoted 14 lines · Prakash Punnoor

Am Mittwoch 16 August 2006 14:19 schrieb Takashi Iwai:

Quoted 12 lines

At Wed, 16 Aug 2006 14:04:50 +0200,

Quoted 5 lines · Prakash Punnoor

Am Mittwoch 16 August 2006 13:11 schrieb Takashi Iwai:

Quoted 2 lines

position_fix=1 is actually a hardware problem. This could be fixed by BIOS update (if any)...

Thx for the info. But what exactly should I report to Asus?

That the position registers (70h/74h) don't work properly. I don't know what values are read there. You need to try to dump the values to check what's going on there.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Well, could you point me how to do it? Im not a kernel dev...

Just add printk arround reading azx_dev->posbuf in azx_pcm_pointer().

I tried again, and I think you can forget about the issue. The stack3 setting seems to fix everything, ie position_fix=1 isn't needed and it seems to work nice with 0. (I never tried stack3 alone...)

Thanks for confirmation. I did suspect about it somehow, too, but not pretty sure.

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642