ALSA asynchronous notification transfer method doesn't work

Bug #153249 reported by Andreas Gustafsson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
alsa-lib (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

While investigating bug #153241, I noticed that if I try to run the ALSA PCM playback
example program with the argument "--method=async", it fails with the error message

  Start error: File descriptor in bad state

To reproduce:

  apt-get source alsa-lib
  cd alsa-lib-1.0.13/test/
  cc pcm.c -lasound -o pcm
  ./pcm --method=async

For dmesg output, lspci output, etc, please see bug #153241.

Revision history for this message
Andreas Gustafsson (gson) wrote :

I still get the same "Start error: File descriptor in bad state" error
with Ubuntu 7.10 and alsa-lib-1.0.14.

Revision history for this message
Andreas Gustafsson (gson) wrote :

I still get the same error with the Hardy alpha 4 live CD and alsa-lib 1.0.15.
To reproduce, boot from the live CD and run the commands

sudo apt-get install dpkg-dev
sudo apt-get install libc6-dev
sudo apt-get install libasound2-dev
apt-get source alsa-lib
cd alsa-lib-1.0.15/test
cc pcm.c -lasound -o pcm
./pcm --method=async

Revision history for this message
Brian Murray (brian-murray) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in alsa-lib.

Revision history for this message
Daniel T Chen (crimsun) wrote :

I can't reproduce this symptom in current 8.10. Are you able to?

Changed in alsa-lib:
status: New → Incomplete
Revision history for this message
Andreas Gustafsson (gson) wrote :

> I can't reproduce this symptom in current 8.10. Are you able to?

Please point me at a specific i386 live CD ISO to test.

In the meantime, I can confirm that the problem is still there in 8.04,
with alsa-lib-1.0.15:

~/alsa/alsa-lib-1.0.15/test$ ./pcm --method=async
Playback device is plughw:0,0
Stream parameters are 44100Hz, S16_LE, 1 channels
Sine wave rate is 440.0000Hz
Using transfer method: async
Start error: File descriptor in bad state

~/alsa/alsa-lib-1.0.15/test$ cat /etc/issue
Ubuntu 8.04.1 \n \l

Revision history for this message
Andreas Gustafsson (gson) wrote :

I just downloaded and tried the 8.10 beta desktop i386 live CD,
and I still get the "Start error: File descriptor in bad state" error.
These are the commands I ran after booting the live CD
(in safe graphics mode, because the machine hangs during
boot otherwise):

sudo apt-get install dpkg-dev
sudo apt-get install libc6-dev
sudo apt-get install libasound2-dev
apt-get source alsa-lib
cd alsa-lib-1.0.17a/test
cc pcm.c -lasound -o pcm
./pcm --method=async

Daniel T Chen (crimsun)
Changed in alsa-lib:
status: Incomplete → Confirmed
Revision history for this message
Daniel T Chen (crimsun) wrote :

Fixed in jaunty:

crimsun@errno:/var/tmp $ ./pcm --method=async
Playback device is plughw:0,0
Stream parameters are 44100Hz, S16_LE, 1 channels
Sine wave rate is 440.0000Hz
Using transfer method: async
^C
130|

Changed in alsa-lib:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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