Skip to contentSkip to conversation

Request for Realtek patch - Nvidia MCP51 HDA / ALC883 (10de:026c) Notebook component

DISCUSSION Björn van der Meer 2 participants 2 messages May 9, 2008

lore
Share & tools
lore
#0 lore raw
Quoted 108 lines

At Fri, 9 May 2008 15:35:50 +0200,

Quoted 94 lines · Björn van der Meer
Quoted 62 lines

At Mon, 5 May 2008 08:43:16 +0200,

Quoted 59 lines · Björn van der Meer

Hello Everyone,

I have above component in my laptop and lack the expertise to add it to to patch_realtek.c myself.

I think I have collected all the relevant information if one of the developers wants to give it a try.

My Notebook: Medion 98300 (a.k.a. WAM2030)
(Please note: Medion is not an OEM. The board is nVidia based, OEM thought to be Wistron. Apparently rarely used sound component?)

Internal speakers
Internal mic - unknown
three jacks: headphone, mic, SPDIF(dual use jack). Jack Sensing under Windows.
5.1 surround (sounds like the setup should be supported by 3stack-6ch-dig)

lspci:
00:10.1 Audio device [0403]: nVidia Corporation MCP51 High Definition Audio [10de:026c] (rev a2)
Subsystem: Wistron Corp. Unknown device [17c0:4079]
Flags: 66MHz, fast devsel, IRQ 20
Memory at c0000000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [44] Power Management version 2
Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/0 Enable-
Capabilities: [6c] HyperTransport: MSI Mapping

hwinfo:
22: PCI 10.1: 0403 Audio device
[Created at pci.296]
UDI: /org/freedesktop/Hal/devices/pci_10de_26c
Unique ID: wRyD.X7XJ3rTjrR3
SysFS ID: /devices/pci0000:00/0000:00:10.1
SysFS BusID: 0000:00:10.1
Hardware Class: sound
Model: "Wistron MCP51 High Definition Audio"
Vendor: pci 0x10de "nVidia Corporation"
Device: pci 0x026c "MCP51 High Definition Audio"
SubVendor: pci 0x17c0 "Wistron Corp."
SubDevice: pci 0x4079
Revision: 0xa2
Driver: "HDA Intel"
Driver Modules: "snd_hda_intel"
Memory Range: 0xc0000000-0xc0003fff (rw,non-prefetchable)
IRQ: 20 (195693 events)
Module Alias:
"pci:v000010DEd0000026Csv000017C0sd00004079bc04sc03i00" Driver Info #0:
Driver Status: snd_hda_intel is active
Driver Activation Cmd: "modprobe snd_hda_intel"
Config Status: cfg=new, avail=yes, need=no, active=unknown

alsa-info.sh output is at http://pastebin.com/f49962c92.

Quoted 6 lines
Quoted 1 line

Currently the only thing working is output via the internal speakers.

And doesn't this still work with the latest ALSA HG driver?

Takashi

Thanks for your answer. Latest HG does not compile on my system, throws memalloc.c errors. (Could be me doing something wrong though - out on a limp)

CC [M] /home/bvdm/alsa-driver/acore/memalloc.o
/home/bvdm/alsa-driver/acore/memalloc.c: In function ‘snd_mem_init’:
/home/bvdm/alsa-driver/acore/memalloc.c:729: error: implicit declaration of function ‘proc_create’ /home/bvdm/alsa-driver/acore/memalloc.c:730: warning: assignment makes pointer from integer without a cast
make[3]: *** [/home/bvdm/alsa-driver/acore/memalloc.o] Error 1 make[2]: *** [/home/bvdm/alsa-driver/acore] Error 2
make[1]: *** [_module_/home/bvdm/alsa-driver] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'

I see references to similar errors on the list, had to do with processor identification?

Configure detects this:
checking for processor type... i586
checking for i386 machine type... default

Quoted 7 lines

/proc/cpuinfo starts with:
[...]
vendor_id : AuthenticAMD
cpu family : 15
model : 72
model name : AMD Turion(tm) 64 X2 Mobile Technology TL-50
[...]

It's a problem in alsa-driver build stub. I fixed it right now on HG tree.

Quoted 7 lines
Quoted 5 lines

I have also just lifted patch_realtek.c from the current hg and compiled it in a working tarball (actually labelled alsa-driver-hg20080502.tar from the realtek site), which compiles, looks a bit better. Gives me:
- Different set of mixer controls (not 5.1 though)

OK, I'll need a newer alsa-info.sh with the latest driver.

New alsa-info.sh is at http://pastebin.ca/1012744

Quoted 5 lines
Quoted 3 lines

- headphone output in the strange dual-use SPDIF jack only (headphone
jack only goes 2/3 of the way in)

Please elaborate? I don't understand your description.

hehe, yes. I didn't believe it either. This laptop has three jacks.
- light blue, symbol "headphone", normal 3.5mm jack
- pink, symbol "microphone", normal 3.5mm jack
- black, symbol line out, normal 3.5mm (that only goes in 2/3 of the way)
jack AND SPDIF (yes, now glowing red)

Actually. Seeing is believing.
www.chronovault.net/static/medion98300jacks.jpg

Quoted 6 lines
Quoted 2 lines

- but with jack-sensing working in that jack, with the boxes turning off
when I insert the headphone into the SPDIF.

This sounds good -- do you mean that you have another headphone jacks?

Takashi

Thank you very much

Just hg'ed again compile runs fine.

This is without any "options snd-hda-intel model=XXXX" line in /etc/modprobe.d/alsa-base

- I now put my headphone into the black jack and get sound, boxes turn off.
- light blue jack is without function now.
- mixer option "headphone" is without function.
- mixer now has master,
headphone,pcm,front,frontmic,line,mic,micboost,digital
- only master,pcm and front work, all regulate master volume on
SPDIF-used-as-headphone-jack and the internal boxes
- dont have a mic right here to try out

Should I try options there now? Is /etc/init.d/alsasound stop / start a good way to cycle through options?

Signature · 6 lines
Björn van der Meer
[email protected]
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#1 lore raw

Actually, this dual usage headphone jack is quite common among laptops that have digital out. By default, though, Alsa should probably turn off spdif for power savings. I'm (slowly) working on a mechanism that can trigger a popup application when a device is inserted to a jack with sense enabled. The idea is to be able to popup an app so users can toggle between analog headphones or spdif on systems like yours, or between 2nd headphone/microphone on other systems that support HP Amp on multiple ports.

Tobin

Quoted 160 lines · Björn van der Meer
Quoted 108 lines

At Fri, 9 May 2008 15:35:50 +0200,

Quoted 94 lines · Björn van der Meer
Quoted 62 lines

At Mon, 5 May 2008 08:43:16 +0200,

Quoted 59 lines · Björn van der Meer

Hello Everyone,

I have above component in my laptop and lack the expertise to add it to to patch_realtek.c myself.

I think I have collected all the relevant information if one of the developers wants to give it a try.

My Notebook: Medion 98300 (a.k.a. WAM2030)
(Please note: Medion is not an OEM. The board is nVidia based, OEM thought to be Wistron. Apparently rarely used sound component?)

Internal speakers
Internal mic - unknown
three jacks: headphone, mic, SPDIF(dual use jack). Jack Sensing under Windows.
5.1 surround (sounds like the setup should be supported by 3stack-6ch-dig)

lspci:
00:10.1 Audio device [0403]: nVidia Corporation MCP51 High Definition Audio [10de:026c] (rev a2)
Subsystem: Wistron Corp. Unknown device [17c0:4079]
Flags: 66MHz, fast devsel, IRQ 20
Memory at c0000000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [44] Power Management version 2
Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+ Queue=0/0 Enable-
Capabilities: [6c] HyperTransport: MSI Mapping

hwinfo:
22: PCI 10.1: 0403 Audio device
[Created at pci.296]
UDI: /org/freedesktop/Hal/devices/pci_10de_26c
Unique ID: wRyD.X7XJ3rTjrR3
SysFS ID: /devices/pci0000:00/0000:00:10.1
SysFS BusID: 0000:00:10.1
Hardware Class: sound
Model: "Wistron MCP51 High Definition Audio"
Vendor: pci 0x10de "nVidia Corporation"
Device: pci 0x026c "MCP51 High Definition Audio"
SubVendor: pci 0x17c0 "Wistron Corp."
SubDevice: pci 0x4079
Revision: 0xa2
Driver: "HDA Intel"
Driver Modules: "snd_hda_intel"
Memory Range: 0xc0000000-0xc0003fff (rw,non-prefetchable)
IRQ: 20 (195693 events)
Module Alias:
"pci:v000010DEd0000026Csv000017C0sd00004079bc04sc03i00" Driver Info #0:
Driver Status: snd_hda_intel is active
Driver Activation Cmd: "modprobe snd_hda_intel"
Config Status: cfg=new, avail=yes, need=no, active=unknown

alsa-info.sh output is at http://pastebin.com/f49962c92.

Quoted 6 lines
Quoted 1 line

Currently the only thing working is output via the internal speakers.

And doesn't this still work with the latest ALSA HG driver?

Takashi

Thanks for your answer. Latest HG does not compile on my system, throws memalloc.c errors. (Could be me doing something wrong though - out on a limp)

CC [M] /home/bvdm/alsa-driver/acore/memalloc.o
/home/bvdm/alsa-driver/acore/memalloc.c: In function ‘snd_mem_init’:
/home/bvdm/alsa-driver/acore/memalloc.c:729: error: implicit declaration of function ‘proc_create’ /home/bvdm/alsa-driver/acore/memalloc.c:730: warning: assignment makes pointer from integer without a cast
make[3]: *** [/home/bvdm/alsa-driver/acore/memalloc.o] Error 1 make[2]: *** [/home/bvdm/alsa-driver/acore] Error 2
make[1]: *** [_module_/home/bvdm/alsa-driver] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'

I see references to similar errors on the list, had to do with processor identification?

Configure detects this:
checking for processor type... i586
checking for i386 machine type... default

Quoted 7 lines

/proc/cpuinfo starts with:
[...]
vendor_id : AuthenticAMD
cpu family : 15
model : 72
model name : AMD Turion(tm) 64 X2 Mobile Technology TL-50
[...]

It's a problem in alsa-driver build stub. I fixed it right now on HG tree.

Quoted 7 lines
Quoted 5 lines

I have also just lifted patch_realtek.c from the current hg and compiled it in a working tarball (actually labelled alsa-driver-hg20080502.tar from the realtek site), which compiles, looks a bit better. Gives me:
- Different set of mixer controls (not 5.1 though)

OK, I'll need a newer alsa-info.sh with the latest driver.

New alsa-info.sh is at http://pastebin.ca/1012744

Quoted 5 lines
Quoted 3 lines

- headphone output in the strange dual-use SPDIF jack only (headphone
jack only goes 2/3 of the way in)

Please elaborate? I don't understand your description.

hehe, yes. I didn't believe it either. This laptop has three jacks.
- light blue, symbol "headphone", normal 3.5mm jack
- pink, symbol "microphone", normal 3.5mm jack
- black, symbol line out, normal 3.5mm (that only goes in 2/3 of the way)
jack AND SPDIF (yes, now glowing red)

Actually. Seeing is believing.
www.chronovault.net/static/medion98300jacks.jpg

Quoted 6 lines
Quoted 2 lines

- but with jack-sensing working in that jack, with the boxes turning off
when I insert the headphone into the SPDIF.

This sounds good -- do you mean that you have another headphone jacks?

Takashi

Thank you very much

Just hg'ed again compile runs fine.

This is without any "options snd-hda-intel model=XXXX" line in /etc/modprobe.d/alsa-base

- I now put my headphone into the black jack and get sound, boxes turn off.
- light blue jack is without function now.
- mixer option "headphone" is without function.
- mixer now has master,
headphone,pcm,front,frontmic,line,mic,micboost,digital
- only master,pcm and front work, all regulate master volume on
SPDIF-used-as-headphone-jack and the internal boxes
- dont have a mic right here to try out

Should I try options there now? Is /etc/init.d/alsasound stop / start a good way to cycle through options?

Signature · 10 lines
Tobin Davis 


BOFH excuse #309:

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