Debian Bug report logs - #315668
esound: Please support reconnection to the sound device

version graph

Package: esound; Maintainer for esound is Josselin Mouette <joss@debian.org>;

Reported by: Martin Pitt <mpitt@debian.org>

Date: Fri, 24 Jun 2005 15:48:02 UTC

Severity: wishlist

Tags: patch

Fixed in version esound/0.2.36-2

Done: Ryan Murray <rmurray@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Ryan Murray <rmurray@debian.org>:
Bug#315668; Package esound. (full text, mbox, link).


Acknowledgement sent to Martin Pitt <mpitt@debian.org>:
New Bug report received and forwarded. Copy sent to Ryan Murray <rmurray@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Martin Pitt <mpitt@debian.org>
To: submit@bugs.debian.org
Subject: esound: Please support reconnection to the sound device
Date: Fri, 24 Jun 2005 17:40:11 +0200
[Message part 1 (text/plain, inline)]
Package: esound
Severity: wishlist
Tags: patch

Hi Ryan!

esound is not capable of reconnecting to the sound device. Whenever
the sound configuration changes (e. g. change of the default device in
~/.asoundrc), esd has to be killed and restarted, which is ugly.

I wrote a patch which makes esd reconnect to the sound device on
SIGUSR1. Frontend programs like gnome-audio-properties and similar
tools can then send around a SIGUSR1 to esound servers to have them
reconnect to the sound device without interrupting esd client
connections.

This would also nice to be integrated upstream.

The patch is at

 http://patches.ubuntu.com/patches/esound_reconnect-driver.diff

Thanks for considering and have a nice day!

Martin

-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Ryan Murray <rmurray@debian.org>:
Bug#315668; Package esound. (full text, mbox, link).


Acknowledgement sent to Matt Zimmerman <mdz@debian.org>:
Extra info received and forwarded to list. Copy sent to Ryan Murray <rmurray@debian.org>. (full text, mbox, link).


Message #10 received at 315668@bugs.debian.org (full text, mbox, reply):

From: Matt Zimmerman <mdz@debian.org>
To: Martin Pitt <mpitt@debian.org>, 315668@bugs.debian.org
Subject: Re: Bug#315668: esound: Please support reconnection to the sound device
Date: Fri, 24 Jun 2005 09:06:29 -0700
On Fri, Jun 24, 2005 at 05:40:11PM +0200, Martin Pitt wrote:
> Package: esound
> Severity: wishlist
> Tags: patch
> 
> Hi Ryan!
> 
> esound is not capable of reconnecting to the sound device. Whenever
> the sound configuration changes (e. g. change of the default device in
> ~/.asoundrc), esd has to be killed and restarted, which is ugly.
> 
> I wrote a patch which makes esd reconnect to the sound device on
> SIGUSR1. Frontend programs like gnome-audio-properties and similar
> tools can then send around a SIGUSR1 to esound servers to have them
> reconnect to the sound device without interrupting esd client
> connections.
> 
> This would also nice to be integrated upstream.
> 
> The patch is at
> 
>  http://patches.ubuntu.com/patches/esound_reconnect-driver.diff
> 
> Thanks for considering and have a nice day!

Wouldn't SIGHUP be a more traditional choice?  Or does esd already use
SIGHUP for something else?



-- 
 - mdz



Information forwarded to debian-bugs-dist@lists.debian.org, Ryan Murray <rmurray@debian.org>:
Bug#315668; Package esound. (full text, mbox, link).


Acknowledgement sent to Martin Pitt <mpitt@debian.org>:
Extra info received and forwarded to list. Copy sent to Ryan Murray <rmurray@debian.org>. (full text, mbox, link).


Message #15 received at 315668@bugs.debian.org (full text, mbox, reply):

From: Martin Pitt <mpitt@debian.org>
To: Matt Zimmerman <mdz@debian.org>
Cc: 315668@bugs.debian.org
Subject: Re: Bug#315668: esound: Please support reconnection to the sound device
Date: Fri, 24 Jun 2005 18:13:55 +0200
[Message part 1 (text/plain, inline)]
Hi!

Matt Zimmerman [2005-06-24  9:06 -0700]:
> On Fri, Jun 24, 2005 at 05:40:11PM +0200, Martin Pitt wrote:
> > Package: esound
> > Severity: wishlist
> > Tags: patch
> > 
> > Hi Ryan!
> > 
> > esound is not capable of reconnecting to the sound device. Whenever
> > the sound configuration changes (e. g. change of the default device in
> > ~/.asoundrc), esd has to be killed and restarted, which is ugly.
> > 
> > I wrote a patch which makes esd reconnect to the sound device on
> > SIGUSR1. Frontend programs like gnome-audio-properties and similar
> > tools can then send around a SIGUSR1 to esound servers to have them
> > reconnect to the sound device without interrupting esd client
> > connections.
> > 
> > This would also nice to be integrated upstream.
> > 
> > The patch is at
> > 
> >  http://patches.ubuntu.com/patches/esound_reconnect-driver.diff
> > 
> > Thanks for considering and have a nice day!
> 
> Wouldn't SIGHUP be a more traditional choice?  Or does esd already use
> SIGHUP for something else?

Indeed SIGHUP is already used for "resetting the daemon", i. e. kill
all client connections and free all samples, but not reconnect to the
sound card. This is precisely the opposite of what I wanted. :-)

Martin

-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Ryan Murray <rmurray@debian.org>:
Bug#315668; Package esound. (full text, mbox, link).


Acknowledgement sent to Martin Pitt <mpitt@debian.org>:
Extra info received and forwarded to list. Copy sent to Ryan Murray <rmurray@debian.org>. (full text, mbox, link).


Message #20 received at 315668@bugs.debian.org (full text, mbox, reply):

From: Martin Pitt <mpitt@debian.org>
To: 315668@bugs.debian.org
Subject: Don't yet use
Date: Sat, 25 Jun 2005 17:38:27 +0200
Hi!

Please don't use the patch as it is now, it does not work very well
when switching while e. g. an mp3 is playing. I tested it with esdplay
which worked perfectly, but it needs some further tweaks. I'll improve
it next week.

Thanks,

Martin
-- 
Martin Pitt              http://www.piware.de
Ubuntu Developer   http://www.ubuntulinux.org
Debian Developer        http://www.debian.org



Information forwarded to debian-bugs-dist@lists.debian.org, Ryan Murray <rmurray@debian.org>:
Bug#315668; Package esound. (full text, mbox, link).


Acknowledgement sent to Martin Pitt <mpitt@debian.org>:
Extra info received and forwarded to list. Copy sent to Ryan Murray <rmurray@debian.org>. (full text, mbox, link).


Message #25 received at 315668@bugs.debian.org (full text, mbox, reply):

From: Martin Pitt <mpitt@debian.org>
To: 315668@bugs.debian.org
Subject: Tested patch again
Date: Wed, 29 Jun 2005 09:11:25 +0200
[Message part 1 (text/plain, inline)]
Hi Ryan!

Nevermind my previous comment, at that time I used an old instance of
esd. Switching audio devices with the current patch works perferctly
here when playing anything.

Thanks,

Martin
-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org
[signature.asc (application/pgp-signature, inline)]

Reply sent to Ryan Murray <rmurray@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Martin Pitt <mpitt@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #30 received at 315668-close@bugs.debian.org (full text, mbox, reply):

From: Ryan Murray <rmurray@debian.org>
To: 315668-close@bugs.debian.org
Subject: Bug#315668: fixed in esound 0.2.36-2
Date: Wed, 11 Jan 2006 02:32:08 -0800
Source: esound
Source-Version: 0.2.36-2

We believe that the bug you reported is fixed in the latest version of
esound, which is due to be installed in the Debian FTP archive:

esound-clients_0.2.36-2_i386.deb
  to pool/main/e/esound/esound-clients_0.2.36-2_i386.deb
esound-common_0.2.36-2_all.deb
  to pool/main/e/esound/esound-common_0.2.36-2_all.deb
esound_0.2.36-2.diff.gz
  to pool/main/e/esound/esound_0.2.36-2.diff.gz
esound_0.2.36-2.dsc
  to pool/main/e/esound/esound_0.2.36-2.dsc
esound_0.2.36-2_i386.deb
  to pool/main/e/esound/esound_0.2.36-2_i386.deb
libesd-alsa0_0.2.36-2_i386.deb
  to pool/main/e/esound/libesd-alsa0_0.2.36-2_i386.deb
libesd0-dev_0.2.36-2_i386.deb
  to pool/main/e/esound/libesd0-dev_0.2.36-2_i386.deb
libesd0_0.2.36-2_i386.deb
  to pool/main/e/esound/libesd0_0.2.36-2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 315668@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ryan Murray <rmurray@debian.org> (supplier of updated esound package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 11 Jan 2006 01:42:15 -0800
Source: esound
Binary: libesd0 libesd-alsa0 libesd0-dev esound-clients esound esound-common
Architecture: source i386 all
Version: 0.2.36-2
Distribution: unstable
Urgency: low
Maintainer: Ryan Murray <rmurray@debian.org>
Changed-By: Ryan Murray <rmurray@debian.org>
Description: 
 esound     - Enlightened Sound Daemon - Support binaries
 esound-clients - Enlightened Sound Daemon - clients
 esound-common - Enlightened Sound Daemon - Common files
 libesd-alsa0 - Enlightened Sound Daemon (ALSA) - Shared libraries
 libesd0    - Enlightened Sound Daemon - Shared libraries
 libesd0-dev - Enlightened Sound Daemon - Development files
Closes: 257146 315668 318145 328872 343174
Changes: 
 esound (0.2.36-2) unstable; urgency=low
 .
   * Allow playing of everything current libaudiofile supports (closes: #318145)
   * Apply patch to wrap *64 functions, too (closes: #257146)
   * Pull several patches from Ubuntu: (closes: #343174, #315668)
   * Rebuild on hppa with fixed headers (closes: #328872)
 .
   [ Martin Pitt <martin.pitt@ubuntu.com> ]
   + esound (0.2.36-1ubuntu5) breezy; urgency=low
     * audio_alsa09.c, esd_audio_close():
     - Call snd_pcm_hw_free() before snd_pcm_close(). This closes the file
       descriptor to the sound device even if the device is not physically
       present any more.
     - This fixes the esound/hotplug deadlock when removing a currently active
       sound device.
   + esound (0.2.36-1ubuntu2) breezy; urgency=low
     * audio_alsa09.c: Disable snd_pcm_drain() call for now since it sometimes
       triggers a race condition in the ALSA kernel driver which causes the
       esd process to hang. This is not a proper bug fix, but at least makes all
       those broken Colony installations out there work again. (Ubuntu #12276)
   + esound (0.2.36-0ubuntu2) breezy; urgency=low
     * esd.c: Install signal handler for SIGUSR1 that reconnects to the ALSA
       driver. This is useful after changing the ALSA configuration file.
     * client.c: Integrate driver reconnection into client loop.
     * audio_alsa09.c, initAlsa(): Call snd_config_update_free_global() to purge
       configuration cache and to properly reload configuration files.
 .
   [ Jeff Waugh <jeff.waugh@ubuntu.com> ]
   + esound (0.2.35-2ubuntu2) hoary; urgency=low
     * esdlib.c:
       - More thorough fixage, avoid stupid breakage thanks to Paolo Borelli
         and James Henstridge.
   + esound (0.2.35-2ubuntu1) hoary; urgency=low
     * esdlib.c:
       - Do not modify host passed to esd_sound_open, because that is highly
         offensive. (Fixes GStreamer using ESPEAKER.) Thanks to Jan Schmidt
         who should take full credit for finding this bogon.
Files: 
 123062a2011b69cc47098d59195a184f 733 sound optional esound_0.2.36-2.dsc
 e62bd35d57eddbfde6351bc39d03e3c4 33256 sound optional esound_0.2.36-2.diff.gz
 cf790659ee678c1f49e941a3a84c2982 38096 sound optional esound-common_0.2.36-2_all.deb
 a67408d16873dd2051c903a887dc5944 22662 sound optional esound_0.2.36-2_i386.deb
 34537a4cea8454164620493e1f29a531 35544 sound optional esound-clients_0.2.36-2_i386.deb
 29698ae0bd4b837e66e130f3165c3c11 18838 libs optional libesd0_0.2.36-2_i386.deb
 631859a09c8bb6c4b1faa489dbf70b06 23752 libdevel optional libesd0-dev_0.2.36-2_i386.deb
 23b75f81f8c2a892ca4c53167922ce26 21310 libs extra libesd-alsa0_0.2.36-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDxNwpN2Dbz/1mRasRAsCnAJ9OE7cKo8jFTEBBVIAmcwFbMX/atwCg70qm
6+hpK10DLI5ocV+QbNnHAWI=
=qtuY
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 26 Jun 2007 08:28:06 GMT) (full text, mbox, link).


Bug unarchived. Request was from Stefano Zacchiroli <zack@debian.org> to control@bugs.debian.org. (Sun, 10 Apr 2011 08:46:43 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 09 May 2011 07:46:06 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Oct 11 12:06:39 2017; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU 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.