Intel HDA on Mac Pro
I just got a new Mac Pro (not MacBook Pro) that appears to contain an on-board Intel High Definition Audio interface (Realtek variation, as far as I can tell via "detect" debug). The ALSA drivers in 2.6.17 detect the card correctly and my mixer shows all the right channels, but no sound comes out. I compiled and installed the latest ALSA (1.0.13) and have the same issue. I have only found a few others running Linux on the Mac Pro, and they seem to have the same issue.
Other people have reported the MacBook Pro had similar issues (no sound out the line-out jack), and a patch was floating around that rewired some of the mixing to make it work. The MacBook Pro seems to use a different HDA implementation (Sigmatel, I think) so I'm not sure if the patch logic makes sense on the Mac Pro.
I figured this list was probably the best place to ask: has anyone hacked on this driver before? Where should I start digging?
Signature · 8 lines
Shaw Terwilliger <[email protected]> SourceGear LLC ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Well, to start, we'll need to know the exact codec information. Type "cat /proc/asound/card0/codec*" to find out. To add your specific configuration to the driver (if it isn't in the tree already), we'll also need the subsystem ID from lspci. Assuming the audio device is on pci bus 0:1b.0, type 'lspci -s 0:1b -vn" to get that.
Quoted 1 line
From there, it's probably just a matter of trying different config
models from the ALSA-Configuration.txt (it's in alsa-driver-1.0.13/alsa-kernel/Documentation if you downloaded the driver source, or it is in the kernel documentation).
Tobin Davis
Quoted 17 lines · Shaw Terwilliger
I just got a new Mac Pro (not MacBook Pro) that appears to contain an on-board Intel High Definition Audio interface (Realtek variation, as far as I can tell via "detect" debug). The ALSA drivers in 2.6.17 detect the card correctly and my mixer shows all the right channels, but no sound comes out. I compiled and installed the latest ALSA (1.0.13) and have the same issue. I have only found a few others running Linux on the Mac Pro, and they seem to have the same issue.
Other people have reported the MacBook Pro had similar issues (no sound out the line-out jack), and a patch was floating around that rewired some of the mixing to make it work. The MacBook Pro seems to use a different HDA implementation (Sigmatel, I think) so I'm not sure if the patch logic makes sense on the Mac Pro.
I figured this list was probably the best place to ask: has anyone hacked on this driver before? Where should I start digging?
Signature · 1 line
Tobin Davis <[email protected]>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 5 lines · Tobin Davis
Well, to start, we'll need to know the exact codec information. Type "cat
/proc/asound/card0/codec*" to find out. To add your specific configuration to the driver (if it isn't in the tree already), we'll also need the subsystem ID from lspci. Assuming the audio device is on pci bus 0:1b.0, type 'lspci -s 0:1b -vn" to get that.
I should have included those in my first message, sorry (they're at the bottom of this one). Thanks for your help.
Quoted 4 lines
From there, it's probably just a matter of trying different config models from the ALSA-Configuration.txt (it's in alsa-driver-1.0.13/alsa-kernel/Documentation if you downloaded the driver source, or it is in the kernel documentation).
I've tried a dozen or so, and they all seem to load correctly and correctly influence the mixers. I'll verify I was trying the right ones.
hansen:~% sudo lspci -s 0:1b -vn
00:1b.0 0403: 8086:269a (rev 09)
Flags: bus master, fast devsel, latency 0, IRQ 225
Memory at 92f00000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [70] Express Unknown type IRQ 0
Codec: Realtek ALC885
Address: 0
Vendor Id: 0x10ec0885
Subsystem Id: 0x106b0c00
Revision Id: 0x100103
Default PCM: rates 0x560, bits 0x0e, types 0x1 Default Amp-In caps: N/A
Default Amp-Out caps: N/A
Node 0x02 [Audio Output] wcaps 0x11: Stereo
PCM: rates 0x560, bits 0x0e, types 0x1
Node 0x03 [Audio Output] wcaps 0x11: Stereo
PCM: rates 0x560, bits 0x0e, types 0x1
Node 0x04 [Audio Output] wcaps 0x11: Stereo
PCM: rates 0x560, bits 0x0e, types 0x1
Node 0x05 [Audio Output] wcaps 0x11: Stereo
PCM: rates 0x560, bits 0x0e, types 0x1
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
PCM: rates 0x5e0, bits 0x1e, types 0x1
Node 0x07 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x80 0x80]
PCM: rates 0x560, bits 0x0e, types 0x1
Connection: 1
0x24
Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x80 0x80]
PCM: rates 0x560, bits 0x0e, types 0x1
Connection: 1
0x23
Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x80 0x80]
PCM: rates 0x560, bits 0x0e, types 0x1
Connection: 1
0x22
Node 0x0a [Audio Input] wcaps 0x100391: Stereo Digital
PCM: rates 0x560, bits 0x1e, types 0x1
Connection: 1
0x1fNode 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1 Amp-In vals: [0x80 0x80] [0x80 0x80] [0x95 0x95] [0x97 0x97] [0x000x00] [0x10 0x10] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97]
Connection: 10
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17
Node 0x0c [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x33 0x33]
Connection: 2
0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x80 0x80] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x00 0x00]
Connection: 2
0x03 0x0b
Node 0x0e [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x80 0x80] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x00 0x00]
Connection: 2
0x04 0x0b
Node 0x0f [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x80 0x80] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x00 0x00]
Connection: 2
0x05 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x40: OUT
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x15 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x01014150: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Green
Pin-ctls: 0x40: OUT
Connection: 5
0x0c 0x0d* 0x0e 0x0f 0x26
Node 0x16 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x88a0967c, nsteps=0x03, stepsize=0x100, mute=25 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x083c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x40: OUT
Connection: 5
0x0c 0x0d 0x0e* 0x0f 0x26
Node 0x17 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x083c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x40: OUT
Connection: 5
0x0c 0x0d 0x0e 0x0f* 0x26
Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x02214040: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
Pin-ctls: 0x24: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x01813110: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls: 0x24: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x90100130: [Fixed] Speaker at Int N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0xc0: OUT HP
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1c [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
Pincap 0x0820: IN
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
Pincap 0x0810: OUT
Pin Default 0x0145e160: [Jack] SPDIF Out at Ext Rear
Conn = Optical, Color = White
Pin-ctls: 0x40: OUT
Connection: 1
0x06
Node 0x1f [Pin Complex] wcaps 0x400200: Mono Digital
Pincap 0x0820: IN
Pin Default 0x01c5e120: [Jack] SPDIF In at Ext Rear
Conn = Optical, Color = White
Pin-ctls: 0x20: IN
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Node 0x21 [Volume Knob Widget] wcaps 0x600080: Mono
Node 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x800x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x88a0967c, nsteps=0x03, stepsize=0x100, mute=25 Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x800x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x24 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x800x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x25 [Audio Output] wcaps 0x11: Stereo
PCM: rates 0x560, bits 0x0e, types 0x1
Node 0x26 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2
0x25 0x0b
Signature · 8 lines
Shaw Terwilliger <[email protected]> SourceGear LLC ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Couple of other things I'd need to look at. Could you stop the driver (modprobe -r snd-hda-intel), clear the dmesg log (dmesg -c), then reload the driver and send the dmesg output? I'd like to verify the pins being detected with what is configured in the driver. Also, the lspci command output didn't include the subsystem ID which is odd. It should have had a line similar to "Subsystem: Unknown device 1631:c017".
For grins, try "model=arima". This should toggle the eapd control bit.
Tobin
Quoted 247 lines · Shaw Terwilliger
Quoted 5 lines · Tobin Davis
Well, to start, we'll need to know the exact codec information. Type "cat
/proc/asound/card0/codec*" to find out. To add your specific configuration to the driver (if it isn't in the tree already), we'll also need the subsystem ID from lspci. Assuming the audio device is on pci bus 0:1b.0, type 'lspci -s 0:1b -vn" to get that.I should have included those in my first message, sorry (they're at the bottom of this one). Thanks for your help.
Quoted 4 lines
From there, it's probably just a matter of trying different config models from the ALSA-Configuration.txt (it's in alsa-driver-1.0.13/alsa-kernel/Documentation if you downloaded the driver source, or it is in the kernel documentation).
I've tried a dozen or so, and they all seem to load correctly and correctly influence the mixers. I'll verify I was trying the right ones.
hansen:~% sudo lspci -s 0:1b -vn
00:1b.0 0403: 8086:269a (rev 09)
Flags: bus master, fast devsel, latency 0, IRQ 225
Memory at92f00000(64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [70] Express Unknown type IRQ 0Codec: Realtek ALC885
Address: 0
Vendor Id:0x10ec0885
Subsystem Id:0x106b0c00
Revision Id:0x100103
Default PCM: rates0x560, bits0x0e, types0x1Default Amp-In caps: N/A
Default Amp-Out caps: N/A
Node0x02[Audio Output] wcaps0x11: Stereo
PCM: rates0x560, bits0x0e, types0x1
Node0x03[Audio Output] wcaps0x11: Stereo
PCM: rates0x560, bits0x0e, types0x1
Node0x04[Audio Output] wcaps0x11: Stereo
PCM: rates0x560, bits0x0e, types0x1
Node0x05[Audio Output] wcaps0x11: Stereo
PCM: rates0x560, bits0x0e, types0x1
Node0x06[Audio Output] wcaps0x211: Stereo Digital
PCM: rates0x5e0, bits0x1e, types0x1
Node0x07[Audio Input] wcaps0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x800x80]
PCM: rates0x560, bits0x0e, types0x1
Connection: 10x24Node
0x08[Audio Input] wcaps0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x800x80]
PCM: rates0x560, bits0x0e, types0x1
Connection: 10x23Node
0x09[Audio Input] wcaps0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x800x80]
PCM: rates0x560, bits0x0e, types0x1
Connection: 10x22 Node 0x0a [Audio Input] wcaps 0x100391: Stereo Digital PCM: rates 0x560, bits 0x1e, types 0x1 Connection: 1 0x1fNode
0x0b[Audio Mixer] wcaps0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1 Amp-In vals: [0x800x80] [0x800x80] [0x950x95] [0x970x97] [0x000x00] [0x100x10] [0x970x97] [0x970x97] [0x970x97] [0x970x97]
Connection: 100x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17Node
0x0c[Audio Mixer] wcaps0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x000x00] [0x000x00]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x330x33]
Connection: 20x02 0x0bNode
0x0d[Audio Mixer] wcaps0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x800x80] [0x800x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x000x00]
Connection: 20x03 0x0bNode
0x0e[Audio Mixer] wcaps0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x800x80] [0x800x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x000x00]
Connection: 20x04 0x0bNode
0x0f[Audio Mixer] wcaps0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x800x80] [0x800x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x000x00]
Connection: 20x05 0x0bNode
0x10[Vendor Defined Widget] wcaps0xf00000: Mono
Node0x11[Vendor Defined Widget] wcaps0xf00000: Mono
Node0x12[Vendor Defined Widget] wcaps0xf00000: Mono
Node0x13[Vendor Defined Widget] wcaps0xf00000: Mono
Node0x14[Pin Complex] wcaps0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x000x00] [0x000x00] [0x000x00] [0x000x00] [0x000x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x000x00]
Pincap0x08373c: IN OUT HP Detect
Pin Default0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls:0x40: OUT
Connection: 50x0c* 0x0d 0x0e 0x0f 0x26Node
0x15[Pin Complex] wcaps0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x000x00] [0x000x00] [0x000x00] [0x000x00] [0x000x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x000x00]
Pincap0x08373c: IN OUT HP Detect
Pin Default0x01014150: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Green
Pin-ctls:0x40: OUT
Connection: 50x0c 0x0d* 0x0e 0x0f 0x26Node
0x16[Pin Complex] wcaps0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x88a0967c, nsteps=0x03, stepsize=0x100, mute=25 Amp-In vals: [0x000x00] [0x000x00] [0x000x00] [0x000x00] [0x000x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x000x00]
Pincap0x083c: IN OUT HP Detect
Pin Default0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls:0x40: OUT
Connection: 50x0c 0x0d 0x0e* 0x0f 0x26Node
0x17[Pin Complex] wcaps0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x000x00] [0x000x00] [0x000x00] [0x000x00] [0x000x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x000x00]
Pincap0x083c: IN OUT HP Detect
Pin Default0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls:0x40: OUT
Connection: 50x0c 0x0d 0x0e 0x0f* 0x26Node
0x18[Pin Complex] wcaps0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x000x00] [0x000x00] [0x000x00] [0x000x00] [0x000x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x800x80]
Pincap0x08373c: IN OUT HP Detect
Pin Default0x02214040: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
Pin-ctls:0x24: IN
Connection: 50x0c* 0x0d 0x0e 0x0f 0x26Node
0x19[Pin Complex] wcaps0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x000x00] [0x000x00] [0x000x00] [0x000x00] [0x000x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x800x80]
Pincap0x08373c: IN OUT HP Detect
Pin Default0x01813110: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls:0x24: IN
Connection: 50x0c* 0x0d 0x0e 0x0f 0x26Node
0x1a[Pin Complex] wcaps0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x000x00] [0x000x00] [0x000x00] [0x000x00] [0x000x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x800x80]
Pincap0x08373c: IN OUT HP Detect
Pin Default0x90100130: [Fixed] Speaker at Int N/A
Conn = Unknown, Color = Unknown
Pin-ctls:0x20: IN
Connection: 50x0c* 0x0d 0x0e 0x0f 0x26Node
0x1b[Pin Complex] wcaps0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x000x00] [0x000x00] [0x000x00] [0x000x00] [0x000x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x800x80]
Pincap0x08373c: IN OUT HP Detect
Pin Default0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls:0xc0: OUT HP
Connection: 50x0c* 0x0d 0x0e 0x0f 0x26Node
0x1c[Pin Complex] wcaps0x400001: Stereo
Pincap0x0820: IN
Pin Default0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls:0x20: IN
Node0x1d[Pin Complex] wcaps0x400000: Mono
Pincap0x0820: IN
Pin Default0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls:0x20: IN
Node0x1e[Pin Complex] wcaps0x400300: Mono Digital
Pincap0x0810: OUT
Pin Default0x0145e160: [Jack] SPDIF Out at Ext Rear
Conn = Optical, Color = White
Pin-ctls:0x40: OUT
Connection: 10x06Node
0x1f[Pin Complex] wcaps0x400200: Mono Digital
Pincap0x0820: IN
Pin Default0x01c5e120: [Jack] SPDIF In at Ext Rear
Conn = Optical, Color = White
Pin-ctls:0x20: IN
Node0x20[Vendor Defined Widget] wcaps0xf00040: Mono
Node0x21[Volume Knob Widget] wcaps0x600080: Mono
Node0x22[Audio Mixer] wcaps0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x000x00] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80]
Connection: 110x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0bNode
0x23[Audio Mixer] wcaps0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x88a0967c, nsteps=0x03, stepsize=0x100, mute=25 Amp-In vals: [0x000x00] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80]
Connection: 110x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0bNode
0x24[Audio Mixer] wcaps0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x800x80] [0x800x80] [0x000x00] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80] [0x800x80]
Connection: 110x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0bNode
0x25[Audio Output] wcaps0x11: Stereo
PCM: rates0x560, bits0x0e, types0x1
Node0x26[Audio Mixer] wcaps0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x000x00] [0x800x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x400x40]
Connection: 20x25 0x0b
Signature · 1 line
Tobin Davis <[email protected]>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 6 lines · Tobin Davis
Couple of other things I'd need to look at. Could you stop the driver (modprobe -r snd-hda-intel), clear the dmesg log (dmesg -c), then reload the driver and send the dmesg output? I'd like to verify the pins being detected with what is configured in the driver. Also, the lspci command output didn't include the subsystem ID which is odd. It should have had a line similar to "Subsystem: Unknown device 1631:c017".
I've verified that lspci doesn't show any subsystems for the HDA device.
It does show (known) subsystems for other devices (USB, SATA, IDE, etc.).
Kernel messages are from 1.0.13 with --with-debug=full:
"modprobe snd-hda=intel"
[23787.349708] ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 23 (level, low) -> IRQ 225 [23787.350397] PCI: Setting latency timer of device 0000:00:1b.0 to 64
Messages from insertion with model=arima|6stack-dig|3stack-dig are identical except for the extra KERN_INFO like:
[23873.974754] ALSA
/data/downloads/alsa-driver-1.0.13/pci/hda/hda_codec.c:1741: hda_codec:
model 'arima' is selected
One possible complication is that this system wasn't booted directly from EFI. I have a new enough firmware that I've installed Linux with a legacy MBR-style partition scheme, and use LILO at the MBR to boot. The Apple firmware seems happy enough with this, and perhaps the BIOS it emulates is causing problems (or maybe not). Linux is the only OS on this machine.
Quoted 1 line
For grins, try "model=arima". This should toggle the eapd control bit.
I've tried that model, and I see differences in the mixer but I don't get different sound. What else should I notice?
Earlier today with no model arg present, I unmuted and maxed out all the mixer channels, and found that with PCM and Surround channels all the way up, and external amplifier up, I could hear the music I had playing, though it was still very quiet. So at least one channel is finding the line-out jack, quietly.
Signature · 2 lines
Shaw Terwilliger <[email protected]> SourceGear LLC
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 3 lines · Shaw Terwilliger
I've verified that lspci doesn't show any subsystems for the HDA device.
It does show (known) subsystems for other devices (USB, SATA, IDE, etc.).
This is strange. Could you try 'lspci -s 0:1b -vv"? It should have something there, but maybe not.
Quoted 2 lines
Kernel messages are from 1.0.13 with --with-debug=full:
I had thought you compiled with "--with-debug=detect". This actually gives different output than full debug mode.
Quoted 5 lines
Earlier today with no model arg present, I unmuted and maxed out all the mixer channels, and found that with PCM and Surround channels all the way up, and external amplifier up, I could hear the music I had playing, though it was still very quiet. So at least one channel is finding the line-out jack, quietly.
This is actually good info. Interesting that sound is coming out from
the Surround channels. The low volume could mean that EAPD still needs
to be set.
I'll look more into this tomorrow. Hopefully I can get a patch for you to test.
Signature · 1 line
Tobin Davis <[email protected]>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 2 lines · [email protected] Davis wrote:
This is strange. Could you try 'lspci -s 0:1b -vv"? It should have something there, but maybe not.
00:1b.0 Audio device: Intel Corporation Enterprise Southbridge High Definition Audio (rev 09)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0, Cache Line Size: 256 bytes
Interrupt: pin A routed to IRQ 225
Region 0: Memory at 92f00000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mAPME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [60] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Address: 0000000000000000 Data: 0000
Capabilities: [70] Express Unknown type IRQ 0
Device: Supported: MaxPayload 128 bytes, PhantFunc 0, ExtTag-
Device: Latency L0s <64ns, L1 <1us
Device: Errors: Correctable- Non-Fatal- Fatal- Unsupported-
Device: RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+
Device: MaxPayload 128 bytes, MaxReadReq 128 bytes
Link: Supported Speed unknown, Width x0, ASPM unknown, Port 0
Link: Latency L0s <64ns, L1 <1us
Link: ASPM Disabled CommClk- ExtSynch-
Link: Speed unknown, Width x0
Quoted 4 lines
Quoted 2 lines
Kernel messages are from 1.0.13 with --with-debug=full:
I had thought you compiled with "--with-debug=detect". This actually gives different output than full debug mode.
I changed it to "full" later to see if I got any more info. Here they are again with --with-debug=detect (4 Xeon cores makes ALSA compiles fly by):
modprobe snd-hda-intel:
[37954.257842] ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 23 (level, low) -> IRQ 225 [37954.258700] PCI: Setting latency timer of device 0000:00:1b.0 to 64 [37954.291651] ALSA /data/downloads/alsa-driver-1.0.13/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:680: codec_mask = 0x1 [37954.471856] ALSA
/data/downloads/alsa-driver-1.0.13/pci/hda/hda_codec.c:1756: hda_codec:
PCI 0:0, codec config 0 is selected
Quoted 6 lines
This is actually good info. Interesting that sound is coming out from the Surround channels. The low volume could mean that EAPD still needs to be set.
I'll look more into this tomorrow. Hopefully I can get a patch for you to test.
Thanks for all your help. I'm happy to test any patches you come up with.
Signature · 2 lines
Shaw Terwilliger <[email protected]> SourceGear LLC
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Sorry, I got a bit backlogged.
I just downloaded the codec spec for the 885, and will start going through it today. I should have something for you today or tomorrow at the latest. Since 1.0.14 is now imminent, I need to get cracking on several fronts and I want to get support for your system and others in before 1.0.14 final.
Tobin
Quoted 15 lines · Shaw Terwilliger
Quoted 8 lines · Shaw Terwilliger
Quoted 6 lines
This is actually good info. Interesting that sound is coming out from the Surround channels. The low volume could mean that EAPD still needs to be set.
I'll look more into this tomorrow. Hopefully I can get a patch for you to test.
Thanks for all your help. I'm happy to test any patches you come up with.
Have you had a chance too cook up any patches for the Mac Pro HDA hardware? I fooled around with different models yesterday, and the "auto" model detects very few output channels (PCM, Front, Line-in), but correctly assigns the front channel. It's still incredibly quiet.
Signature · 1 line
Tobin Davis <[email protected]>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
I've been looking over the spec for the Realtek ALC885 and comparing it with an earlier patch for the Mac Mini in the Sigmatel code. I'm wondering if Apple is using the same GPIO mute function as on the Mini. Attached is a patch to test that theory. It essentially sets the system up as a 3 stack audio (which may be wrong as it is), but also unmutes the gpio registers.
To test it, start with either the alsa-driver-hg20061130.tar.bz2 or download the recent 1.0.14rc1 and follow these instructions:
tar -jxvf alsa-driver-<version>.tar.bz2 # <version> == hg20061130 or
1.0.14rc1
cd alsa-driver-<version>/alsa-kernel
patch -p1 <macpro.patch.1
cd ..
./configure --with-cards=hda-intel --with-debug=detect ; make ; make install
dmesg -c
modprobe -r snd-hda-intel
modprobe snd-hda-intel model=macpro
dmesg >dmesg.out
Send me a copy of dmesg.out along with any differences that you see. I may need to tweak which pins get enabled.
Tobin
Quoted 15 lines · Shaw Terwilliger
Quoted 8 lines · Shaw Terwilliger
Quoted 6 lines
This is actually good info. Interesting that sound is coming out from the Surround channels. The low volume could mean that EAPD still needs to be set.
I'll look more into this tomorrow. Hopefully I can get a patch for you to test.
Thanks for all your help. I'm happy to test any patches you come up with.
Have you had a chance too cook up any patches for the Mac Pro HDA hardware? I fooled around with different models yesterday, and the "auto" model detects very few output channels (PCM, Front, Line-in), but correctly assigns the front channel. It's still incredibly quiet.
Signature · 1 line
Tobin Davis <[email protected]>
pci/hda/patch_realtek.c +51 -0
@@ -112,6 +112,7 @@ enum {ALC882_6ST_DIG ,ALC882_ARIMA ,ALC882_AUTO , +ALC885_MACPRO , ALC882_MODEL_LAST, };
@@ -4507,6 +4508,39 @@ static struct hda_verb alc882_eapd_verbs { } }; +/* Mac Pro test */ +static void alc882_gpio_mute (struct hda_codec *codec,int pin,int muted) +{ +unsigned int gpiostate, gpiomask, gpiodir; + + gpiostate =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_DATA ,0 ); + +if (!muted) + gpiostate |= (1 << pin); +else + gpiostate &= ~(1 << pin); + + gpiomask =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_MASK ,0 ); + gpiomask |= (1 << pin); + + gpiodir =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_DIRECTION ,0 ); + gpiodir |= (1 << pin); + + +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_MASK , gpiomask); +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_DIRECTION , gpiodir); + +msleep (1 ); + +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_DATA , gpiostate); +} +/* * generic initialization of ADC, input mixers and output mixers */
@@ -4633,6 +4667,7 @@ static const char *alc882_models[ALC882_ [ALC882_3ST_DIG] = "3stack-dig", [ALC882_6ST_DIG] = "6stack-dig", [ALC882_ARIMA] = "arima", + [ALC885_MACPRO] = "macpro", [ALC882_AUTO] = "auto", };
@@ -4675,6 +4710,17 @@ static struct alc_config_preset alc882_p .dac_nids = alc882_dac_nids, .num_channel_mode = ARRAY_SIZE(alc882_sixstack_modes), .channel_mode = alc882_sixstack_modes, + .input_mux = &alc882_capture_source, + }, + [ALC885_MACPRO] = { + .mixers = { alc882_base_mixer }, + .init_verbs = { alc882_init_verbs }, + .num_dacs = ARRAY_SIZE(alc882_dac_nids), + .dac_nids = alc882_dac_nids, + .dig_out_nid = ALC882_DIGOUT_NID, + .dig_in_nid = ALC882_DIGIN_NID, + .num_channel_mode = ARRAY_SIZE(alc882_ch_modes), + .channel_mode = alc882_ch_modes, .input_mux = &alc882_capture_source, }, };
@@ -4803,6 +4849,11 @@ static int patch_alc882(struct hda_codecif (board_config !=ALC882_AUTO )setup_preset (spec, &alc882_presets[board_config]); + +if (board_config ==ALC885_MACPRO ) { +alc882_gpio_mute (codec,0 ,0 ); +alc882_gpio_mute (codec,1 ,0 ); + } spec->stream_name_analog ="ALC882 Analog" ; spec->stream_analog_playback = &alc882_pcm_analog_playback;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 4 lines · Tobin Davis
To test it, start with either the alsa-driver-hg20061130.tar.bz2 or download the recent 1.0.14rc1 and follow these instructions:
tar -jxvf alsa-driver-<version>.tar.bz2 # <version> == hg20061130 or
1.0.14rc1
Quoted 8 lines
cd alsa-driver-<version>/alsa-kernel
patch -p1 <macpro.patch.1
cd ..
./configure --with-cards=hda-intel --with-debug=detect ; make ; make install dmesg -c
modprobe -r snd-hda-intel
modprobe snd-hda-intel model=macpro
dmesg >dmesg.out
Patch applies cleanly and builds with 1.0.14rc1, and macpro model selection works. The dmesg dump is attached (though it's pretty terse).
Quoted 2 lines
Send me a copy of dmesg.out along with any differences that you see. I may need to tweak which pins get enabled.
Great news: I have the correct volume! Here are some mixer oddities:
- The "Surround" mixer channels actually control what comes out of the line-out jack on the back of the Mac Pro (where I have my speakers plugged in). This was the case before.
- The "Front Mic" mixer channels actually control the line-in jack on the back of the Mac Pro (where I have my radio's line-out plugged in).
- No combination of mixer channel volumes and "Headphone" switch setting seems to control the headphone jack on the front of the Mac Pro (can't get any sound from it). Not a big deal for me, but might be for others.
- The "PC Speaker" mixer channel doesn't control the internal speaker. I don't know if this is actually possible in OS X (don't have it installed).
Also, I don't have an optical cable to test the digital in/out. Have not tested the other analog channels (don't have a mic, etc.).
Thanks for your work fixing up the driver for the 885.
Signature · 9 lines
Shaw Terwilliger <[email protected]> Teamprise LLC http://teamprise.com/ -- Shaw Terwilliger <[email protected]> SourceGear LLC
[352334.966359] ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 23 (level, low) -> IRQ 225 [352334.967289] PCI: Setting latency timer of device 0000:00:1b.0 to 64 [352335.000095] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:696: codec_mask = 0x1 [352335.177917] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:1743: hda_codec: model 'macpro' is selected
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Could you do a simple test? I need to see what the autoconfig detects for pins. To do this, type:
modprobe -r snd-hda-intel
dmesg -c >/dev/null
modprobe snd-hda-intel model=auto
dmesg >dmesg.out # send me this output
This should (hopefully) detect which port the headphones are on. It won't enable sound, but it is useful for detecting pins from the bios settings.
Also, when you said sound was coming from the surround channels, do you know if the front output was coming from that? To test this, reload the driver with "model=macpro" and type:
speaker-test -c 6 -t wav -Dplug:surround51
Thanks,
Tobin
Quoted 55 lines · Shaw Terwilliger
Quoted 4 lines · Tobin Davis
To test it, start with either the alsa-driver-hg20061130.tar.bz2 or download the recent 1.0.14rc1 and follow these instructions:
tar -jxvf alsa-driver-<version>.tar.bz2 # <version> == hg20061130 or
1.0.14rc1Quoted 8 lines
cd alsa-driver-<version>/alsa-kernel
patch -p1 <macpro.patch.1
cd ..
./configure --with-cards=hda-intel --with-debug=detect ; make ; make install dmesg -c
modprobe -r snd-hda-intel
modprobe snd-hda-intel model=macpro
dmesg >dmesg.outPatch applies cleanly and builds with 1.0.14rc1, and macpro model selection works. The dmesg dump is attached (though it's pretty terse).
Quoted 2 lines
Send me a copy of dmesg.out along with any differences that you see. I may need to tweak which pins get enabled.
Great news: I have the correct volume! Here are some mixer oddities:
- The "Surround" mixer channels actually control what comes out of the line-out jack on the back of the Mac Pro (where I have my speakers plugged in). This was the case before.
- The "Front Mic" mixer channels actually control the line-in jack on the back of the Mac Pro (where I have my radio's line-out plugged in).
- No combination of mixer channel volumes and "Headphone" switch setting seems to control the headphone jack on the front of the Mac Pro (can't get any sound from it). Not a big deal for me, but might be for others.
- The "PC Speaker" mixer channel doesn't control the internal speaker. I don't know if this is actually possible in OS X (don't have it installed).
Also, I don't have an optical cable to test the digital in/out. Have not tested the other analog channels (don't have a mic, etc.).
Thanks for your work fixing up the driver for the 885.
Signature · 13 lines
Shaw Terwilliger <[email protected]> Teamprise LLC http://teamprise.com/ plain text document attachment (model-macpro.dmesg.out) [352334.966359] ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 23 (level, low) -> IRQ 225 [352334.967289] PCI: Setting latency timer of device 0000:00:1b.0 to 64 [352335.000095] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:696: codec_mask = 0x1 [352335.177917] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:1743: hda_codec: model 'macpro' is selected
Signature · 1 line
Tobin Davis <[email protected]>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 8 lines · Tobin Davis
modprobe -r snd-hda-intel
dmesg -c >/dev/null
modprobe snd-hda-intel model=auto
dmesg >dmesg.out # send me this outputThis should (hopefully) detect which port the headphones are on. It won't enable sound, but it is useful for detecting pins from the bios settings.
File is attached.
Quoted 4 lines
Also, when you said sound was coming from the surround channels, do you know if the front output was coming from that? To test this, reload the driver with "model=macpro" and type:
speaker-test -c 6 -t wav -Dplug:surround51
I get:
Unable to set nperiods 4 for playback: Invalid argument Setting of hwparams failed: Invalid argument
If I change "-c 6" to "-c 8", I can run with the rest of the args (also works with 4). The "rear right" channel in the speaker test comes from the actual front right speaker (and "rear left" from the actual front left). Speakers are plugged in the to Mac's rear line-out. And it's the "Surround" mixer strip (alsamixer) that controls these volumes.
Signature · 2 lines
Shaw Terwilliger <[email protected]> SourceGear LLC
[593939.343584] ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 23 (level, low) -> IRQ 225 [593939.344458] PCI: Setting latency timer of device 0000:00:1b.0 to 64 [593939.378547] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:696: codec_mask = 0x1 [593939.556328] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:1743: hda_codec: model 'auto' is selected [593939.604812] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:2175: autoconfig: line_outs=1 (0x15/0x0/0x0/0x0/0x0) [593939.604817] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:2179: speaker_outs=1 (0x1a/0x0/0x0/0x0/0x0) [593939.604821] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:2183: hp_outs=1 (0x18/0x0/0x0/0x0/0x0) [593939.604824] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:2191: inputs: mic=0x0, fmic=0x0, line=0x19, fline=0x0, cd=0x0, aux=0x0
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Ok, based on that information, I think I have a working patch. Give this a try.
I'll let the next guy work on the S/PDIF if there is an issue with it.
Tobin
Quoted 39 lines · Shaw Terwilliger
Quoted 8 lines · Tobin Davis
modprobe -r snd-hda-intel
dmesg -c >/dev/null
modprobe snd-hda-intel model=auto
dmesg >dmesg.out # send me this outputThis should (hopefully) detect which port the headphones are on. It won't enable sound, but it is useful for detecting pins from the bios settings.
File is attached.
Quoted 4 lines
Also, when you said sound was coming from the surround channels, do you know if the front output was coming from that? To test this, reload the driver with "model=macpro" and type:
speaker-test -c 6 -t wav -Dplug:surround51I get:
Unable to set nperiods 4 for playback: Invalid argument Setting of hwparams failed: Invalid argument
If I change "-c 6" to "-c 8", I can run with the rest of the args (also works with 4). The "rear right" channel in the speaker test comes from the actual front right speaker (and "rear left" from the actual front left). Speakers are plugged in the to Mac's rear line-out. And it's the "Surround" mixer strip (alsamixer) that controls these volumes.
plain text document attachment (hda-model-auto.dmesg.txt)
[593939.343584] ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 23 (level, low) -> IRQ 225 [593939.344458] PCI: Setting latency timer of device 0000:00:1b.0 to 64 [593939.378547] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:696: codec_mask = 0x1 [593939.556328] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:1743: hda_codec: model 'auto' is selected [593939.604812] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:2175: autoconfig: line_outs=1 (0x15/0x0/0x0/0x0/0x0) [593939.604817] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:2179: speaker_outs=1 (0x1a/0x0/0x0/0x0/0x0) [593939.604821] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:2183: hp_outs=1 (0x18/0x0/0x0/0x0/0x0) [593939.604824] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:2191: inputs: mic=0x0, fmic=0x0, line=0x19, fline=0x0, cd=0x0, aux=0x0
Signature · 1 line
Tobin Davis <[email protected]>
pci/hda/patch_realtek.c +115 -0
@@ -112,6 +112,7 @@ enum {ALC882_6ST_DIG ,ALC882_ARIMA ,ALC882_AUTO , +ALC885_MACPRO , ALC882_MODEL_LAST, };
@@ -4507,6 +4508,103 @@ static struct hda_verb alc882_eapd_verbs { } }; +/* Mac Pro test */ +static struct snd_kcontrol_new alc882_macpro_mixer[] = { +HDA_CODEC_VOLUME ("Front Playback Volume" ,0x0d ,0x0 ,HDA_OUTPUT ), +HDA_BIND_MUTE ("Front Playback Switch" ,0x0d ,2 ,HDA_INPUT ), +HDA_CODEC_MUTE ("Headphone Playback Switch" ,0x18 ,0x0 ,HDA_OUTPUT ), +HDA_CODEC_VOLUME ("Line Playback Volume" ,0x0b ,0x01 ,HDA_INPUT ), +HDA_CODEC_MUTE ("Line Playback Switch" ,0x0b ,0x01 ,HDA_INPUT ), +HDA_CODEC_VOLUME ("PC Speaker Playback Volume" ,0x0b ,0x02 ,HDA_INPUT ), +HDA_CODEC_MUTE ("PC Speaker Playback Switch" ,0x0b ,0x02 ,HDA_INPUT ), + { }/* end */ +}; + +static struct hda_verb alc882_macpro_init_verbs[] = { +/* Front mixer: unmute input/output amp left and right (volume = 0) */ + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_ZERO }, + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (1 )}, +/* Front Pin: output 0 (0x0c) */ + {0x15 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_OUT }, + {0x15 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x15 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* Mic (rear) pin: input vref at 80% */ + {0x18 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_VREF80 }, + {0x18 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_MUTE }, +/* Front Mic pin: input vref at 80% */ + {0x19 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_VREF80 }, + {0x19 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_MUTE }, +/* Speaker: output */ + {0x1a ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_OUT }, + {0x1a ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x1a ,AC_VERB_SET_CONNECT_SEL ,0x04 }, +/* Headphone output (output 0 - 0x0c) */ + {0x18 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_HP }, + {0x18 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x18 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, + +/* FIXME: use matrix-type input source selection */ +/* Mixer elements: 0x18, 19, 1a, 1b, 1c, 1d, 14, 15, 16, 17, 0b */ +/* Input mixer1: unmute Mic, F-Mic, Line, CD inputs */ + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* Input mixer2 */ + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* Input mixer3 */ + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* ADC1: mute amp left and right */ + {0x07 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x07 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* ADC2: mute amp left and right */ + {0x08 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x08 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* ADC3: mute amp left and right */ + {0x09 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x09 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, + + { } +}; +static void alc882_gpio_mute (struct hda_codec *codec,int pin,int muted) +{ +unsigned int gpiostate, gpiomask, gpiodir; + + gpiostate =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_DATA ,0 ); + +if (!muted) + gpiostate |= (1 << pin); +else + gpiostate &= ~(1 << pin); + + gpiomask =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_MASK ,0 ); + gpiomask |= (1 << pin); + + gpiodir =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_DIRECTION ,0 ); + gpiodir |= (1 << pin); + + +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_MASK , gpiomask); +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_DIRECTION , gpiodir); + +msleep (1 ); + +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_DATA , gpiostate); +} +/* * generic initialization of ADC, input mixers and output mixers */
@@ -4633,6 +4731,7 @@ static const char *alc882_models[ALC882_ [ALC882_3ST_DIG] = "3stack-dig", [ALC882_6ST_DIG] = "6stack-dig", [ALC882_ARIMA] = "arima", + [ALC885_MACPRO] = "macpro", [ALC882_AUTO] = "auto", };
@@ -4675,6 +4774,17 @@ static struct alc_config_preset alc882_p .dac_nids = alc882_dac_nids, .num_channel_mode = ARRAY_SIZE(alc882_sixstack_modes), .channel_mode = alc882_sixstack_modes, + .input_mux = &alc882_capture_source, + }, + [ALC885_MACPRO] = { + .mixers = { alc882_macpro_mixer }, + .init_verbs = { alc882_macpro_init_verbs }, + .num_dacs = ARRAY_SIZE(alc882_dac_nids), + .dac_nids = alc882_dac_nids, + .dig_out_nid = ALC882_DIGOUT_NID, + .dig_in_nid = ALC882_DIGIN_NID, + .num_channel_mode = ARRAY_SIZE(alc882_ch_modes), + .channel_mode = alc882_ch_modes, .input_mux = &alc882_capture_source, }, };
@@ -4803,6 +4913,11 @@ static int patch_alc882(struct hda_codecif (board_config !=ALC882_AUTO )setup_preset (spec, &alc882_presets[board_config]); + +if (board_config ==ALC885_MACPRO ) { +alc882_gpio_mute (codec,0 ,0 ); +alc882_gpio_mute (codec,1 ,0 ); + } spec->stream_name_analog ="ALC882 Analog" ; spec->stream_analog_playback = &alc882_pcm_analog_playback;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 4 lines · lineTobin Davis
Ok, based on that information, I think I have a working patch. Give this a try.
I'll let the next guy work on the S/PDIF if there is an issue with it.
I get no sound from my speakers at all with this patch (via aplay, speaker-test, etc.). Here's the dmesg from load:
[601946.977991] ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 23 (level, low) -> IRQ 225 [601946.978931] PCI: Setting latency timer of device 0000:00:1b.0 to 64 [601947.011648] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:696: codec_mask = 0x1 [601947.196396] ALSA
/data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:1743:hda_codec: model 'macpro' is selected
The mixer shows the following playback channels:
PCM
Front
Line-in
PC Speakers
I even tried the front headphone jack with the speaker test and toggled the headphone switch. No sound.
Signature · 2 lines
Shaw Terwilliger <[email protected]> SourceGear LLC
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Oops. I had the mixer bindings wrong. Try this one.
Quoted 29 lines · Shaw Terwilliger
Quoted 4 lines · lineTobin Davis
Ok, based on that information, I think I have a working patch. Give this a try.
I'll let the next guy work on the S/PDIF if there is an issue with it.
I get no sound from my speakers at all with this patch (via aplay, speaker-test, etc.). Here's the dmesg from load:
[601946.977991] ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 23 (level, low) -> IRQ 225 [601946.978931] PCI: Setting latency timer of device 0000:00:1b.0 to 64 [601947.011648] ALSA /data/downloads/alsa-driver-1.0.14rc1/pci/hda/../../alsa-kernel/pci/hda/hda_intel.c:696: codec_mask = 0x1 [601947.196396] ALSA/data/downloads/alsa-driver-1.0.14rc1/pci/hda/hda_codec.c:1743:
hda_codec: model 'macpro' is selectedThe mixer shows the following playback channels:
PCM
Front
Line-in
PC SpeakersI even tried the front headphone jack with the speaker test and toggled the headphone switch. No sound.
Signature · 1 line
Tobin Davis <[email protected]>
pci/hda/patch_realtek.c +115 -0
@@ -112,6 +112,7 @@ enum {ALC882_6ST_DIG ,ALC882_ARIMA ,ALC882_AUTO , +ALC885_MACPRO , ALC882_MODEL_LAST, };
@@ -4507,6 +4508,103 @@ static struct hda_verb alc882_eapd_verbs { } }; +/* Mac Pro test */ +static struct snd_kcontrol_new alc882_macpro_mixer[] = { +HDA_CODEC_VOLUME ("Front Playback Volume" ,0x0c ,0x0 ,HDA_OUTPUT ), +HDA_BIND_MUTE ("Front Playback Switch" ,0x0c ,2 ,HDA_INPUT ), +HDA_CODEC_MUTE ("Headphone Playback Switch" ,0x18 ,0x0 ,HDA_OUTPUT ), +HDA_CODEC_VOLUME ("Line Playback Volume" ,0x0b ,0x01 ,HDA_INPUT ), +HDA_CODEC_MUTE ("Line Playback Switch" ,0x0b ,0x01 ,HDA_INPUT ), +HDA_CODEC_VOLUME ("PC Speaker Playback Volume" ,0x0b ,0x02 ,HDA_INPUT ), +HDA_CODEC_MUTE ("PC Speaker Playback Switch" ,0x0b ,0x02 ,HDA_INPUT ), + { }/* end */ +}; + +static struct hda_verb alc882_macpro_init_verbs[] = { +/* Front mixer: unmute input/output amp left and right (volume = 0) */ + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_ZERO }, + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (1 )}, +/* Front Pin: output 0 (0x0c) */ + {0x15 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_OUT }, + {0x15 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x15 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* Mic (rear) pin: input vref at 80% */ + {0x18 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_VREF80 }, + {0x18 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_MUTE }, +/* Front Mic pin: input vref at 80% */ + {0x19 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_VREF80 }, + {0x19 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_MUTE }, +/* Speaker: output */ + {0x1a ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_OUT }, + {0x1a ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x1a ,AC_VERB_SET_CONNECT_SEL ,0x04 }, +/* Headphone output (output 0 - 0x0c) */ + {0x18 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_HP }, + {0x18 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x18 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, + +/* FIXME: use matrix-type input source selection */ +/* Mixer elements: 0x18, 19, 1a, 1b, 1c, 1d, 14, 15, 16, 17, 0b */ +/* Input mixer1: unmute Mic, F-Mic, Line, CD inputs */ + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* Input mixer2 */ + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* Input mixer3 */ + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* ADC1: mute amp left and right */ + {0x07 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x07 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* ADC2: mute amp left and right */ + {0x08 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x08 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* ADC3: mute amp left and right */ + {0x09 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x09 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, + + { } +}; +static void alc882_gpio_mute (struct hda_codec *codec,int pin,int muted) +{ +unsigned int gpiostate, gpiomask, gpiodir; + + gpiostate =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_DATA ,0 ); + +if (!muted) + gpiostate |= (1 << pin); +else + gpiostate &= ~(1 << pin); + + gpiomask =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_MASK ,0 ); + gpiomask |= (1 << pin); + + gpiodir =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_DIRECTION ,0 ); + gpiodir |= (1 << pin); + + +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_MASK , gpiomask); +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_DIRECTION , gpiodir); + +msleep (1 ); + +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_DATA , gpiostate); +} +/* * generic initialization of ADC, input mixers and output mixers */
@@ -4633,6 +4731,7 @@ static const char *alc882_models[ALC882_ [ALC882_3ST_DIG] = "3stack-dig", [ALC882_6ST_DIG] = "6stack-dig", [ALC882_ARIMA] = "arima", + [ALC885_MACPRO] = "macpro", [ALC882_AUTO] = "auto", };
@@ -4675,6 +4774,17 @@ static struct alc_config_preset alc882_p .dac_nids = alc882_dac_nids, .num_channel_mode = ARRAY_SIZE(alc882_sixstack_modes), .channel_mode = alc882_sixstack_modes, + .input_mux = &alc882_capture_source, + }, + [ALC885_MACPRO] = { + .mixers = { alc882_macpro_mixer }, + .init_verbs = { alc882_macpro_init_verbs }, + .num_dacs = ARRAY_SIZE(alc882_dac_nids), + .dac_nids = alc882_dac_nids, + .dig_out_nid = ALC882_DIGOUT_NID, + .dig_in_nid = ALC882_DIGIN_NID, + .num_channel_mode = ARRAY_SIZE(alc882_ch_modes), + .channel_mode = alc882_ch_modes, .input_mux = &alc882_capture_source, }, };
@@ -4803,6 +4913,11 @@ static int patch_alc882(struct hda_codecif (board_config !=ALC882_AUTO )setup_preset (spec, &alc882_presets[board_config]); + +if (board_config ==ALC885_MACPRO ) { +alc882_gpio_mute (codec,0 ,0 ); +alc882_gpio_mute (codec,1 ,0 ); + } spec->stream_name_analog ="ALC882 Analog" ; spec->stream_analog_playback = &alc882_pcm_analog_playback;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 1 line · Tobin Davis
Oops. I had the mixer bindings wrong. Try this one.
My sound is back, and correctly labeled Front in the mixer! Line-in is also controlled correctly. Still no headphone noise from the front of the chassis (with or without headphone switch enabled). Not a big deal for me since I built a stereo switch box to plug into above the desk.
Thanks for all your hacking.
Signature · 2 lines
Shaw Terwilliger <[email protected]> SourceGear LLC
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Could you send me the new output from 'cat /proc/asound/card0/codec#0'? This might tell me why headphones aren't working.
By default, the jack that your system reported as headphones (when model=auto) is normally the microphone jack. I may need to add a verb that reverses the signal making it an output. This is a very minor change, and if it works, I'll get it added to the next alsa release.
Tobin
Quoted 10 lines · Shaw Terwilliger
Quoted 1 line · Tobin Davis
Oops. I had the mixer bindings wrong. Try this one.
My sound is back, and correctly labeled Front in the mixer! Line-in is also controlled correctly. Still no headphone noise from the front of the chassis (with or without headphone switch enabled). Not a big deal for me since I built a stereo switch box to plug into above the desk.
Thanks for all your hacking.
Signature · 1 line
Tobin Davis <[email protected]>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 2 lines · Tobin Davis
Could you send me the new output from 'cat /proc/asound/card0/codec#0'? This might tell me why headphones aren't working.
Attached (ran from your latest patch).
Signature · 2 lines
Shaw Terwilliger <[email protected]> SourceGear LLC
Codec: Realtek ALC885
Address: 0
Vendor Id: 0x10ec0885
Subsystem Id: 0x106b0c00
Revision Id: 0x100103
Default PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCMDefault Amp-In caps: N/A
Default Amp-Out caps: N/A
Node 0x02 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x04 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x05 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
PCM:
rates [0x5e0]: 44100 48000 88200 96000 192000
bits [0x1e]: 16 20 24 32
formats [0x1]: PCMNode 0x07 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x80 0x80]
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Connection: 1
0x24Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x80 0x80]
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Connection: 1
0x23Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x80 0x80]
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Connection: 1
0x22
Node 0x0a [Audio Input] wcaps 0x100391: Stereo Digital
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0x1e]: 16 20 24 32
formats [0x1]: PCM
Connection: 1
0x1fNode 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x97 0x97] [0x15 0x15] [0x10 0x10] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97]
Connection: 10
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17
Node 0x0c [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x2f 0x2f]
Connection: 2
0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2
0x03 0x0b
Node 0x0e [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2
0x04 0x0b
Node 0x0f [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2
0x05 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x15 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x01014150: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Green
Pin-ctls: 0x40: OUT
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x16 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x083c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 5
0x0c 0x0d 0x0e* 0x0f 0x26
Node 0x17 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x083c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 5
0x0c 0x0d 0x0e 0x0f* 0x26
Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x02214040: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
Pin-ctls: 0xc0: OUT HP
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x01813110: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls: 0x24: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x90100130: [Fixed] Speaker at Int N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x40: OUT
Connection: 5
0x0c 0x0d 0x0e 0x0f 0x26*
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1c [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
Pincap 0x0820: IN
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
Pincap 0x0810: OUT
Pin Default 0x0145e160: [Jack] SPDIF Out at Ext Rear
Conn = Optical, Color = White
Pin-ctls: 0x40: OUT
Connection: 1
0x06
Node 0x1f [Pin Complex] wcaps 0x400200: Mono Digital
Pincap 0x0820: IN
Pin Default 0x01c5e120: [Jack] SPDIF In at Ext Rear
Conn = Optical, Color = White
Pin-ctls: 0x20: IN
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Node 0x21 [Volume Knob Widget] wcaps 0x600080: Mono
Node 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x24 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x25 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCMNode 0x26 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2
0x25 0x0b
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
I'm curious if you all turn up any luck on alsa on MacPro. No sound has been a thorn in my side for quite awhile. =)
Thanks for the info!
- Richard
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Actually, quite close. I'm working on headphones now. Here's the latest patch to date (sorry, no headphones yet).
Tobin
Quoted 17 lines · Richard
I'm curious if you all turn up any luck on alsa on MacPro. No sound has been a thorn in my side for quite awhile. =)
Thanks for the info!
- Richard
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Signature · 1 line
Tobin Davis <[email protected]>
pci/hda/patch_realtek.c +112 -0
@@ -112,6 +112,7 @@ enum {ALC882_6ST_DIG ,ALC882_ARIMA ,ALC882_AUTO , +ALC885_MACPRO , ALC882_MODEL_LAST, };
@@ -4507,6 +4508,100 @@ static struct hda_verb alc882_eapd_verbs { } }; +/* Mac Pro test */ +static struct snd_kcontrol_new alc882_macpro_mixer[] = { +HDA_CODEC_VOLUME ("Front Playback Volume" ,0x0c ,0x0 ,HDA_OUTPUT ), +HDA_BIND_MUTE ("Front Playback Switch" ,0x0c ,2 ,HDA_INPUT ), +HDA_CODEC_MUTE ("Headphone Playback Switch" ,0x18 ,0x0 ,HDA_OUTPUT ), +HDA_CODEC_VOLUME ("Line Playback Volume" ,0x0b ,0x01 ,HDA_INPUT ), +HDA_CODEC_MUTE ("Line Playback Switch" ,0x0b ,0x01 ,HDA_INPUT ), +HDA_CODEC_VOLUME ("PC Speaker Playback Volume" ,0x0b ,0x02 ,HDA_INPUT ), +HDA_CODEC_MUTE ("PC Speaker Playback Switch" ,0x0b ,0x02 ,HDA_INPUT ), + { }/* end */ +}; + +static struct hda_verb alc882_macpro_init_verbs[] = { +/* Front mixer: unmute input/output amp left and right (volume = 0) */ + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_ZERO }, + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (1 )}, +/* Front Pin: output 0 (0x0c) */ + {0x15 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_OUT }, + {0x15 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x15 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* Front Mic pin: input vref at 80% */ + {0x19 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_VREF80 }, + {0x19 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_MUTE }, +/* Speaker: output */ + {0x1a ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_OUT }, + {0x1a ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x1a ,AC_VERB_SET_CONNECT_SEL ,0x04 }, +/* Headphone output (output 0 - 0x0c) */ + {0x18 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_HP }, + {0x18 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x18 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, + +/* FIXME: use matrix-type input source selection */ +/* Mixer elements: 0x18, 19, 1a, 1b, 1c, 1d, 14, 15, 16, 17, 0b */ +/* Input mixer1: unmute Mic, F-Mic, Line, CD inputs */ + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* Input mixer2 */ + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* Input mixer3 */ + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* ADC1: mute amp left and right */ + {0x07 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x07 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* ADC2: mute amp left and right */ + {0x08 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x08 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* ADC3: mute amp left and right */ + {0x09 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x09 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, + + { } +}; +static void alc882_gpio_mute (struct hda_codec *codec,int pin,int muted) +{ +unsigned int gpiostate, gpiomask, gpiodir; + + gpiostate =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_DATA ,0 ); + +if (!muted) + gpiostate |= (1 << pin); +else + gpiostate &= ~(1 << pin); + + gpiomask =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_MASK ,0 ); + gpiomask |= (1 << pin); + + gpiodir =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_DIRECTION ,0 ); + gpiodir |= (1 << pin); + + +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_MASK , gpiomask); +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_DIRECTION , gpiodir); + +msleep (1 ); + +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_DATA , gpiostate); +} +/* * generic initialization of ADC, input mixers and output mixers */
@@ -4633,6 +4728,7 @@ static const char *alc882_models[ALC882_ [ALC882_3ST_DIG] = "3stack-dig", [ALC882_6ST_DIG] = "6stack-dig", [ALC882_ARIMA] = "arima", + [ALC885_MACPRO] = "macpro", [ALC882_AUTO] = "auto", };
@@ -4675,6 +4771,17 @@ static struct alc_config_preset alc882_p .dac_nids = alc882_dac_nids, .num_channel_mode = ARRAY_SIZE(alc882_sixstack_modes), .channel_mode = alc882_sixstack_modes, + .input_mux = &alc882_capture_source, + }, + [ALC885_MACPRO] = { + .mixers = { alc882_macpro_mixer }, + .init_verbs = { alc882_macpro_init_verbs }, + .num_dacs = ARRAY_SIZE(alc882_dac_nids), + .dac_nids = alc882_dac_nids, + .dig_out_nid = ALC882_DIGOUT_NID, + .dig_in_nid = ALC882_DIGIN_NID, + .num_channel_mode = ARRAY_SIZE(alc882_ch_modes), + .channel_mode = alc882_ch_modes, .input_mux = &alc882_capture_source, }, };
@@ -4803,6 +4910,11 @@ static int patch_alc882(struct hda_codecif (board_config !=ALC882_AUTO )setup_preset (spec, &alc882_presets[board_config]); + +if (board_config ==ALC885_MACPRO ) { +alc882_gpio_mute (codec,0 ,0 ); +alc882_gpio_mute (codec,1 ,0 ); + } spec->stream_name_analog ="ALC882 Analog" ; spec->stream_analog_playback = &alc882_pcm_analog_playback;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Could one of you run a little experiment for me? Here's what I need:
Load the sound drivers. Unplug headphones, toggle off the headphone button in alsamixer and type "cat /proc/asound/card0/codec#0 > without-headphones.codec". Next, plug in your headphones, toggle the headphone button and type "cat /proc/asound/card0/codec#0 > with-headphones.codec". Send me both files.
The only info I have shows the headphone jack as muted, but I want to verify that it changes state when the button is toggled.
Thanks.
Signature · 1 line
Tobin Davis <[email protected]>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 7 lines · Tobin Davis
Could one of you run a little experiment for me? Here's what I need:
Load the sound drivers. Unplug headphones, toggle off the headphone button in alsamixer and type "cat /proc/asound/card0/codec#0 > without-headphones.codec". Next, plug in your headphones, toggle the headphone button and type "cat /proc/asound/card0/codec#0 > with-headphones.codec". Send me both files.
Attached. Quick diff for your instant gratification:
hansen:~% diff without-headphones.codec with-headphones.codec 156c156
< Amp-Out vals: [0x80 0x80]
---
Quoted 1 line
Amp-Out vals: [
0x000x00]
Signature · 2 lines
Shaw Terwilliger <[email protected]> SourceGear LLC
Codec: Realtek ALC885
Address: 0
Vendor Id: 0x10ec0885
Subsystem Id: 0x106b0c00
Revision Id: 0x100103
Default PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCMDefault Amp-In caps: N/A
Default Amp-Out caps: N/A
Node 0x02 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x04 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x05 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
PCM:
rates [0x5e0]: 44100 48000 88200 96000 192000
bits [0x1e]: 16 20 24 32
formats [0x1]: PCMNode 0x07 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x80 0x80]
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Connection: 1
0x24Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x80 0x80]
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Connection: 1
0x23Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x80 0x80]
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Connection: 1
0x22
Node 0x0a [Audio Input] wcaps 0x100391: Stereo Digital
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0x1e]: 16 20 24 32
formats [0x1]: PCM
Connection: 1
0x1fNode 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x97 0x97] [0x15 0x15] [0x10 0x10] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97]
Connection: 10
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17
Node 0x0c [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x33 0x33]
Connection: 2
0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2
0x03 0x0b
Node 0x0e [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2
0x04 0x0b
Node 0x0f [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2
0x05 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x15 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x01014150: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Green
Pin-ctls: 0x40: OUT
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x16 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x083c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 5
0x0c 0x0d 0x0e* 0x0f 0x26
Node 0x17 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x083c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 5
0x0c 0x0d 0x0e 0x0f* 0x26
Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x02214040: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
Pin-ctls: 0xc0: OUT HP
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x01813110: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls: 0x24: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x90100130: [Fixed] Speaker at Int N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x40: OUT
Connection: 5
0x0c 0x0d 0x0e 0x0f 0x26*
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1c [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
Pincap 0x0820: IN
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
Pincap 0x0810: OUT
Pin Default 0x0145e160: [Jack] SPDIF Out at Ext Rear
Conn = Optical, Color = White
Pin-ctls: 0x40: OUT
Connection: 1
0x06
Node 0x1f [Pin Complex] wcaps 0x400200: Mono Digital
Pincap 0x0820: IN
Pin Default 0x01c5e120: [Jack] SPDIF In at Ext Rear
Conn = Optical, Color = White
Pin-ctls: 0x20: IN
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Node 0x21 [Volume Knob Widget] wcaps 0x600080: Mono
Node 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x24 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x25 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCMNode 0x26 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2
0x25 0x0b
Codec: Realtek ALC885
Address: 0
Vendor Id: 0x10ec0885
Subsystem Id: 0x106b0c00
Revision Id: 0x100103
Default PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCMDefault Amp-In caps: N/A
Default Amp-Out caps: N/A
Node 0x02 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x04 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x05 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
PCM:
rates [0x5e0]: 44100 48000 88200 96000 192000
bits [0x1e]: 16 20 24 32
formats [0x1]: PCMNode 0x07 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x80 0x80]
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Connection: 1
0x24Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x80 0x80]
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Connection: 1
0x23Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x10, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x80 0x80]
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Connection: 1
0x22
Node 0x0a [Audio Input] wcaps 0x100391: Stereo Digital
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0x1e]: 16 20 24 32
formats [0x1]: PCM
Connection: 1
0x1fNode 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x97 0x97] [0x15 0x15] [0x10 0x10] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97] [0x97 0x97]
Connection: 10
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17
Node 0x0c [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x33 0x33]
Connection: 2
0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2
0x03 0x0b
Node 0x0e [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2
0x04 0x0b
Node 0x0f [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2
0x05 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x15 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x01014150: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Green
Pin-ctls: 0x40: OUT
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x16 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x083c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 5
0x0c 0x0d 0x0e* 0x0f 0x26
Node 0x17 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x083c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 5
0x0c 0x0d 0x0e 0x0f* 0x26
Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x02214040: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
Pin-ctls: 0xc0: OUT HP
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x01813110: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls: 0x24: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x90100130: [Fixed] Speaker at Int N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x40: OUT
Connection: 5
0x0c 0x0d 0x0e 0x0f 0x26*
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x08373c: IN OUT HP Detect
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1c [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
Pincap 0x0820: IN
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
Pincap 0x0810: OUT
Pin Default 0x0145e160: [Jack] SPDIF Out at Ext Rear
Conn = Optical, Color = White
Pin-ctls: 0x40: OUT
Connection: 1
0x06
Node 0x1f [Pin Complex] wcaps 0x400200: Mono Digital
Pincap 0x0820: IN
Pin Default 0x01c5e120: [Jack] SPDIF In at Ext Rear
Conn = Optical, Color = White
Pin-ctls: 0x20: IN
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Node 0x21 [Volume Knob Widget] wcaps 0x600080: Mono
Node 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x24 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x25 [Audio Output] wcaps 0x11: Stereo
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCMNode 0x26 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Connection: 2
0x25 0x0b
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 9 lines · Shaw Terwilliger
Quoted 7 lines · Tobin Davis
Could one of you run a little experiment for me? Here's what I need:
Load the sound drivers. Unplug headphones, toggle off the headphone button in alsamixer and type "cat /proc/asound/card0/codec#0 > without-headphones.codec". Next, plug in your headphones, toggle the headphone button and type "cat /proc/asound/card0/codec#0 > with-headphones.codec". Send me both files.
Quoted 7 lines
Attached. Quick diff for your instant gratification:
hansen:~% diff without-headphones.codec with-headphones.codec 156c156
< Amp-Out vals: [0x800x80]
---Quoted 1 line
Amp-Out vals: [
0x000x00]
That was exactly what I was looking for (and hoping was not happening). Essentially, the headphone switch is correctly muting the jack (0x80, left and right channel). Just no volume.
Back to the manual. I'll try to get another patch out today.
Thanks,
Signature · 1 line
Tobin Davis <[email protected]>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
I think I may have cracked this nut (sliced this apple?). Here is another test patch. The only difference is the connection for the front headphone jack.
If this patch doesn't work, then I'm at a loss as to what to try next.
Tobin
pci/hda/patch_realtek.c +116 -0
@@ -112,6 +112,7 @@ enum {ALC882_6ST_DIG ,ALC882_ARIMA ,ALC882_AUTO , +ALC885_MACPRO , ALC882_MODEL_LAST, };
@@ -4507,6 +4508,104 @@ static struct hda_verb alc882_eapd_verbs { } }; +/* Mac Pro test */ +static struct snd_kcontrol_new alc882_macpro_mixer[] = { +HDA_CODEC_VOLUME ("Front Playback Volume" ,0x0c ,0x0 ,HDA_OUTPUT ), +HDA_BIND_MUTE ("Front Playback Switch" ,0x0c ,2 ,HDA_INPUT ), +HDA_CODEC_MUTE ("Headphone Playback Switch" ,0x18 ,0x0 ,HDA_OUTPUT ), +HDA_CODEC_VOLUME ("Line Playback Volume" ,0x0b ,0x01 ,HDA_INPUT ), +HDA_CODEC_MUTE ("Line Playback Switch" ,0x0b ,0x01 ,HDA_INPUT ), +HDA_CODEC_VOLUME ("PC Speaker Playback Volume" ,0x0b ,0x02 ,HDA_INPUT ), +HDA_CODEC_MUTE ("PC Speaker Playback Switch" ,0x0b ,0x02 ,HDA_INPUT ), + { }/* end */ +}; + +static struct hda_verb alc882_macpro_init_verbs[] = { +/* Front mixer: unmute input/output amp left and right (volume = 0) */ + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_ZERO }, + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (1 )}, +/* Fout mixer: unmute input/output amp left and right (volume = 0) */ + {0x26 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_ZERO }, + {0x26 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x26 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (1 )}, +/* Front Pin: output 0 (0x0c) */ + {0x15 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_OUT }, + {0x15 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x15 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* Front Mic pin: input vref at 80% */ + {0x19 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_VREF80 }, + {0x19 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_MUTE }, +/* Speaker: output */ + {0x1a ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_OUT }, + {0x1a ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x1a ,AC_VERB_SET_CONNECT_SEL ,0x04 }, +/* Headphone output (output 0 - 0x0c) */ + {0x18 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_HP }, + {0x18 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x18 ,AC_VERB_SET_CONNECT_SEL ,0x04 }, + +/* FIXME: use matrix-type input source selection */ +/* Mixer elements: 0x18, 19, 1a, 1b, 1c, 1d, 14, 15, 16, 17, 0b */ +/* Input mixer1: unmute Mic, F-Mic, Line, CD inputs */ + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* Input mixer2 */ + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* Input mixer3 */ + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* ADC1: mute amp left and right */ + {0x07 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x07 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* ADC2: mute amp left and right */ + {0x08 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x08 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* ADC3: mute amp left and right */ + {0x09 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x09 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, + + { } +}; +static void alc882_gpio_mute (struct hda_codec *codec,int pin,int muted) +{ +unsigned int gpiostate, gpiomask, gpiodir; + + gpiostate =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_DATA ,0 ); + +if (!muted) + gpiostate |= (1 << pin); +else + gpiostate &= ~(1 << pin); + + gpiomask =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_MASK ,0 ); + gpiomask |= (1 << pin); + + gpiodir =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_DIRECTION ,0 ); + gpiodir |= (1 << pin); + + +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_MASK , gpiomask); +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_DIRECTION , gpiodir); + +msleep (1 ); + +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_DATA , gpiostate); +} +/* * generic initialization of ADC, input mixers and output mixers */
@@ -4633,6 +4732,7 @@ static const char *alc882_models[ALC882_ [ALC882_3ST_DIG] = "3stack-dig", [ALC882_6ST_DIG] = "6stack-dig", [ALC882_ARIMA] = "arima", + [ALC885_MACPRO] = "macpro", [ALC882_AUTO] = "auto", };
@@ -4675,6 +4775,17 @@ static struct alc_config_preset alc882_p .dac_nids = alc882_dac_nids, .num_channel_mode = ARRAY_SIZE(alc882_sixstack_modes), .channel_mode = alc882_sixstack_modes, + .input_mux = &alc882_capture_source, + }, + [ALC885_MACPRO] = { + .mixers = { alc882_macpro_mixer }, + .init_verbs = { alc882_macpro_init_verbs }, + .num_dacs = ARRAY_SIZE(alc882_dac_nids), + .dac_nids = alc882_dac_nids, + .dig_out_nid = ALC882_DIGOUT_NID, + .dig_in_nid = ALC882_DIGIN_NID, + .num_channel_mode = ARRAY_SIZE(alc882_ch_modes), + .channel_mode = alc882_ch_modes, .input_mux = &alc882_capture_source, }, };
@@ -4803,6 +4914,11 @@ static int patch_alc882(struct hda_codecif (board_config !=ALC882_AUTO )setup_preset (spec, &alc882_presets[board_config]); + +if (board_config ==ALC885_MACPRO ) { +alc882_gpio_mute (codec,0 ,0 ); +alc882_gpio_mute (codec,1 ,0 ); + } spec->stream_name_analog ="ALC882 Analog" ; spec->stream_analog_playback = &alc882_pcm_analog_playback;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 3 lines · Tobin Davis
I think I may have cracked this nut (sliced this apple?). Here is another test patch. The only difference is the connection for the front headphone jack.
No luck here. Switch on or off, no noise comes from the front headphone jack.
Signature · 2 lines
Shaw Terwilliger <[email protected]> SourceGear LLC
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
I've been reading the data sheet for that codec, and found that it has 3 gpio pins instead of 2. This patch reverses the last change, and enables that third gpio. If this doesn't work, I'm at a loss.
Wish I had some of these systems here to test with. Maybe once I win the lottery. :)
Signature · 1 line
Tobin Davis <[email protected]>
pci/hda/patch_realtek.c +113 -0
@@ -112,6 +112,7 @@ enum {ALC882_6ST_DIG ,ALC882_ARIMA ,ALC882_AUTO , +ALC885_MACPRO , ALC882_MODEL_LAST, };
@@ -4507,6 +4508,100 @@ static struct hda_verb alc882_eapd_verbs { } }; +/* Mac Pro test */ +static struct snd_kcontrol_new alc882_macpro_mixer[] = { +HDA_CODEC_VOLUME ("Front Playback Volume" ,0x0c ,0x0 ,HDA_OUTPUT ), +HDA_BIND_MUTE ("Front Playback Switch" ,0x0c ,2 ,HDA_INPUT ), +HDA_CODEC_MUTE ("Headphone Playback Switch" ,0x18 ,0x0 ,HDA_OUTPUT ), +HDA_CODEC_VOLUME ("Line Playback Volume" ,0x0b ,0x01 ,HDA_INPUT ), +HDA_CODEC_MUTE ("Line Playback Switch" ,0x0b ,0x01 ,HDA_INPUT ), +HDA_CODEC_VOLUME ("PC Speaker Playback Volume" ,0x0b ,0x02 ,HDA_INPUT ), +HDA_CODEC_MUTE ("PC Speaker Playback Switch" ,0x0b ,0x02 ,HDA_INPUT ), + { }/* end */ +}; + +static struct hda_verb alc882_macpro_init_verbs[] = { +/* Front mixer: unmute input/output amp left and right (volume = 0) */ + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_ZERO }, + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x0c ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (1 )}, +/* Front Pin: output 0 (0x0c) */ + {0x15 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_OUT }, + {0x15 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x15 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* Front Mic pin: input vref at 80% */ + {0x19 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_VREF80 }, + {0x19 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_MUTE }, +/* Speaker: output */ + {0x1a ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_OUT }, + {0x1a ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x1a ,AC_VERB_SET_CONNECT_SEL ,0x04 }, +/* Headphone output (output 0 - 0x0c) */ + {0x18 ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_HP }, + {0x18 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_OUT_UNMUTE }, + {0x18 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, + +/* FIXME: use matrix-type input source selection */ +/* Mixer elements: 0x18, 19, 1a, 1b, 1c, 1d, 14, 15, 16, 17, 0b */ +/* Input mixer1: unmute Mic, F-Mic, Line, CD inputs */ + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x24 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* Input mixer2 */ + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x23 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* Input mixer3 */ + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_UNMUTE (0 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (3 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (2 )}, + {0x22 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (4 )}, +/* ADC1: mute amp left and right */ + {0x07 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x07 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* ADC2: mute amp left and right */ + {0x08 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x08 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, +/* ADC3: mute amp left and right */ + {0x09 ,AC_VERB_SET_AMP_GAIN_MUTE ,AMP_IN_MUTE (0 )}, + {0x09 ,AC_VERB_SET_CONNECT_SEL ,0x00 }, + + { } +}; +static void alc882_gpio_mute (struct hda_codec *codec,int pin,int muted) +{ +unsigned int gpiostate, gpiomask, gpiodir; + + gpiostate =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_DATA ,0 ); + +if (!muted) + gpiostate |= (1 << pin); +else + gpiostate &= ~(1 << pin); + + gpiomask =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_MASK ,0 ); + gpiomask |= (1 << pin); + + gpiodir =snd_hda_codec_read (codec, codec->afg,0 , +AC_VERB_GET_GPIO_DIRECTION ,0 ); + gpiodir |= (1 << pin); + + +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_MASK , gpiomask); +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_DIRECTION , gpiodir); + +msleep (1 ); + +snd_hda_codec_write (codec, codec->afg,0 , +AC_VERB_SET_GPIO_DATA , gpiostate); +} +/* * generic initialization of ADC, input mixers and output mixers */
@@ -4633,6 +4728,7 @@ static const char *alc882_models[ALC882_ [ALC882_3ST_DIG] = "3stack-dig", [ALC882_6ST_DIG] = "6stack-dig", [ALC882_ARIMA] = "arima", + [ALC885_MACPRO] = "macpro", [ALC882_AUTO] = "auto", };
@@ -4675,6 +4771,17 @@ static struct alc_config_preset alc882_p .dac_nids = alc882_dac_nids, .num_channel_mode = ARRAY_SIZE(alc882_sixstack_modes), .channel_mode = alc882_sixstack_modes, + .input_mux = &alc882_capture_source, + }, + [ALC885_MACPRO] = { + .mixers = { alc882_macpro_mixer }, + .init_verbs = { alc882_macpro_init_verbs }, + .num_dacs = ARRAY_SIZE(alc882_dac_nids), + .dac_nids = alc882_dac_nids, + .dig_out_nid = ALC882_DIGOUT_NID, + .dig_in_nid = ALC882_DIGIN_NID, + .num_channel_mode = ARRAY_SIZE(alc882_ch_modes), + .channel_mode = alc882_ch_modes, .input_mux = &alc882_capture_source, }, };
@@ -4803,6 +4910,12 @@ static int patch_alc882(struct hda_codecif (board_config !=ALC882_AUTO )setup_preset (spec, &alc882_presets[board_config]); + +if (board_config ==ALC885_MACPRO ) { +alc882_gpio_mute (codec,0 ,0 ); +alc882_gpio_mute (codec,1 ,0 ); +alc882_gpio_mute (codec,2 ,0 ); + } spec->stream_name_analog ="ALC882 Analog" ; spec->stream_analog_playback = &alc882_pcm_analog_playback;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Quoted 3 lines · Tobin Davis
I've been reading the data sheet for that codec, and found that it has 3 gpio pins instead of 2. This patch reverses the last change, and enables that third gpio. If this doesn't work, I'm at a loss.
No luck with this one either. Any other kind of investigation I can do for you?
Signature · 2 lines
Shaw Terwilliger <[email protected]> SourceGear LLC
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
At this point, no. The codec files that you and Richard have provided show that everything should be working. The mixer button for headphones mutes and unmutes the proper jack.
At this point, I'm going to go ahead and push patch 4 into the tree, as patches 5 & 6 didn't do anything. I'll just document that headphones aren't currently working. I'll pick it up again after 1.0.14, unless someone else fixes it first. I need to move on to other systems that currently have nothing.
At least we have sound. That is a big step.
Tobin
Quoted 8 lines · Shaw Terwilliger
Quoted 3 lines · Tobin Davis
I've been reading the data sheet for that codec, and found that it has 3 gpio pins instead of 2. This patch reverses the last change, and enables that third gpio. If this doesn't work, I'm at a loss.
No luck with this one either. Any other kind of investigation I can do for you?
Signature · 1 line
Tobin Davis <[email protected]>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel