switching between speakers and headphone doesn't work with Aus Xonar

Bug #860251 reported by obi-nine
54
This bug affects 12 people
Affects Status Importance Assigned to Milestone
PulseAudio
Confirmed
Undecided
Unassigned
pavucontrol (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Switching between speakers and headphones (1 or 2) doesn't work when using the Unity sound control. It does work fine using alsamixer from within terminal. Furthermore when using the Unity volume control to change the volume it DOES show a change in alsamixer.

So... Unity <-> alsamixer volume control works. Unity <-> alsamixer speaker/headphone switch does not work.

Sound card is an Asus Xonar.

Revision history for this message
kaeru (kaeru) wrote :

I can confirm this. The functionality was working in 11.04.

The alsa mixer controls are as below:

Simple mixer control 'Analog Output',0
  Capabilities: enum
  Items: 'Speakers' 'Headphones' 'FP Headphones'
  Item0: 'Speakers'

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
Pavel Fischer (rubbiroid) wrote :

have the save error. See bug #860251

affects: ubuntu → pavucontrol (Ubuntu)
Revision history for this message
Pavel Fischer (rubbiroid) wrote :

wrong link: bug#873558

Revision history for this message
Pavel Fischer (rubbiroid) wrote :

please, update the pulse audio to the version 1.1. With this version switching work fine

Revision history for this message
Pavel Fischer (rubbiroid) wrote :

hmm. It looks like the error is more complicated. I have reinstalled Ubuntu 11.10 and the installed Pulseaudio 1.1 from the source with

./configure --prefix=/usr --sysconfdir=/etc
make -j2
sudo make install

Then remove files from ~/.pulse/, as I make it last time, but it doesn't work more. No switching.

I have also tried to install packages from Precise (https://launchpad.net/ubuntu/+source/pulseaudio/1:1.1-0ubuntu1/+build/2881253), but it also don't work.

Then i started the server in the debug mode (pulseaudio --log-level=debug) and try to change the output port. Nothing was printed after the changing. On my current Ubuntu 11.04 i get a text like this:

I: sink.c: Changed port of sink 0 "alsa_output.pci-0000_04_02.0.analog-stereo" to output-speaker
I: module-device-restore.c: Storing volume/mute/port for device sink:alsa_output.pci-0000_04_02.0.analog-stereo.

So, it seems to be an error in module-alsa-sink.so.

What else can I do to get more information about the problem?

Revision history for this message
Pavel Fischer (rubbiroid) wrote :

Here is a complete log of the pulseaudio server (original from 11.10) from starting, opening indicator-sound and changing the output sinc. Eventually that can help.

Revision history for this message
Pavel Fischer (rubbiroid) wrote :

The bug is in PulseAudio, not in pavucontrol, because no one pulse sound applet can switch the sink port. The pacmd command set-sink-port doesn't work too.

Changed in pavucontrol (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Pavel Fischer (rubbiroid) wrote :

I had one more time compile the pulse-audio from source version 1.1. The switching woks with pacmd command set-sink-port, but any other pulseaudio client don't work with new version of pulseaudio (connecting to server refused or something like that), pehaps is not ABI compatible.

Revision history for this message
Pavel Fischer (rubbiroid) wrote :

So, I had found solution:

1) disable autospawn: /etc/pulse/client.conf -> autospawn = no
2) kill pulse: pulseaudio --kill
3) download the last sourse of pulseaudio and extract it
4) cd pulseaudio-1.1
5) ./configure --prefix=/usr --sysconfdir=/etc --exec-prefix=/usr --localstatedir=/var
6) make
7) sudo make install
8) pulseaudio -D

Changed in pulseaudio:
status: New → Confirmed
Revision history for this message
Pavel Fischer (rubbiroid) wrote :

It was fixed in Ubuntu 12.04 (i have used the dayli build at 25.02.2012)

Revision history for this message
knowlittle (munkmother) wrote :

My 12.04 had same problem. I fixed it with part of Pavel Fisher's solution above. Here is what I did:

1) disable autospawn: /etc/pulse/client.conf -> autospawn = no
2) kill pulse: pulseaudio --kill
3) go to Ubuntu Software Centre. Remove pulseaudio then install it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.