[Pkg-alsa-devel] Bug#233200: marked as done (Too strict max periods constraints for dmix plugin)

Debian Bug Tracking System owner@bugs.debian.org
Sun, 16 Jan 2005 12:48:19 -0800


Your message dated Sun, 16 Jan 2005 15:32:07 -0500
with message-id <E1CqH4B-0005LP-00@newraff.debian.org>
and subject line Bug#233200: fixed in alsa-oss 1.0.8-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Feb 2004 11:25:10 +0000
>From michel@daenzer.net Tue Feb 17 03:25:10 2004
Return-path: <michel@daenzer.net>
Received: from netline-mail1.netline.ch [195.141.226.27] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1At3Li-0007Mx-00; Tue, 17 Feb 2004 03:25:10 -0800
Received: from cube.asgaard.local (unverified [217.162.2.157]) by netline-mail1.netline.ch
 (Rockliffe SMTPRA 4.5.6) with ESMTP id <B0002245846@netline-mail1.netline.ch> for <submit@bugs.debian.org>;
 Tue, 17 Feb 2004 12:21:17 +0100
Subject: Too strict max periods constraints for dmix plugin
From: Michel =?ISO-8859-1?Q?D=E4nzer?= <michel@daenzer.net>
To: submit@bugs.debian.org
Content-Type: multipart/mixed; boundary="=-RZryNNrp8KxQ05Uh6iYM"
Message-Id: <1077017107.2706.45.camel@thor.asgaard.local>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.5 
Date: Tue, 17 Feb 2004 12:25:07 +0100
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_02_16 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 
	version=2.60-bugs.debian.org_2004_02_16
X-Spam-Level: 


--=-RZryNNrp8KxQ05Uh6iYM
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Package: alsa-oss
Version: 1.0.2-1
Severity: normal
Tags: patch
X-Debbugs-Cc: alsa-devel@lists.sf.net


I encountered a problem with alsa-oss with some OSS only apps: they try
to limit the maximum number of fragments to a lower value than the
number of periods configured for dmix (the minimum number which provides
smooth playback with all ALSA apps), which fails. This patch changes
oss_dsp_hw_params() to pass the minimum number of periods to
snd_pcm_hw_params_set_periods_max() if it's larger than the maximum
requested by the OSS app. Works here with bzflag at least, but I don't
know if it makes sense in general... Feedback appreciated.


-- System Information:
Debian Release: testing/unstable
Architecture: powerpc
Kernel: Linux thor 2.6.3-rc3-ben1-ck1 #1 Mon Feb 16 16:25:14 CET 2004
ppc
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8

Versions of packages alsa-oss depends on:
hi  libasound2	1.0.1+cvs20040120-1 Advanced Linux Sound Architecture 
ii  libc6	2.3.2.ds1-11        GNU C Library: Shared libraries an

-- no debconf information


-- 
Earthling Michel Dänzer      |     Debian (powerpc), X and DRI developer
Libre software enthusiast    |   http://svcs.affero.net/rm.php?r=daenzer

--=-RZryNNrp8KxQ05Uh6iYM
Content-Description: 
Content-Disposition: inline; filename=alsa-oss-max-fragments.diff
Content-Type: text/x-patch; charset=UTF-8
Content-Transfer-Encoding: 7bit

? build-arch-stamp
? debian
? local.diff
Index: alsa-oss.c
===================================================================
RCS file: /cvsroot/alsa/alsa-oss/alsa-oss.c,v
retrieving revision 1.41
diff -p -u -r1.41 alsa-oss.c
--- alsa-oss.c	1 Dec 2003 14:06:23 -0000	1.41
+++ alsa-oss.c	27 Jan 2004 17:01:31 -0000
@@ -250,7 +250,9 @@ static int oss_dsp_hw_params(oss_dsp_t *
 			if (err < 0)
 				return err;
 			if (dsp->maxfrags > 0) {
-				unsigned int periods_max = dsp->maxfrags;
+				unsigned int periods_max = periods_min > dsp->maxfrags
+							 ? periods_min
+							 : dsp->maxfrags;
 				err = snd_pcm_hw_params_set_periods_max(pcm, hw,
 									&periods_max, 0);
 				if (err < 0)

--=-RZryNNrp8KxQ05Uh6iYM--


---------------------------------------
Received: (at 233200-close) by bugs.debian.org; 16 Jan 2005 20:36:45 +0000
>From katie@ftp-master.debian.org Sun Jan 16 12:36:45 2005
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CqH8f-0000y4-00; Sun, 16 Jan 2005 12:36:45 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1CqH4B-0005LP-00; Sun, 16 Jan 2005 15:32:07 -0500
From: Jordi Mallach <jordi@debian.org>
To: 233200-close@bugs.debian.org
X-Katie: $Revision: 1.55 $
Subject: Bug#233200: fixed in alsa-oss 1.0.8-1
Message-Id: <E1CqH4B-0005LP-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sun, 16 Jan 2005 15:32:07 -0500
Delivered-To: 233200-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Source: alsa-oss
Source-Version: 1.0.8-1

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

alsa-oss_1.0.8-1.diff.gz
  to pool/main/a/alsa-oss/alsa-oss_1.0.8-1.diff.gz
alsa-oss_1.0.8-1.dsc
  to pool/main/a/alsa-oss/alsa-oss_1.0.8-1.dsc
alsa-oss_1.0.8-1_i386.deb
  to pool/main/a/alsa-oss/alsa-oss_1.0.8-1_i386.deb
alsa-oss_1.0.8.orig.tar.gz
  to pool/main/a/alsa-oss/alsa-oss_1.0.8.orig.tar.gz



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 233200@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jordi Mallach <jordi@debian.org> (supplier of updated alsa-oss 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: Sun, 16 Jan 2005 20:44:54 +0100
Source: alsa-oss
Binary: alsa-oss
Architecture: source i386
Version: 1.0.8-1
Distribution: unstable
Urgency: low
Maintainer: Jordi Mallach <jordi@debian.org>
Changed-By: Jordi Mallach <jordi@debian.org>
Description: 
 alsa-oss   - ALSA wrapper for OSS applications
Closes: 233200
Changes: 
 alsa-oss (1.0.8-1) unstable; urgency=low
 .
   * New upstream release
     (Closes: #233200 "Too strict max periods constraints for dmix plugin")
   * Thomas Hood
     - Improve description again
     - Add debian/watch file
     - /usr/share/lintian/overrides/alsa-oss
       + Add: override lintian warning non-dev-pkg-with-shlib-symlink
Files: 
 0a6a0516981f02cfb417c23d84f44a12 781 sound optional alsa-oss_1.0.8-1.dsc
 b6ac5c5f3a0a3abd2fcf084627c94f77 311915 sound optional alsa-oss_1.0.8.orig.tar.gz
 313fd1626050e519800fe7caa305acaa 3027 sound optional alsa-oss_1.0.8-1.diff.gz
 5eec64c7da30a76ca17ea2a3a3670be7 46754 sound optional alsa-oss_1.0.8-1_i386.deb

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

iD8DBQFB6sWfJYSUupF6Il4RAnJzAJ4zaYBbIEwttVY5jFpKgS+d0BmgigCfcX0G
d5G2evuCt/radxexne1HIgs=
=54jG
-----END PGP SIGNATURE-----