Debian Bug report logs - #665849
/usr/bin/aplay: aplay busy hw

version graph

Package: alsa-utils; Maintainer for alsa-utils is Debian ALSA Maintainers <[email protected]>; Source for alsa-utils is src:alsa-utils (PTS, buildd, popcon).

Reported by: yelloprotoss <[email protected]>

Date: Mon, 26 Mar 2012 16:06:02 UTC

Severity: minor

Found in version alsa-utils/1.0.23-3

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian ALSA Maintainers <[email protected]>:
Bug#665849; Package alsa-utils. (Mon, 26 Mar 2012 16:06:04 GMT) (full text, mbox, link).


Acknowledgement sent to yelloprotoss <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian ALSA Maintainers <[email protected]>. (Mon, 26 Mar 2012 16:06:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: yelloprotoss <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: /usr/bin/aplay: aplay busy hw
Date: Mon, 26 Mar 2012 17:49:48 +0200
Package: alsa-utils
Version: 1.0.23-3
Severity: minor
File: /usr/bin/aplay

hi

aplay -D hw:0,0  sound.wav
aplay: main:654: audio open error: Device or resource busy

but 
		aplay  sound.wav
works


 aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0


i am wondering if it is normal

just info

greetings


-- System Information:
Debian Release: 6.0.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages alsa-utils depends on:
ii  dialog                  1.1-20100428-1   Displays user-friendly dialog boxe
ii  libasound2              1.0.23-2.1       shared library for ALSA applicatio
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  libncursesw5            5.7+20100313-5   shared libraries for terminal hand
ii  linux-sound-base        1.0.23+dfsg-2    base package for ALSA and OSS soun
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii  module-init-tools       3.12-1           tools for managing Linux kernel mo
ii  udev                    164-3            /dev/ and hotplug management daemo
ii  whiptail                0.52.11-1        Displays user-friendly dialog boxe

Versions of packages alsa-utils recommends:
ii  alsa-base                  1.0.23+dfsg-2 ALSA driver configuration files
ii  pciutils                   1:3.1.7-6     Linux PCI Utilities

alsa-utils suggests no packages.

-- no debconf information




Information forwarded to [email protected], Debian ALSA Maintainers <[email protected]>:
Bug#665849; Package alsa-utils. (Mon, 18 Jun 2012 07:51:15 GMT) (full text, mbox, link).


Acknowledgement sent to Jonas Kölker <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian ALSA Maintainers <[email protected]>. (Mon, 18 Jun 2012 07:51:16 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Jonas Kölker <[email protected]>
To: [email protected]
Subject: it might be normal
Date: Mon, 18 Jun 2012 09:33:56 +0200
[Message part 1 (text/plain, inline)]
I did a bit of experimentation.  I can reproduce your behavior on an almost
fresh install of testing.

Also, if I kill pulseaudio and then run aplay -D hw:0,0 foo.wav, pulseaudio is
running again.

So, my theory is this: the alsa library starts up pulseaudio before any kind
of playback, then tries to open the hw device, but by then pulseaudio has
already monopolized it.  Hence the conflict with -D hw:0,0.  Omitting those
arguments tells alsa to use its default backend---pulseaudio---which works.

-- 
Jonas Kölker <[email protected]> <URL:http://jonaskoelker.ignorelist.com>
At work // mail: [email protected] // office: nygaard-280 // phone: 8942 5655
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 19:28:50 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.