Summary: | No analog speaker output with recent git versions of pulseaudio on ALC898 codec | ||
---|---|---|---|
Product: | PulseAudio | Reporter: | Gun Onen <brookline653> |
Component: | alsa | Assignee: | pulseaudio-bugs |
Status: | RESOLVED MOVED | QA Contact: | pulseaudio-bugs |
Severity: | major | ||
Priority: | medium | CC: | jan.steffens, lennart |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
output of alsa_utils_alsa-info.sh
output of pactl list output of pactl stat pulse verbose log pulse-verbose.log with headphone and line out jacks plugged and unplugged pactl list output pactl stat output pulseaudio -vvvv output |
Description
Gun Onen
2013-10-13 06:01:08 UTC
post the out of alsa-info.sh pactl list pactl stat :pulseaudio verbose log the patch seem to fix the emulated hda codec which has hijack detection inside qemu https://bugassistant.libreoffice.org/show_bug.cgi?id=69676 Created attachment 87570 [details]
output of alsa_utils_alsa-info.sh
Created attachment 87571 [details]
output of pactl list
Created attachment 87572 [details]
output of pactl stat
Created attachment 87573 [details]
pulse verbose log
did you connect your speaker at orange Jack ? try speaker-test -c 2 -t wav -D hw:0,0 this is a specific feature of snd-hda-Intel driver which can up mix stereo to all jacks at rear panels of desktop control.39 { iface CARD name 'Front Mic Jack' value false comment { access read type BOOLEAN count 1 } } control.40 { iface CARD name 'Rear Mic Jack' value false comment { access read type BOOLEAN count 1 } } control.41 { iface CARD name 'Line Jack' value false comment { access read type BOOLEAN count 1 } } control.42 { iface CARD name 'Line Out Front Jack' value false comment { access read type BOOLEAN count 1 } } control.43 { iface CARD name 'Line Out Surround Jack' value false comment { access read type BOOLEAN count 1 } } control.44 { iface CARD name 'Line Out CLFE Jack' value true comment { access read type BOOLEAN count 1 } } control.45 { iface CARD name 'Line Out Side Jack' value false comment { access read type BOOLEAN count 1 } } control.46 { iface CARD name 'Front Headphone Jack' value false comment { access read type BOOLEAN count 1 } } 0.153| 0.000) D: [pulseaudio] module-alsa-card.c: Found 8 jacks. ( 0.153| 0.000) I: [pulseaudio] alsa-util.c: Successfully attached to mixer 'hw:0' ( 0.153| 0.000) D: [pulseaudio] module-alsa-card.c: Jack 'Line Out Front Jack' is now unplugged ( 0.153| 0.000) D: [pulseaudio] device-port.c: Setting port analog-output-lineout to status no ( 0.153| 0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event. ( 0.153| 0.000) D: [pulseaudio] module-switch-on-port-available.c: finding port analog-output-lineout ( 0.153| 0.000) D: [pulseaudio] module-alsa-card.c: Jack 'Line Out CLFE Jack' is now plugged in ( 0.153| 0.000) D: [pulseaudio] module-alsa-card.c: Jack 'Line Out Surround Jack' is now unplugged ( 0.153| 0.000) D: [pulseaudio] module-alsa-card.c: Jack 'Line Out Side Jack' is now unplugged ( 0.153| 0.000) D: [pulseaudio] module-alsa-card.c: Jack 'Front Headphone Jack' is now unplugged ( 0.153| 0.000) D: [pulseaudio] device-port.c: Setting port analog-output-headphones to status no if the green jack is not working https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/996245 you can use hda-jack-retask to change change pin default of node 0x14 green jack as [N/A] 0x41014410 1) change the sequence number of grey jack change to 0 or 2) change the blue/pink jack to green jack Node 0x14 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out Control: name="Front Playback Switch", index=0, device=0 ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Control: name="Line Out Front Jack", index=0, device=0 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 0x01014410: [Jack] Line Out at Ext Rear Conn = 1/8, Color = Green DefAssociation = 0x1, Sequence = 0x0 Pin-ctls: 0x40: OUT Unsolicited: tag=05, enabled=1 Power states: D0 D1 D2 D3 EPSS Power: setting=D0, actual=D0 Connection: 5 0x0c* 0x0d 0x0e 0x0f 0x26 Node 0x17 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out Control: name="Side Playback Switch", index=0, device=0 ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Control: name="Line Out Side Jack", index=0, device=0 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80] Pincap 0x0000003c: IN OUT HP Detect Pin Default 0x01012414: [Jack] Line Out at Ext Rear Conn = 1/8, Color = Grey DefAssociation = 0x1, Sequence = 0x4 Pin-ctls: 0x40: OUT Unsolicited: tag=08, enabled=1 Power states: D0 D1 D2 D3 EPSS Power: setting=D0, actual=D0 Connection: 5 0x0c 0x0d 0x0e 0x0f* 0x26 Raymond, many many thanks for the attention you've paid to my analog speaker problem. In your first comment you referred to bug 69676 and since it looked like that patch went into mainline, I tried rebuilding the current git version using the Arch PKGBUILD. That brought me analog speaker sound back although the mixer only shows headphones and line out as choices. Insertion of analog headphones to front panel jack is detectd and speakers are cut out automatically, but no sound ever comes from headphones. However things are a bitunstable and plugging and unplugging headphones more than once or twice causes all analog output to disappear and only IEC958 output is visible in the mixer. Only way to clear this is to kill pulseaudio and clear user's ~/.config/pulse directory before restarting. Re your second comment, speaker-test works fine (after killing pulseaudio, otherwise it shows busy). Actually the orange jack (top left, called center/subwoofer in mobo manual) is the jack I normally use. After building mainline pulseaudio I have analog sound out of that, the black below it (labelled rear speaker) and the gray below that (labelled side speaker). All three now work. Re your third comment, the green jack (middle of the right hand row as viewed from rear of mobo, called front speakers/line out in the manual) has NEVER worked on this board, on Linux or Windows. That's why I was in the habit of using the orange (top left, center/subwoofer) jack. I'll look into your linked launchpad bug about the green jack when I get a chance. Inserting into the green jack is detected and shown in the mixer, but no sound ever comes out. So, since I do have analog speaker sound back I guess it's ok to close this bug although I'm willing to test anything else you want me to. I'll report to Jan Steffens the Arch pulseaudio maintainer as well. Thanks again for your help! :) your log did not show which port was switched to when both analog-lineout and headphone not available analog-output-lineout: Line Out (priority: 9900, latency offset: 0 usec, not available) Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo, output:analog-surround-40, output:analog-surround-40+input:analog-stereo, output:analog-surround-41, output:analog-surround-41+input:analog-stereo, output:analog-surround-50, output:analog-surround-50+input:analog-stereo, output:analog-surround-51, output:analog-surround-51+input:analog-stereo, output:analog-surround-71, output:analog-surround-71+input:analog-stereo analog-output-headphones: Headphones (priority: 9000, latency offset: 0 usec, not available) Properties: device.icon_name = "audio-headphones" Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo iec958-stereo-output: Digital Output (S/PDIF) (priority: 0, latency offset: 0 usec) Part of profile(s): output:iec958-stereo, output:iec958-stereo+input:analog-stereo When neither line-out nor headphones are plugged in, analog sound does work from the orange, black or gray jacks. But, as I said above, repeated plugging and unplugging causes all non-digital output to disappear. All I see in the mixer is IEC958 digital and all analog sound is gone. I can only clear the condition by killing pulseautio and deleting ~/.config/pulse before restarting. I'll try again to do another verbose log, though, this time leaving it running while I plug and unplug from the line-out and headphone jacks, and post it here. Created attachment 87707 [details]
pulse-verbose.log with headphone and line out jacks plugged and unplugged
Detection of insertion into line out jack (green) seems to be solid but insertion into headphone jack was detected only after a lag. Repeated headphone jack insertion and removal resulted in headphone jack plugged-in permanently in the mixer. So detection of the headphone jack doesn't look very stable.
Also, I believe my original report of no analog output was wrong, I should have cleared user data with pulseaudio not running and then selected line out (instead of the headphone default with a clean config) to get sound. All git builds I've tried including Arch's snapshots actuall work. Analog output is gone now, replaced by line out, so I guess that is working as intended. Sorry for the mixup.
the problem is most desktop users keep the line out plugged, pulseaudio assign higher priority to line out when headphone is plugged Created attachment 91799 [details]
pactl list output
pactl list
Created attachment 91800 [details]
pactl stat output
Created attachment 91801 [details]
pulseaudio -vvvv output
I have a similar problem with Fedora 20: * kernel 3.12.5-302.fc20.x86_64 * pulseaudio-4.0-9.gitf81e3.fc20.x86_64 The output uploaded by alsa-info.sh is here: * http://www.alsa-project.org/db/?f=593de3eb2cefd047b667bac3ec2971e4f4f621ec My analog output is not listed, i have the pink jack plugged in, but it seems it is not detected. Also tried other jacks with no luck. My HDMI digital output is detected (but i dont have any HDMI device to plug in) Hope somebody can fix it soon! (In reply to comment #16) > I have a similar problem with Fedora 20: > > * kernel 3.12.5-302.fc20.x86_64 > * pulseaudio-4.0-9.gitf81e3.fc20.x86_64 > > The output uploaded by alsa-info.sh is here: > > * http://www.alsa-project.org/db/?f=593de3eb2cefd047b667bac3ec2971e4f4f621ec > > My analog output is not listed, i have the pink jack plugged in, but it > seems it is not detected. Also tried other jacks with no luck. > > My HDMI digital output is detected (but i dont have any HDMI device to plug > in) > > Hope somebody can fix it soon! you should filed bug at kernel.org if you lost the digital device 1 for your spdif https://bugzilla.kernel.org/enter_bug.cgi?product=Drivers card 1: Generic_1 [HD-Audio Generic], device 0: VT1708S Analog [VT1708S Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Generic_1 [HD-Audio Generic], device 3: VT1708S Digital [VT1708S Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 Node 0x12 [Audio Output] wcaps 0x611: Stereo Digital Control: name="IEC958 Playback Con Mask", index=0, device=0 Control: name="IEC958 Playback Pro Mask", index=0, device=0 Control: name="IEC958 Playback Default", index=0, device=0 Control: name="IEC958 Playback Switch", index=0, device=0 Control: name="IEC958 Default PCM Playback Switch", index=0, device=0 Device: name="VT1708S Digital", type="HDMI", device=3 Converter: stream=8, channel=0 Digital: Digital category: 0x0 IEC Coding Type: 0x0 PCM: rates [0x5e0]: 44100 48000 88200 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power states: D0 D1 D2 D3 Power: setting=D0, actual=D0 Node 0x15 [Audio Output] wcaps 0x611: Stereo Digital Converter: stream=8, channel=0 Digital: Digital category: 0x0 IEC Coding Type: 0x0 PCM: rates [0x5e0]: 44100 48000 88200 96000 192000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power states: D0 D1 D2 D3 Power: setting=D0, actual=D0 Node 0x20 [Pin Complex] wcaps 0x400701: Stereo Digital Control: name="HDMI Phantom Jack", index=0, device=0 Pincap 0x00000010: OUT Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI Conn = Digital, Color = Unknown DefAssociation = 0xf, Sequence = 0x0 Pin-ctls: 0x40: OUT Power states: D0 D1 D2 D3 Power: setting=D0, actual=D0 Connection: 1 0x12 Node 0x21 [Pin Complex] wcaps 0x400701: Stereo Digital Control: name="SPDIF Phantom Jack", index=0, device=0 Pincap 0x00000010: OUT Pin Default 0x074521f0: [Jack] SPDIF Out at Ext Rear Panel Conn = Optical, Color = Grey DefAssociation = 0xf, Sequence = 0x0 Misc = NO_PRESENCE Pin-ctls: 0x40: OUT Power states: D0 D1 D2 D3 Power: setting=D0, actual=D0 Connection: 1 0x15 (In reply to comment #16) > > The output uploaded by alsa-info.sh is here: > > * http://www.alsa-project.org/db/?f=593de3eb2cefd047b667bac3ec2971e4f4f621ec > > My analog output is not listed, i have the pink jack plugged in, but it > seems it is not detected. Also tried other jacks with no luck. > > My HDMI digital output is detected (but i dont have any HDMI device to plug > in) > > Hope somebody can fix it soon! Did you plug your speaker into the orange jack ? control.36 { iface CARD name 'Line Out CLFE Jack' value true comment { access read type BOOLEAN count 1 } } -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/434. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.