Acer Aspire 8920g / snd-hda-intel / ALC889 / surround sound
Hi,
there's been a thread about a similar issue around 2008-04, it ended with a working front left/right setup, which is of course better than no sound, but it would be really nice to be able to use all available speakers.
The notebook has 5.1 surround, but all speakers except front left and front right stay silent.
I'm running Fedora 10, 2.6.27.9-159.fc10.x86_64,
# cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.18a.
# cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xfc300000 irq 22
1 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xc7eec000 irq 17When I select model "auto", then I get a working front left and front right speaker. When I select model "acer-aspire", everything is mute and I have to use the hda-verb utility to get some sound out of the front speakers, so right now I am using the "auto" option.
I see a segfault in alsactl when I look at dmesg, not sure if this is related to the problem:
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
HDA Intel 0000:00:1b.0: setting latency timer to 64
ALSA sound/pci/hda/hda_codec.c:2587: hda_codec: model 'auto' is selected ALSA sound/pci/hda/hda_codec.c:3303: autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0)
ALSA sound/pci/hda/hda_codec.c:3307: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) ALSA sound/pci/hda/hda_codec.c:3311: hp_outs=1 (0x15/0x0/0x0/0x0/0x0) ALSA sound/pci/hda/hda_codec.c:3312: mono: mono_out=0x0 ALSA sound/pci/hda/hda_codec.c:3320: inputs: mic=0x12, fmic=0x18, line=0x1a, fline=0x0, cd=0x0, aux=0x0
HDA Intel 0000:01:00.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
HDA Intel 0000:01:00.1: setting latency timer to 64
alsactl[1631]: segfault at 0 ip 00000000004106e7 sp 00007fffb7682fa0 error 4 in alsactl[400000+14000] alsactl[1624]: segfault at 0 ip 00000000004106e7 sp 00007fff4ba9e3c0 error 4 in alsactl[400000+14000]
The full output of the alsa-info script is here:
http://www.alsa-project.org/db/?f=405364959a8f52c85f045f35fa1f3bf4536b13bc
I have a working setup to compile the alsa-driver, so I'm ready to test whatever is needed :) Any ideas?
Kind regards,
Jin
While waiting for an answer I continued my attempts to get this to work, unfortunately without success.
I tried all models from patch_realtek.c (alsa version 1.0.18a), umuting the channels with alsa mixer and running speaker test on each model selection - but no luck with surround there.
I also tried hda_analyzer from
http://git.alsa-project.org/?p=alsa.git;a=tree;f=hda-analyzer;hb=HEAD
run.py downloaded hda_analyzer.py and hda_codec.py which bailed out with an error:
Downloaded all files, executing hda_analyzer.py
Traceback (most recent call last):
File "/dev/shm/hda-analyzer/hda_analyzer.py", line 906, in <module>
main()
File "/dev/shm/hda-analyzer/hda_analyzer.py", line 893, in main
if read_nodes() == 0:
File "/dev/shm/hda-analyzer/hda_analyzer.py", line 46, in read_nodes
read_nodes2(c.card, i)
File "/dev/shm/hda-analyzer/hda_analyzer.py", line 36, in read_nodes2
c.analyze()
File "/dev/shm/hda-analyzer/hda_codec.py", line 821, in analyze
pcm = self.param_read(self.afg, PARAMS['PCM'])
File "/dev/shm/hda-analyzer/hda_codec.py", line 745, in param_read
return self.rw(nid, VERBS['PARAMETERS'], param)
File "/dev/shm/hda-analyzer/hda_codec.py", line 730, in rw
verb = (nid << 24) | (verb << 8) | paramTypeError: unsupported operand type(s) for <<: 'NoneType' and 'int'
I am not sure if this is OK, but I patched hda_codec.py and was able to proceed.
tmp/hda-analyzer/hda_codec.py 2009-01-05 21:13:13.000000000 +0100 renamed from hda_codec.py 2009-01-05 21:11:33.672001401 +0100 +2 -0
@@ -727,6 +727,8 @@ def rw(self, nid, verb, param): """do elementary read/write operation""" + if not nid: + nid = 0 verb = (nid << 24) | (verb << 8) | param res = ioctl(self.fd, IOCTL_VERB_WRITE, struct.pack('II', verb, 0)) return struct.unpack('II', res)[1]
I spent quite some time with hda_analyzer but was not able to produce any useful results.
So at this point I am really stuck. Can anyone suggest what I could try next? How to proceed?
Kind regards,
Jin
Quoted 50 lines · Sergey 'Jin' Bostandzhyan
Hi,
there's been a thread about a similar issue around 2008-04, it ended with a working front left/right setup, which is of course better than no sound, but it would be really nice to be able to use all available speakers.
The notebook has 5.1 surround, but all speakers except front left and front right stay silent.
I'm running Fedora 10, 2.6.27.9-159.fc10.x86_64,
# cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.18a.# cat /proc/asound/cards 0 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0xfc300000 irq 22 1 [HDMI ]: HDA-Intel - HDA ATI HDMI HDA ATI HDMI at 0xc7eec000 irq 17When I select model "auto", then I get a working front left and front right speaker. When I select model "acer-aspire", everything is mute and I have to use the hda-verb utility to get some sound out of the front speakers, so right now I am using the "auto" option.
I see a segfault in alsactl when I look at dmesg, not sure if this is related to the problem:
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
HDA Intel 0000:00:1b.0: setting latency timer to 64
ALSAsound/pci/hda/hda_codec.c:2587:hda_codec: model 'auto' is selected ALSAsound/pci/hda/hda_codec.c:3303: autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0)ALSA sound/pci/hda/hda_codec.c:3307: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) ALSA sound/pci/hda/hda_codec.c:3311: hp_outs=1 (0x15/0x0/0x0/0x0/0x0) ALSA sound/pci/hda/hda_codec.c:3312: mono: mono_out=0x0 ALSA sound/pci/hda/hda_codec.c:3320: inputs: mic=0x12, fmic=0x18, line=0x1a, fline=0x0, cd=0x0, aux=0x0HDA Intel 0000:01:00.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
HDA Intel 0000:01:00.1: setting latency timer to 64
alsactl[1631]: segfault at 0 ip00000000004106e7sp00007fffb7682fa0error 4 in alsactl[400000+14000] alsactl[1624]: segfault at 0 ip00000000004106e7sp00007fff4ba9e3c0error 4 in alsactl[400000+14000]The full output of the alsa-info script is here:
http://www.alsa-project.org/db/?f=405364959a8f52c85f045f35fa1f3bf4536b13bcI have a working setup to compile the alsa-driver, so I'm ready to test whatever is needed :) Any ideas?
Kind regards,
Jin
Still trying... although I'd be really happy to get at least some feedback on this.
Compiled the alsa-driver snapshot: alsa-driver-1.0.18a.46.g3482a.322.g6a94f, I was hoping that the acer-aspire-4930g model might have something in common with mine.
Unfortunately no luck here as well; inserted the module with the acer-aspire-4930g model parameter, upped volume on Master/Front/Surround/Center/ LFE/Side in alsamixer and did the usual speaker test:
speaker-test -c6 -D hw:0,0 -t wav -l1
No sound.
Based on the info from IRC the suspicion is that the routings are screwed up, as mentioned in my previous post I tried various things with hda_analyzer but did not get anywhere.
Please help, or something? :)
Any info on what I could try or how I could find out about the "correct" routings is also appreciated.
The full output of the alsa-info script is here:
http://www.alsa-project.org/db/?f=405364959a8f52c85f045f35fa1f3bf4536b13bc
For completeness:
!!################################
!!ALSA Information Script v 0.4.52
!!################################
!!Script ran on: Thu Dec 25 20:10:14 CET 2008
!!Linux Distribution
!!------------------
Fedora release 10 (Cambridge) Fedora release 10 (Cambridge) Fedora release 10 (Cambridge) Fedora release 10 (Cambridge)
!!Kernel Information
!!------------------
Kernel release: 2.6.27.9-159.fc10.x86_64 Operating System: GNU/Linux Architecture: x86_64 Processor: x86_64 SMP Enabled: Yes
!!ALSA Version
!!------------
Driver version: 1.0.18a
Library version:
Utilities version: 1.0.18
!!Loaded ALSA modules
!!-------------------
snd_hda_intelsnd_hda_intel
!!Soundcards recognised by ALSA
!!-----------------------------
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xfc300000 irq 22
1 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xc7eec000 irq 17!!PCI Soundcards installed in the system
!!--------------------------------------
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 04) 01:00.1 Audio device: ATI Technologies Inc RV635 Audio device [Radeon HD 3600 Series]
!!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------
00:1b.0 0403: 8086:284b (rev 04)
Subsystem: 1025:0145
--
01:00.1 0403: 1002:aa20
Subsystem: 1002:aa20!!Modprobe options (Sound related)
!!--------------------------------
snd-hda-intel: model=auto
!!Loaded sound module options
!!--------------------------
!!Module: snd_hda_intelbdl_pos_adj : 1,32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Yenable_msi : 0
id : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
model : auto,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> position_fix : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0power_save : 0power_save_controller : Yprobe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1single_cmd : N
!!Module: snd_hda_intelbdl_pos_adj : 1,32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Yenable_msi : 0
id : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
model : auto,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> position_fix : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0power_save : 0power_save_controller : Yprobe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1single_cmd : N
!!HDA-Intel Codec information
!!---------------------------
--startcollapse--
Codec: Realtek ALC889
Address: 0
Vendor Id: 0x10ec0889
Subsystem Id: 0x10250145
Revision Id: 0x100004
No Modem Function Group found
Default PCM:
rates [0x5f0]: 32000 44100 48000 88200 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCMDefault Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=2, o=0, i=0, unsolicited=1, wake=1
IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0 IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0
Node 0x02 [Audio Output] wcaps 0x11: Stereo
Converter: stream=0, channel=0
PCM:
rates [0x5e0]: 44100 48000 88200 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x11: Stereo
Converter: stream=0, channel=0
PCM:
rates [0x5e0]: 44100 48000 88200 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x04 [Audio Output] wcaps 0x11: Stereo
Converter: stream=0, channel=0
PCM:
rates [0x5e0]: 44100 48000 88200 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x05 [Audio Output] wcaps 0x11: Stereo
Converter: stream=0, channel=0
PCM:
rates [0x5e0]: 44100 48000 88200 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCMNode 0x06 [Audio Output] wcaps 0x211: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:
rates [0x5f0]: 32000 44100 48000 88200 96000 192000
bits [0xe]: 16 20 24
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: [0x90 0x90]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x5e0]: 44100 48000 88200 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: [0x00 0x00]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x5e0]: 44100 48000 88200 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: [0x00 0x00]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x5e0]: 44100 48000 88200 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Connection: 1
0x22Node 0x0a [Audio Input] wcaps 0x100391: Stereo Digital
Converter: stream=0, channel=0
SDI-Select: 0
Digital:
Digital category: 0x0
PCM:
rates [0x570]: 32000 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Unsolicited: tag=00, enabled=0
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] [0x80 0x80] [0x80 0x80] [0x80 0x80] [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=0x3e, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x38 0x38]
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] [0x00 0x00]
Amp-Out caps: ofs=0x3e, 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: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x3e, 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: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x3e, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x00 0x00]
Connection: 2
0x05 0x0b
Node 0x10 [Audio Output] wcaps 0x211: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:
rates [0x5f0]: 32000 44100 48000 88200 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCMNode 0x11 [Pin Complex] wcaps 0x400300: Mono Digital
Pincap 0x00000010: OUT
Pin Default 0x18561130: [Jack] Digital Out at Int HDMI
Conn = Digital, Color = Black DefAssociation = 0x3, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Connection: 1
0x10
Node 0x12 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x00000020: IN
Pin Default 0x99a3094e: [Fixed] Mic at Int ATAPI
Conn = ATAPI, Color = Unknown
DefAssociation = 0x4, Sequence = 0xe
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x0001003c: IN OUT HP EAPD Detect
EAPD 0x2: EAPD
Pin Default 0x99130110: [Fixed] Speaker at Int ATAPI
Conn = ATAPI, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x15 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x0001003c: IN OUT HP EAPD Detect
EAPD 0x2: EAPD
Pin Default 0x0221101f: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Black
DefAssociation = 0x1, Sequence = 0xf
Pin-ctls: 0xc0: OUT HP
Unsolicited: tag=04, enabled=1
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x16 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00000034: IN OUT Detect
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Connection: 5
0x0c 0x0d 0x0e* 0x0f 0x26
Node 0x17 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00000034: IN OUT Detect
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
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]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000373c: IN OUT HP Detect
Vref caps: HIZ 50 GRD 80 100
Pin Default 0x02a19c40: [Jack] Mic at Ext Front
Conn = 1/8, Color = Pink
DefAssociation = 0x4, Sequence = 0x0
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=00, enabled=0
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]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000373c: IN OUT HP Detect
Vref caps: HIZ 50 GRD 80 100
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
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]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000373c: IN OUT HP Detect
Vref caps: HIZ 50 GRD 80 100
Pin Default 0x02813441: [Jack] Line In at Ext Front
Conn = 1/8, Color = Blue
DefAssociation = 0x4, Sequence = 0x1
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
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]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000373c: IN OUT HP Detect
Vref caps: HIZ 50 GRD 80 100
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 5
0x0c 0x0d 0x0e 0x0f 0x26*Node 0x1c [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x00000024: IN Detect
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
Pincap 0x00000020: IN
Pin Default 0x4016852d: [N/A] Speaker at Ext N/A
Conn = Digital, Color = Purple DefAssociation = 0x2, Sequence = 0xd
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
Pincap 0x00000010: OUT
Pin Default 0x02451120: [Jack] SPDIF Out at Ext Front
Conn = Optical, Color = Black DefAssociation = 0x2, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Connection: 1
0x06
Node 0x1f [Pin Complex] wcaps 0x400280: Mono Digital
Pincap 0x00000020: IN
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Processing caps: benign=0, ncoeff=28
Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: 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 Selector] wcaps 0x300101: Stereo
Connection: 12
0x18* 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b 0x12
Node 0x25 [Audio Output] wcaps 0x11: Stereo
Converter: stream=0, channel=0
PCM:
rates [0x5e0]: 44100 48000 88200 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] [0x00 0x00]
Amp-Out caps: ofs=0x3e, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x3e 0x3e]
Connection: 2
0x25 0x0b
Codec: LSI ID 1040
Address: 1
Vendor Id: 0x11c11040
Subsystem Id: 0x10250145
Revision Id: 0x100200
Modem Function Group: 0x1
Codec: ATI ATI R6xx HDMI
Address: 0
Vendor Id: 0x1002aa01
Subsystem Id: 0xaa0100
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
rates [0x40]: 48000
bits [0x6]: 16 20
formats [0x1]: PCMDefault Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0 Node 0x02 [Audio Output] wcaps 0x201: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
Node 0x03 [Pin Complex] wcaps 0x400381: Stereo Digital
Pincap 0x00000094: OUT Detect HDMI
Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
Conn = Digital, Color = Unknown DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 1
0x02
--endcollapse--
!!ALSA Device nodes
!!-----------------
crw-rw---- 1 root root 116, 10 2008-12-25 19:44 /dev/snd/controlC0 crw-rw---- 1 root root 116, 13 2008-12-25 19:44 /dev/snd/controlC1 crw-rw---- 1 root root 116, 9 2008-12-25 19:44 /dev/snd/hwC0D0 crw-rw---- 1 root root 116, 8 2008-12-25 19:44 /dev/snd/hwC0D1 crw-rw---- 1 root root 116, 12 2008-12-25 19:44 /dev/snd/hwC1D0 crw-rw---- 1 root root 116, 7 2008-12-25 19:44 /dev/snd/pcmC0D0c crw-rw---- 1 root root 116, 6 2008-12-25 19:47 /dev/snd/pcmC0D0p crw-rw---- 1 root root 116, 5 2008-12-25 19:44 /dev/snd/pcmC0D1p crw-rw---- 1 root root 116, 4 2008-12-25 19:44 /dev/snd/pcmC0D2c crw-rw---- 1 root root 116, 11 2008-12-25 19:44 /dev/snd/pcmC1D3p crw-rw---- 1 root root 116, 3 2008-12-25 19:44 /dev/snd/seq crw-rw---- 1 root root 116, 2 2008-12-25 19:44 /dev/snd/timer
!!Aplay/Arecord output
!!------------
APLAY
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC889 Digital [ALC889 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
ARECORD
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: ALC889 Analog [ALC889 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
!!Amixer output
!!-------------
!!-------Mixer controls for card 0 [Intel]
Card hw:0 'Intel'/'HDA Intel at 0xfc300000 irq 22'
Mixer name : 'Realtek ALC889' Components : 'HDA:10ec0889,10250145,00100004 HDA:11c11040,10250145,00100200' Controls : 23 Simple ctrls : 13
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 0 [0%] [-62.00dB] [on]
Front Right: Playback 0 [0%] [-62.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 64
Mono:
Front Left: Playback 56 [88%] [-6.00dB] [on] Front Right: Playback 56 [88%] [-6.00dB] [on]
Simple mixer control 'Front Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Front Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%]
Front Right: 0 [0%]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 0 [0%] [-16.00dB] [on]
Front Right: Capture 0 [0%] [-16.00dB] [on]
Simple mixer control 'Capture',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 0 [0%] [-16.00dB] [on]
Front Right: Capture 0 [0%] [-16.00dB] [on]
Simple mixer control 'Input Source',0
Capabilities: cenum
Items: 'Front Mic' 'Line'
Item0: 'Front Mic'
Simple mixer control 'Input Source',1
Capabilities: cenum
Items: 'Front Mic' 'Line'
Item0: 'Front Mic'
!!-------Mixer controls for card 1 [HDMI]
Card hw:1 'HDMI'/'HDA ATI HDMI at 0xc7eec000 irq 17'
Mixer name : 'ATI ATI R6xx HDMI' Components : 'HDA:1002aa01,00aa0100,00100000' Controls : 4 Simple ctrls : 1
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
!!Alsactl output
!!-------------
--startcollapse--
state.Intel {
control.1 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 64'
comment.dbmin -6200
comment.dbmax 200
iface MIXER
name 'Front Playback Volume'
value.0 56
value.1 56
}
control.2 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Front Playback Switch'
value.0 true
value.1 true
}
control.3 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 64'
comment.dbmin -6200
comment.dbmax 200
iface MIXER
name 'Headphone Playback Volume'
value.0 0
value.1 0
}
control.4 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Headphone Playback Switch'
value.0 true
value.1 true
}
control.5 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -3450
comment.dbmax 1200
iface MIXER
name 'Front Mic Playback Volume'
value.0 0
value.1 0
}
control.6 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Front Mic Playback Switch'
value.0 false
value.1 false
}
control.7 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
comment.dbmin -3450
comment.dbmax 1200
iface MIXER
name 'Line Playback Volume'
value.0 0
value.1 0
}
control.8 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Line Playback Switch'
value.0 false
value.1 false
}
control.9 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 3'
comment.dbmin 0
comment.dbmax 3000
iface MIXER
name 'Front Mic Boost'
value.0 0
value.1 0
}
control.10 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Capture Switch'
value.0 true
value.1 true
}
control.11 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Capture Switch'
index 1
value.0 true
value.1 true
}
control.12 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 46'
comment.dbmin -1600
comment.dbmax 3000
iface MIXER
name 'Capture Volume'
value.0 0
value.1 0
}
control.13 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 46'
comment.dbmin -1600
comment.dbmax 3000
iface MIXER
name 'Capture Volume'
index 1
value.0 0
value.1 0
}
control.14 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 'Front Mic'
comment.item.1 Line
iface MIXER
name 'Input Source'
value 'Front Mic'
}
control.15 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 'Front Mic'
comment.item.1 Line
iface MIXER
name 'Input Source'
index 1
value 'Front Mic'
}
control.16 {
comment.access read
comment.type IEC958
comment.count 1
iface MIXER
name 'IEC958 Playback Con Mask'
value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.17 {
comment.access read
comment.type IEC958
comment.count 1
iface MIXER
name 'IEC958 Playback Pro Mask'
value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.18 {
comment.access 'read write'
comment.type IEC958
comment.count 1
iface MIXER
name 'IEC958 Playback Default'
value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.19 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'IEC958 Playback Switch'
value false
}
control.20 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'IEC958 Default PCM Playback Switch'
value true
}
control.21 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 64'
comment.dbmin -6400
comment.dbmax 0
iface MIXER
name 'Master Playback Volume'
value 64
}
control.22 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Master Playback Switch'
value true
}
control.23 {
comment.access 'read write user'
comment.type INTEGER
comment.count 2
comment.range '0 - 255'
comment.tlv '0000000100000008ffffec1400000014'
comment.dbmin -5100
comment.dbmax 0
iface MIXER
name 'PCM Playback Volume'
value.0 255
value.1 255
}
}
state.HDMI {
control.1 {
comment.access read
comment.type IEC958
comment.count 1
iface MIXER
name 'IEC958 Playback Con Mask'
value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.2 {
comment.access read
comment.type IEC958
comment.count 1
iface MIXER
name 'IEC958 Playback Pro Mask'
value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.3 {
comment.access 'read write'
comment.type IEC958
comment.count 1
iface MIXER
name 'IEC958 Playback Default'
value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
}
control.4 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'IEC958 Playback Switch'
value false
}
}--endcollapse--
!!All Loaded Modules
!!------------------
Module
fuse
bridge
stp
bnep
sco
l2cap
bluetooth
sunrpc
ipv6cpufreq_ondemandacpi_cpufreqfreq_tabledm_multipath
uinputsnd_hda_intelsnd_seq_dummysnd_seq_osssnd_seq_midi_eventsnd_seqsnd_seq_devicesnd_pcm_osssnd_mixer_oss
arc4
ecbsnd_pcm
iwlagn
iwlcore
uvcvideocompat_ioctl32
rfkillsnd_timersnd_page_allocsnd_hwdep
atl1e
snd
video
mac80211
videodevserio_raw
joydev
soundcore
pcspkr
outputv4l1_compat
cfg80211acer_wmii2c_i801iTCO_wdtiTCO_vendor_support
wmii2c_core
battery
acsha256_generic
cbcaes_x86_64aes_genericdm_cryptcrypto_blkcipher
Kind regards,
Jin
Quoted 110 lines · Sergey 'Jin' Bostandzhyan
While waiting for an answer I continued my attempts to get this to work, unfortunately without success.
I tried all models from
patch_realtek.c(alsa version 1.0.18a), umuting the channels with alsa mixer and running speaker test on each model selection - but no luck with surround there.I also tried
hda_analyzerfrom
http://git.alsa-project.org/?p=alsa.git;a=tree;f=hda-analyzer;hb=HEAD
run.pydownloadedhda_analyzer.pyandhda_codec.pywhich bailed out with an error:
Downloaded all files, executinghda_analyzer.py
Traceback (most recent call last):
File "/dev/shm/hda-analyzer/hda_analyzer.py", line 906, in <module>main() File "/dev/shm/hda-analyzer/hda_analyzer.py", line 893, in main if read_nodes() == 0: File "/dev/shm/hda-analyzer/hda_analyzer.py", line 46, in read_nodes read_nodes2(c.card, i) File "/dev/shm/hda-analyzer/hda_analyzer.py", line 36, in read_nodes2 c.analyze() File "/dev/shm/hda-analyzer/hda_codec.py", line 821, in analyze pcm = self.param_read(self.afg, PARAMS['PCM']) File "/dev/shm/hda-analyzer/hda_codec.py", line 745, in param_read return self.rw(nid, VERBS['PARAMETERS'], param) File "/dev/shm/hda-analyzer/hda_codec.py", line 730, in rw verb = (nid << 24) | (verb << 8) | paramTypeError: unsupported operand type(s) for <<: 'NoneType' and 'int'
I am not sure if this is OK, but I patched
hda_codec.pyand was able to proceed.tmp/hda-analyzer/hda_codec.py 2009-01-05 21:13:13.000000000 +0100 renamed from hda_codec.py 2009-01-05 21:11:33.672001401 +0100 +2
-0@@ -727,6 +727,8 @@ def rw(self, nid, verb, param): """do elementary read/write operation""" + if not nid: + nid = 0 verb = (nid << 24) | (verb << 8) | param res = ioctl(self.fd, IOCTL_VERB_WRITE, struct.pack('II', verb, 0)) return struct.unpack('II', res)[1]I spent quite some time with
hda_analyzerbut was not able to produce any useful results.So at this point I am really stuck. Can anyone suggest what I could try next? How to proceed?
Kind regards,
JinQuoted 41 lines · Sergey 'Jin' Bostandzhyan
Hi,
there's been a thread about a similar issue around 2008-04, it ended with a working front left/right setup, which is of course better than no sound, but it would be really nice to be able to use all available speakers.
The notebook has 5.1 surround, but all speakers except front left and front right stay silent.
I'm running Fedora 10, 2.6.27.9-159.fc10.x86_64,
# cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.18a.# cat /proc/asound/cards 0 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0xfc300000 irq 22 1 [HDMI ]: HDA-Intel - HDA ATI HDMI HDA ATI HDMI at 0xc7eec000 irq 17When I select model "auto", then I get a working front left and front right speaker. When I select model "acer-aspire", everything is mute and I have to use the hda-verb utility to get some sound out of the front speakers, so right now I am using the "auto" option.
I see a segfault in alsactl when I look at dmesg, not sure if this is related to the problem:
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
HDA Intel 0000:00:1b.0: setting latency timer to 64
ALSAsound/pci/hda/hda_codec.c:2587:hda_codec: model 'auto' is selected ALSAsound/pci/hda/hda_codec.c:3303: autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0)ALSA sound/pci/hda/hda_codec.c:3307: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) ALSA sound/pci/hda/hda_codec.c:3311: hp_outs=1 (0x15/0x0/0x0/0x0/0x0) ALSA sound/pci/hda/hda_codec.c:3312: mono: mono_out=0x0 ALSA sound/pci/hda/hda_codec.c:3320: inputs: mic=0x12, fmic=0x18, line=0x1a, fline=0x0, cd=0x0, aux=0x0HDA Intel 0000:01:00.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
HDA Intel 0000:01:00.1: setting latency timer to 64
alsactl[1631]: segfault at 0 ip00000000004106e7sp00007fffb7682fa0error 4 in alsactl[400000+14000] alsactl[1624]: segfault at 0 ip00000000004106e7sp00007fff4ba9e3c0error 4 in alsactl[400000+14000]Quoted 9 lines
The full output of the alsa-info script is here:
http://www.alsa-project.org/db/?f=405364959a8f52c85f045f35fa1f3bf4536b13bcI have a working setup to compile the alsa-driver, so I'm ready to test whatever is needed :) Any ideas?
Kind regards,
Jin_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
I was able to get audio to work on an Aspire 8930G using the attached patch, including routing all speakers. However, I could never get any DACs other than the first two to work. I've been holding off on making a real patch to add full support properly until I fix this issue.
Can you test the patch? For me, only Front and Rear work, not Center/Sub.
I'm currently using a nasty hack which routes DAC 0 to both Front and Rear and DAC 1 to CLFE and some asound.conf magic to make it sound decent, but it's 3.1 sound, not 5.1.
I managed to get hda-analyzer to work and confirmed that the audio does get to the DACs (if I configure the Rear DAC to the CLFE stream dynamically it does work), but "something" is making all but the first to DACs not work. It could also be the mixers attached to the DACs - the actual audio outputs are okay because I can route them to the working DACs and get output. I've tried tweaking everything and ensured that everything was turned up and unmuted, but I've run out of ideas.
Recently I've also tested the three audio jacks in 5.1 output mode. Same problem - the CLFE *output* works but I get no sound unless I hack the routing to connect it to the other DACs.
I'm starting to suspect that there's some proprietary Realtek init missing - maybe some tables or something related to the "encryption module".
Here's a little render that I made of the codec routing:
http://marcansoft.com/transf/codec.png
Signature · 2 lines
Hector Martin ([email protected]) Public Key: http://www.marcansoft.com/marcan.asc
Quoted 1 line
From
8aaa46dfda9b7c0ab19021532750adb03ded877eMon Sep 17 00:00:00 2001
From: Hector Martin <[email protected]>
Date: Wed, 3 Dec 2008 01:50:49 +0100
Subject: [PATCH - snd-intel-hda 1/1] Add partial 8930G support
pci/hda/patch_realtek.c +18 -1
@@ -1302,7 +1302,7 @@ static struct hda_verb alc888_acer_aspire_4930g_verbs[] = { {0x22, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0xb)},/* Enable unsolicited event for HP jack */ {0x15, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT | AC_USRSP_EN}, -/* Connect Internal HP to front */ +/* Connect Front speakers to front */ {0x14, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, {0x14, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, {0x14, AC_VERB_SET_CONNECT_SEL, 0x00},
@@ -1310,6 +1310,16 @@ static struct hda_verb alc888_acer_aspire_4930g_verbs[] = { {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}, +/* Connect Rear speakers to rear */ + {0x1b, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, + {0x1b, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, + {0x1b, AC_VERB_SET_CONNECT_SEL, 0x01}, +/* Connect CLFE speakers to CLFE */ + {0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, + {0x16, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, + {0x16, AC_VERB_SET_CONNECT_SEL, 0x02}, +/* Set EAPD to enable speakers */ + {0x15, AC_VERB_SET_EAPD_BTLENABLE, 0x02}, { } };
@@ -1365,8 +1375,15 @@ static void alc888_acer_aspire_4930g_automute(struct hda_codec *codec) present =snd_hda_codec_read (codec,0x15 ,0 ,AC_VERB_GET_PIN_SENSE ,0 ) &0x80000000 ; bits = present ?HDA_AMP_MUTE :0 ; +/* Front */ snd_hda_codec_amp_stereo (codec,0x14 ,HDA_OUTPUT ,0 ,HDA_AMP_MUTE , bits); +/* CLFE */ +snd_hda_codec_amp_stereo (codec,0x16 ,HDA_OUTPUT ,0 , +HDA_AMP_MUTE , bits); +/* Rear */ +snd_hda_codec_amp_stereo (codec,0x1b ,HDA_OUTPUT ,0 , +HDA_AMP_MUTE , bits); } static void alc888_acer_aspire_4930g_unsol_event(struct hda_codec *codec,
Signature · 1 line
1.5.6.4
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Thanks a lot! Nice to see some movement on this.
Quoted 6 lines · Hector Martin
I was able to get audio to work on an Aspire 8930G using the attached patch, including routing all speakers. However, I could never get any DACs other than the first two to work. I've been holding off on making a real patch to add full support properly until I fix this issue.
Can you test the patch? For me, only Front and Rear work, not Center/Sub.
Hmm, I applied the patch to the latest git, selected model acer-aspire-4930g, upped volume in the mixers and ran:
speaker-test -c6 -Dplug:surround51 -t wav -l1
Got only front left / front right output. What am I missing?
Quoted 11 lines
I'm currently using a nasty hack which routes DAC 0 to both Front and Rear and DAC 1 to CLFE and some asound.conf magic to make it sound decent, but it's 3.1 sound, not 5.1.
I managed to get hda-analyzer to work and confirmed that the audio does get to the DACs (if I configure the Rear DAC to the CLFE stream dynamically it does work), but "something" is making all but the first to DACs not work. It could also be the mixers attached to the DACs - the actual audio outputs are okay because I can route them to the working DACs and get output. I've tried tweaking everything and ensured that everything was turned up and unmuted, but I've run out of ideas.
Am I supposed to adjust anything with the analyzer before testing your patch?
Kind regards,
Jin
Quoted 73 lines
Recently I've also tested the three audio jacks in 5.1 output mode. Same problem - the CLFE *output* works but I get no sound unless I hack the routing to connect it to the other DACs.
I'm starting to suspect that there's some proprietary Realtek init missing - maybe some tables or something related to the "encryption module".
Here's a little render that I made of the codec routing:
http://marcansoft.com/transf/codec.pngSignature · 2 lines
Hector Martin ([email protected]) Public Key: http://www.marcansoft.com/marcan.ascQuoted 1 line
From
8aaa46dfda9b7c0ab19021532750adb03ded877eMon Sep 17 00:00:00 2001From: Hector Martin <[email protected]>
Date: Wed, 3 Dec 2008 01:50:49 +0100
Subject: [PATCH - snd-intel-hda 1/1] Add partial 8930G supportSigned-off-by Hector Martin <[email protected]>pci/hda/patch_realtek.c +18
-1@@ -1302,7 +1302,7 @@ static struct hda_verb alc888_acer_aspire_4930g_verbs[] = { {0x22, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0xb)},/* Enable unsolicited event for HP jack */ {0x15, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT | AC_USRSP_EN}, -/* Connect Internal HP to front */ +/* Connect Front speakers to front */ {0x14, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, {0x14, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, {0x14, AC_VERB_SET_CONNECT_SEL, 0x00},@@ -1310,6 +1310,16 @@ static struct hda_verb alc888_acer_aspire_4930g_verbs[] = { {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}, +/* Connect Rear speakers to rear */ + {0x1b, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, + {0x1b, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, + {0x1b, AC_VERB_SET_CONNECT_SEL, 0x01}, +/* Connect CLFE speakers to CLFE */ + {0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, + {0x16, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, + {0x16, AC_VERB_SET_CONNECT_SEL, 0x02}, +/* Set EAPD to enable speakers */ + {0x15, AC_VERB_SET_EAPD_BTLENABLE, 0x02}, { } };@@ -1365,8 +1375,15 @@ static void alc888_acer_aspire_4930g_automute(struct hda_codec *codec) present =snd_hda_codec_read (codec,0x15 ,0 ,AC_VERB_GET_PIN_SENSE ,0 ) &0x80000000 ; bits = present ?HDA_AMP_MUTE :0 ; +/* Front */ snd_hda_codec_amp_stereo (codec,0x14 ,HDA_OUTPUT ,0 ,HDA_AMP_MUTE , bits); +/* CLFE */ +snd_hda_codec_amp_stereo (codec,0x16 ,HDA_OUTPUT ,0 , +HDA_AMP_MUTE , bits); +/* Rear */ +snd_hda_codec_amp_stereo (codec,0x1b ,HDA_OUTPUT ,0 , +HDA_AMP_MUTE , bits); } static void alc888_acer_aspire_4930g_unsol_event(struct hda_codec *codec,Signature · 1 line
1.5.6.4
Quoted 6 lines · Sergey 'Jin' Bostandzhyan
Hmm, I applied the patch to the latest git, selected model acer-aspire-4930g, upped volume in the mixers and ran:
speaker-test -c6 -Dplug:surround51 -t wav -l1Got only front left / front right output. What am I missing?
Try speaker-test -Dhw:0 -c6 -twav
Make sure that 6ch mode is selected in the mixer (this should not be necessary as it relates to the jacks, but that's one of the things I'd have to fix for a "real" patch), and that the relevant volume levels are turned up.
If it doesn't work, please attach your /proc/asound/card0/codec#0 file
Quoted 1 line
Am I supposed to adjust anything with the analyzer before testing your patch?
Not in theory, but you can try some things.
Here's what the relevant NIDs correspond to:0x02 - (normally) Front DAC0x03 - (normally) Rear DAC0x04 - (normally) CLFE DA
0x0c - (normally) Front mixer0x0d - (normally) Rear mixer0x0e - (normally) CLFE mixer
0x14 - Front speakers pin0x15 - Headphones pin (also EAPD for speaker amp)0x16 - CLFE speakers pin0x1b - Rear speakers pin
You can try selecting 0x16 and 0x1b and setting the connection to 0x0c - this should replicate the front sound through the rear speakers and the center/lfe speakers, so you can confirm that the outputs themselves work and are mapped as they are on my laptop. Make sure that they're set to OUT mode and not muted or anything too. If this doesn't work then something weird is going on.
Signature · 2 lines
Hector Martin ([email protected]) Public Key: http://www.marcansoft.com/marcan.asc
Hi,
Quoted 9 lines · Hector Martin
Quoted 6 lines · Sergey 'Jin' Bostandzhyan
Hmm, I applied the patch to the latest git, selected model acer-aspire-4930g, upped volume in the mixers and ran:
speaker-test -c6 -Dplug:surround51 -t wav -l1Got only front left / front right output. What am I missing?
Try speaker-test -Dhw:0 -c6 -twav
indeed, my mistake: speaker-test -c6 -Dhw:0,0 -t wav does output on front l/r and rear l/r.
Quoted 16 lines
Make sure that 6ch mode is selected in the mixer (this should not be necessary as it relates to the jacks, but that's one of the things I'd have to fix for a "real" patch), and that the relevant volume levels are turned up.
If it doesn't work, please attach your /proc/asound/card0/codec#0 file
Quoted 1 line
Am I supposed to adjust anything with the analyzer before testing your patch?
Not in theory, but you can try some things.
Here's what the relevant NIDs correspond to:
0x02- (normally) Front DAC0x03- (normally) Rear DAC0x04- (normally) CLFE DA
Quoted 8 lines
0x0c- (normally) Front mixer0x0d- (normally) Rear mixer0x0e- (normally) CLFE mixer
0x14- Front speakers pin0x15- Headphones pin (also EAPD for speaker amp)0x16- CLFE speakers pin0x1b- Rear speakers pin
A friend of mine helped me out with the analyzer yesterday, here's some additional info:
0x17 -> black jack0x18 -> pink jack0x1a -> blue jack
He also confirmed that this one DAC that you mentioned does not do what it is supposed to. His suspicion was that it may not be initialized correctly or something like that.
So overall - some progress and your patch worked for me in the end.
I'll gladly test whatever you come up with regarding the remaning problem with the DAC.
Kind regards,
Jin