** Description changed:

  Binary package hint: pulseaudio
  
  I had been using PulseAudio in Gutsy for the past several months, so all
  the mundane stuff (groups, permissions, config files) is configured
  correctly. Since the upgrade to Hardy, ALSA is unable to use PulseAudio
  anymore. Details follow:
  
  - I am in the groups pulse-rt and pulse-access
  - ALSA without PulseAudio works just fine
  - PulseAudio seems to work fine with GStreamer
  
  Here's what my .asoundrc looks like:
  =======================
  pcm.pulse {
      type pulse
  }
  ctl.pulse {
      type pulse
  }
  pcm.!default { type pulse }
  ctl.!default { type pulse }
  =======================
  
  I'm attaching my default.pa with the bug.
  
  Here's the output of 'pulseaudio -vvv' when I try to run speaker-test (only 
relevant portion here, full output attached):
  I: client.c: Created 1 "Native client (UNIX socket client)"
  I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
  I: protocol-native.c: Enabled SHM for new connection
  I: client.c: Client 1 changed name from "Native client (UNIX socket client)" 
to "ALSA plug-in [speaker-test]"
  I: client.c: Freed 1 "ALSA plug-in [speaker-test]"
  I: protocol-native.c: connection died.
  
  speaker-test fails with the following:
  WAV file(s)
  Rate set to 48000Hz (requested 48000Hz)
  Buffer size range from 43 to 349525
  Period size range from 21 to 87382
  Using max buffer size 349524
  Periods = 4
  was set period_size = 87381
  was set buffer_size = 349524
  *** PULSEAUDIO: Unable to create stream.
  Unable to set hw params for playback: Input/output error
  Setting of hwparams failed: Input/output error
  speaker-test: pcm_pulse.c:115: pulse_stop: Assertion `pcm->stream' failed.
  Aborted
+ 
+ TEST CASE:
+ 1. Create an .asoundrc file in your home directory to direct alsa to use the 
pulseaudio plugin by default for all sound output. This is done with the 
command "asoundconf set-pulseaudio"
+ 2. Attempt to run speaker-test with the following command: "speaker-test 
-twav -c2"
+ 3. You should get the following error:
+ 
+ *** PULSEAUDIO: Unable to create stream.
+ speaker-test: pcm_pulse.c:115: pulse_stop: Assertion `pcm->stream' failed.
+ 
+ speaker-test 1.0.15
+ 
+ Playback device is default
+ Stream parameters are 48000Hz, S16_LE, 2 channels
+ WAV file(s)
+ Rate set to 48000Hz (requested 48000Hz)
+ Buffer size range from 128 to 1048576
+ Period size range from 64 to 262144
+ Using max buffer size 1048576
+ Periods = 4
+ was set period_size = 262144
+ was set buffer_size = 1048576
+ Unable to set hw params for playback: Input/output error
+ Setting of hwparams failed: Input/output error
+ 
+ 
+ NOTE: This SRU is in two parts, one for alsa-lib, and the other for 
alsa-plugins. The new revision of alsa-plugins requires the new revision of 
alsa-lib in order to function properly.
+ 
+ Intrepid status:
+ This bug is fixed with alsa-lib 1.0.16 and alsa-plugins 1.0.16 which are both 
in intrepid.
+ 
+ Regression potential:
+ The patch to alsa-lib only touches the ioplug plugin, used by various plugins 
from alsa-plugins, as well as other plugins that may be available either in the 
archive, or built by users elsewhere. The 
+ patch makes two changes, the first being to return -EPIPE if the io data 
state records an xrun, and the second is to add a function to allow the correct 
setting of the io data state. This second 
+ change introduces a new symbol, hense the shlibs bump. Since only one plugin, 
i.e the pulseaudio plugin will use this new function, nothing else should be 
broken with the addition of one symbol that 
+ will be only used by one plugin, at least from the Ubuntu archive.
+ 
+ The changes to alsa-plugins are only to the pulseaudio plugin, firstly to 
remove unneeded asserts, as well as to lock the pulseaudio mainloop in the 
correct place, which cause such errors as above. 
+ The second change is to make use of the newly introduced function in the 
alsa-lib ioplug plugin to properly report the state of the application. The 
required build-dependency on alsa-lib has also 
+ been updated. The possibility of a regression is minimal to none at all.
+ 
+ All patches are already upstream in alsa 1.0.16.

** Attachment added: "alsa-lib diff"
   http://launchpadlibrarian.net/14811930/alsa-lib.debdiff

-- 
ALSA failing with PulseAudio in Hardy
https://bugs.launchpad.net/bugs/221673
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to