Bug 43238 - the output is muted after set the connector to "Analog Headphones"
Summary: the output is muted after set the connector to "Analog Headphones"
Status: RESOLVED FIXED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: alsa (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-25 02:02 UTC by wayneh
Modified: 2012-01-03 21:36 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
alsa info log (30.47 KB, text/plain)
2011-11-25 02:02 UTC, wayneh
Details

Description wayneh 2011-11-25 02:02:38 UTC
Created attachment 53843 [details]
alsa info log

1. boot to X-windows.
2. set the output connector to "Analog Headphones" in sound preference.
   It mute output, there is no sound.
Attached is the alsa log when this issue occurs.
Comment 1 wayneh 2011-11-29 19:09:59 UTC
There is a same issue as mine, it is Ticket #677 (closed defect: elsewhere)
ALC889a 'Analog headphone' mute both line out and headphone
http://www.pulseaudio.org/ticket/677
Comment 2 Colin Guthrie 2011-11-30 08:44:01 UTC
I presume that when (In reply to comment #0)
> Created attachment 53843 [details]
> alsa info log
> 
> 1. boot to X-windows.
> 2. set the output connector to "Analog Headphones" in sound preference.
>    It mute output, there is no sound.

I know this might sound like a silly question, but I presume you *do* actually have headphones plugged in?

Assuming that you do have headphones plugged in, from your amixer output it looks like "Master" and "Headphones" elements are setup correctly:

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 79 [91%] [-6.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pswitch penum
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]



However the "Front" element is turned off (as is intended):

Simple mixer control 'Front',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB] [off]
  Front Right: Playback 0 [0%] [-65.25dB] [off]


I wonder if the underlying hardware is incorrectly plumbed in such a way as this element affects Headphones?



A simple test is to call:

amixer -c0 set Front 50% unmute

(verify this has worked via "amixer -c0 get Front" and compare to the above quoted text)



This should turn on the Front element. Do you suddenly hear sound through your headphones?

If so, then I'd suggest that this is a problem with the setup of the HDA driver for this particular hw/codec.
Comment 3 wayneh 2011-12-02 01:01:34 UTC
Hi Sir,
Yes, I can hear sound play through Headphone after I set the front in alsamixer unmute with the command: amixer -c0 set Front 50% unmute

You mean I should submit it to alsa to check it further. Is it? Thanks.
Comment 4 Colin Guthrie 2011-12-02 01:28:32 UTC
I can post to alsa-devel mailing list on your behalf if you like.

Please attach or post the official link to the file generated by the following script: http://www.alsa-project.org/alsa-info.sh

Many thanks.
Comment 5 Colin Guthrie 2011-12-02 06:47:00 UTC
(In reply to comment #4)
> Please attach or post the official link to the file generated by the following
> script: http://www.alsa-project.org/alsa-info.sh

Gah, sorry, I'm on autopilot! You've already supplied that. D'oh!
Comment 6 wayneh 2011-12-12 19:28:20 UTC
Hi Colin,
Would you please let me know if you need other info to check this issue?
Do you get update of this issue? Thanks.
Comment 7 Colin Guthrie 2012-01-03 03:00:48 UTC
(In reply to comment #6)
> Hi Colin,
> Would you please let me know if you need other info to check this issue?
> Do you get update of this issue? Thanks.

This is an alsa bug. "Front" element should not be used in the "Headphones" path, but it *is* affecting the sound.

We have kinda worked around this now in PulseAudio (sorry I didn't make the connection to this bug at the time):

commit 96369919e5100865e2469e42fb8f4b8e38e41aef
Author: David Henningsson <david.henningsson@canonical.com>
Date:   Mon Jul 4 10:12:17 2011 +0200

    alsa-mixer: Set "Front" control to 0 dB on headphone path
    
    I've seen more than one system where the volume control named
    "Front" is a part of audio path for headphones. This is somewhat
    of a compromise: While we don't merge it into the path, as that
    would be regressing machines where "Front" isn't a part of the
    audio path, it would still enable sound on these machines.
    
    BugLink: http://bugs.launchpad.net/bugs/804178
    Signed-off-by: David Henningsson <david.henningsson@canonical.com>


The "correct" fix is to ensure that Front does not affect Headphones at the alsa level.

Anyway, as this is not a kmix or KDE issue but rather a general audio issue, I think we should close this bug.

To the reporter, please try a recent PA version (i.e. 1.1) and feel free to open a bug on freedesktop.org against pulseaudio if you still have problems.
Comment 8 Colin Guthrie 2012-01-03 03:19:34 UTC
Oops I thought I was on a different bug tracker there, hence my earlier comment was a bit out of context. I still think this should be closed for now tho'. Due to the afore mentioned fix which is in PA 1.0 and 1.1.
Comment 9 wayneh 2012-01-03 21:36:17 UTC
Hi Colin,
I tested this issue with Pulseaudio 1.1, this issue occurs. Would you please help to check it again? Thanks.


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.