Hello community,
here is the log from the commit of package alsa-utils
checked in at Mon Nov 3 11:54:27 CET 2008.
--------
--- alsa-utils/alsa-utils.changes 2008-10-23 16:32:17.000000000 +0200
+++ /mounts/work_src_done/STABLE/alsa-utils/alsa-utils.changes 2008-10-29 14:32:59.000000000 +0100
@@ -1,0 +2,6 @@
+Wed Oct 29 14:32:47 CET 2008 - tiwai@suse.de
+
+- updated to version 1.0.18-final;
+ just including all previous fixes
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
alsa-utils-1.0.18rc3-package-fix.diff
alsa-utils-1.0.18rc3.tar.bz2
alsa-utils-git-fixes.diff
New:
----
alsa-utils-1.0.18.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ alsa-utils.spec ++++++
--- /var/tmp/diff_new_pack.U13544/_old 2008-11-03 11:54:15.000000000 +0100
+++ /var/tmp/diff_new_pack.U13544/_new 2008-11-03 11:54:15.000000000 +0100
@@ -20,7 +20,7 @@
Name: alsa-utils
BuildRequires: alsa-devel ncurses-devel xmlto
-%define package_version 1.0.18rc3
+%define package_version 1.0.18
License: GPL v2 or later
Group: Productivity/Multimedia/Sound/Players
Provides: alsa-conf
@@ -28,10 +28,10 @@
AutoReqProv: on
Summary: Advanced Linux Sound Architecture Utilities
Version: 1.0.18
-Release: 4
+Release: 5
Source: ftp://ftp.alsa-project.org/pub/util/alsa-utils-%{package_version}.tar.bz2
-Patch: alsa-utils-git-fixes.diff
-Patch1: alsa-utils-%{package_version}-package-fix.diff
+# Patch: alsa-utils-git-fixes.diff
+# Patch1: alsa-utils-%{package_version}-package-fix.diff
Url: http://www.alsa-project.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -48,8 +48,8 @@
%prep
%setup -q -n %{name}-%{package_version}
-%patch1 -p1
-%patch -p1
+# %patch1 -p1
+# %patch -p1
mv alsamixer/README alsamixer/README-alsamixer
%build
@@ -78,6 +78,9 @@
%{_datadir}/alsa
%changelog
+* Wed Oct 29 2008 tiwai@suse.de
+- updated to version 1.0.18-final;
+ just including all previous fixes
* Thu Oct 23 2008 tiwai@suse.de
- added --test-position in aplay/arecord for debugging
- can disable the build of alsaconf in configure
++++++ alsa-utils-1.0.18rc3.tar.bz2 -> alsa-utils-1.0.18.tar.bz2 ++++++
++++ 1776 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/alsa-utils-1.0.18rc3/alsactl/alsactl.1 new/alsa-utils-1.0.18/alsactl/alsactl.1
--- old/alsa-utils-1.0.18rc3/alsactl/alsactl.1 2008-09-09 18:55:50.000000000 +0200
+++ new/alsa-utils-1.0.18/alsactl/alsactl.1 2008-10-29 13:42:11.000000000 +0100
@@ -51,6 +51,11 @@
as much as possible. This option is set as default now.
.TP
+\fI\-g, \-\-ignore\fP
+Used with store and restore commands. Do not show 'No soundcards found'
+and do not set an error exit code when soundcards are not installed.
+
+.TP
\fI\-P, \-\-pedantic\fP
Used with restore command. Don't restore mismatching control elements.
This option was the old default behavior.
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/alsa-utils-1.0.18rc3/alsactl/alsactl.c new/alsa-utils-1.0.18/alsactl/alsactl.c
--- old/alsa-utils-1.0.18rc3/alsactl/alsactl.c 2008-09-09 18:55:50.000000000 +0200
+++ new/alsa-utils-1.0.18/alsactl/alsactl.c 2008-10-29 13:42:11.000000000 +0100
@@ -34,6 +34,7 @@
int debugflag = 0;
int force_restore = 1;
+int ignore_nocards = 0;
char *command;
char *statefile = NULL;
@@ -48,7 +49,8 @@
printf(" -f,--file # configuration file (default " SYS_ASOUNDRC ")\n");
printf(" -F,--force try to restore the matching controls as much as possible\n");
printf(" (default mode)\n");
- printf(" -P,--pedantic don't restore mismatching controls (old default)\n");
+ printf(" -g,--ignore ignore 'No soundcards found' error\n");
+ printf(" -P,--pedantic do not restore mismatching controls (old default)\n");
printf(" -r,--runstate # save restore and init state to this file (only errors)\n");
printf(" default settings is 'no file set'\n");
printf(" -R,--remove remove runstate file at first, otherwise append errors\n");
@@ -75,6 +77,7 @@
{"env", 1, NULL, 'E'},
{"initfile", 1, NULL, 'i'},
{"force", 0, NULL, 'F'},
+ {"ignore", 0, NULL, 'g'},
{"pedantic", 0, NULL, 'P'},
{"runstate", 0, NULL, 'r'},
{"remove", 0, NULL, 'R'},
@@ -99,7 +102,7 @@
while (1) {
int c;
- if ((c = getopt_long(argc, argv, "hdvf:FE:i:Pr:R", long_option, NULL)) < 0)
+ if ((c = getopt_long(argc, argv, "hdvf:FgE:i:Pr:R", long_option, NULL)) < 0)
break;
switch (c) {
case 'h':
@@ -111,6 +114,9 @@
case 'F':
force_restore = 1;
break;
+ case 'g':
+ ignore_nocards = 1;
+ break;
case 'E':
if (putenv(optarg)) {
fprintf(stderr, "environment string '%s' is wrong\n", optarg);
@@ -150,7 +156,7 @@
}
cardname = argc - optind > 1 ? argv[optind + 1] : NULL;
- for (tmp = devfiles; cardname != NULL && tmp != NULL; tmp++) {
+ for (tmp = devfiles; cardname != NULL && *tmp != NULL; tmp++) {
int len = strlen(*tmp);
if (!strncmp(cardname, *tmp, len)) {
long l = strtol(cardname + len, NULL, 0);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/alsa-utils-1.0.18rc3/alsactl/alsactl.h new/alsa-utils-1.0.18/alsactl/alsactl.h
--- old/alsa-utils-1.0.18rc3/alsactl/alsactl.h 2008-09-09 18:55:50.000000000 +0200
+++ new/alsa-utils-1.0.18/alsactl/alsactl.h 2008-10-29 13:42:11.000000000 +0100
@@ -1,5 +1,6 @@
extern int debugflag;
extern int force_restore;
+extern int ignore_nocards;
extern char *command;
extern char *statefile;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/alsa-utils-1.0.18rc3/alsactl/state.c new/alsa-utils-1.0.18/alsactl/state.c
--- old/alsa-utils-1.0.18rc3/alsactl/state.c 2008-09-09 18:55:50.000000000 +0200
+++ new/alsa-utils-1.0.18/alsactl/state.c 2008-10-29 13:42:11.000000000 +0100
@@ -1507,8 +1507,12 @@
break;
if (card < 0) {
if (first) {
- error("No soundcards found...");
- return -ENODEV;
+ if (ignore_nocards) {
+ return 0;
+ } else {
+ error("No soundcards found...");
+ return -ENODEV;
+ }
}
break;
}
@@ -1606,8 +1610,12 @@
break;
if (card < 0) {
if (first) {
- error("No soundcards found...");
- return -ENODEV;
+ if (ignore_nocards) {
+ return 0;
+ } else {
+ error("No soundcards found...");
+ return -ENODEV;
+ }
}
break;
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/alsa-utils-1.0.18rc3/aplay/aplay.c new/alsa-utils-1.0.18/aplay/aplay.c
--- old/alsa-utils-1.0.18rc3/aplay/aplay.c 2008-09-09 18:55:50.000000000 +0200
+++ new/alsa-utils-1.0.18/aplay/aplay.c 2008-10-29 13:42:11.000000000 +0100
@@ -106,6 +106,7 @@
static int buffer_pos = 0;
static size_t bits_per_sample, bits_per_frame;
static size_t chunk_bytes;
+static int test_position = 0;
static snd_output_t *log;
static int fd = -1;
@@ -186,7 +187,8 @@
" --disable-resample disable automatic rate resample\n"
" --disable-channels disable automatic channel conversions\n"
" --disable-format disable automatic format conversions\n"
-" --disable-softvol disable software volume control (softvol)\n")
+" --disable-softvol disable software volume control (softvol)\n"
+" --test-position test ring buffer position\n")
, command);
printf(_("Recognized sample formats are:"));
for (k = 0; k < SND_PCM_FORMAT_LAST; ++k) {
@@ -347,7 +349,8 @@
OPT_DISABLE_RESAMPLE,
OPT_DISABLE_CHANNELS,
OPT_DISABLE_FORMAT,
- OPT_DISABLE_SOFTVOL
+ OPT_DISABLE_SOFTVOL,
+ OPT_TEST_POSITION
};
int main(int argc, char *argv[])
@@ -385,6 +388,7 @@
{"disable-channels", 0, 0, OPT_DISABLE_CHANNELS},
{"disable-format", 0, 0, OPT_DISABLE_FORMAT},
{"disable-softvol", 0, 0, OPT_DISABLE_SOFTVOL},
+ {"test-position", 0, 0, OPT_TEST_POSITION},
{0, 0, 0, 0}
};
char *pcm_name = "default";
@@ -563,6 +567,9 @@
case OPT_DISABLE_SOFTVOL:
open_mode |= SND_PCM_NO_SOFTVOL;
break;
+ case OPT_TEST_POSITION:
+ test_position = 1;
+ break;
default:
fprintf(stderr, _("Try `%s --help' for more information.\n"), command);
return 1;
@@ -1089,6 +1096,8 @@
/* not required, but for sure */
snd_pcm_mmap_commit(handle, offset, 0);
}
+
+ buffer_frames = buffer_size; /* for position test */
}
#ifndef timersub
@@ -1385,6 +1394,25 @@
}
}
+static void do_test_position(void)
+{
+ static int counter = 0;
+ snd_pcm_sframes_t avail, delay;
+ int err;
+
+ err = snd_pcm_avail_delay(handle, &avail, &delay);
+ if (err < 0)
+ return;
+ if (avail > 4 * (snd_pcm_sframes_t)buffer_frames ||
+ avail < -4 * (snd_pcm_sframes_t)buffer_frames ||
+ delay > 4 * (snd_pcm_sframes_t)buffer_frames ||
+ delay < -4 * (snd_pcm_sframes_t)buffer_frames) {
+ fprintf(stderr, "Suspicious buffer position (%i total): avail = %li, delay = %li, buffer = %li\n", ++counter, (long)avail, (long)delay, (long)buffer_frames);
+ } else if (verbose) {
+ fprintf(stderr, "Buffer position: %li/%li (%li)\n", (long)avail, (long)delay, (long)buffer_frames);
+ }
+}
+
/*
* write function
*/
@@ -1399,7 +1427,11 @@
count = chunk_size;
}
while (count > 0) {
+ if (test_position)
+ do_test_position();
r = writei_func(handle, data, count);
+ if (test_position)
+ do_test_position();
if (r == -EAGAIN || (r >= 0 && (size_t)r < count)) {
snd_pcm_wait(handle, 1000);
} else if (r == -EPIPE) {
@@ -1440,7 +1472,11 @@
size_t offset = result;
for (channel = 0; channel < channels; channel++)
bufs[channel] = data[channel] + offset * bits_per_sample / 8;
+ if (test_position)
+ do_test_position();
r = writen_func(handle, bufs, count);
+ if (test_position)
+ do_test_position();
if (r == -EAGAIN || (r >= 0 && (size_t)r < count)) {
snd_pcm_wait(handle, 1000);
} else if (r == -EPIPE) {
@@ -1478,7 +1514,11 @@
}
while (count > 0) {
+ if (test_position)
+ do_test_position();
r = readi_func(handle, data, count);
+ if (test_position)
+ do_test_position();
if (r == -EAGAIN || (r >= 0 && (size_t)r < count)) {
snd_pcm_wait(handle, 1000);
} else if (r == -EPIPE) {
@@ -1516,7 +1556,11 @@
size_t offset = result;
for (channel = 0; channel < channels; channel++)
bufs[channel] = data[channel] + offset * bits_per_sample / 8;
+ if (test_position)
+ do_test_position();
r = readn_func(handle, bufs, count);
+ if (test_position)
+ do_test_position();
if (r == -EAGAIN || (r >= 0 && (size_t)r < count)) {
snd_pcm_wait(handle, 1000);
} else if (r == -EPIPE) {
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/alsa-utils-1.0.18rc3/configure.in new/alsa-utils-1.0.18/configure.in
--- old/alsa-utils-1.0.18rc3/configure.in 2008-09-09 19:50:29.000000000 +0200
+++ new/alsa-utils-1.0.18/configure.in 2008-10-29 13:48:01.000000000 +0100
@@ -2,7 +2,7 @@
AC_PREREQ(2.59)
AC_INIT(alsamixer/alsamixer.c)
AC_PREFIX_DEFAULT(/usr)
-AM_INIT_AUTOMAKE(alsa-utils, 1.0.18rc3)
+AM_INIT_AUTOMAKE(alsa-utils, 1.0.18)
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.15])
@@ -29,6 +29,7 @@
AC_PROG_LN_S
AM_PATH_ALSA(1.0.16)
+dnl Disable alsamixer
CURSESINC=""
CURSESLIB=""
CURSES_CFLAGS=""
@@ -41,6 +42,16 @@
esac],[alsamixer=true])
AM_CONDITIONAL(ALSAMIXER, test x$alsamixer = xtrue)
+dnl Disable alsaconf
+AC_ARG_ENABLE(alsaconf,
+ [ --disable-alsaconf Disable alsaconf packaging],
+ [case "${enableval}" in
+ yes) alsaconf=true ;;
+ no) alsaconf=false ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-alsaconf) ;;
+ esac],[alsaconf=true])
+AM_CONDITIONAL(ALSACONF, test x$alsaconf = xtrue)
+
dnl Checks for header files.
AC_HEADER_STDC
if test x$alsamixer = xtrue; then
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/alsa-utils-1.0.18rc3/iecset/iecset.c new/alsa-utils-1.0.18/iecset/iecset.c
--- old/alsa-utils-1.0.18rc3/iecset/iecset.c 2008-09-09 18:55:50.000000000 +0200
+++ new/alsa-utils-1.0.18/iecset/iecset.c 2008-10-29 13:42:11.000000000 +0100
@@ -90,6 +90,7 @@
printf("Options:\n");
printf(" -D device specifies the control device to use\n");
printf(" -c card specifies the card number to use (equiv. with -Dhw:#)\n");
+ printf(" -n number specifies the control index number (default = 0)\n");
printf(" -x dump the dump the AESx hex code for IEC958 PCM parameters\n");
printf(" -i read commands from stdin\n");
printf("Commands:\n");
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/alsa-utils-1.0.18rc3/include/version.h new/alsa-utils-1.0.18/include/version.h
--- old/alsa-utils-1.0.18rc3/include/version.h 2008-09-09 19:50:39.000000000 +0200
+++ new/alsa-utils-1.0.18/include/version.h 2008-10-29 13:48:10.000000000 +0100
@@ -4,9 +4,9 @@
#define SND_UTIL_MAJOR 1
#define SND_UTIL_MINOR 0
-#define SND_UTIL_SUBMINOR 18rc3
+#define SND_UTIL_SUBMINOR 18
#define SND_UTIL_VERSION ((SND_UTIL_MAJOR<<16)|\
(SND_UTIL_MINOR<<8)|\
SND_UTIL_SUBMINOR)
-#define SND_UTIL_VERSION_STR "1.0.18rc3"
+#define SND_UTIL_VERSION_STR "1.0.18"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/alsa-utils-1.0.18rc3/Makefile.am new/alsa-utils-1.0.18/Makefile.am
--- old/alsa-utils-1.0.18rc3/Makefile.am 2008-09-09 19:50:28.000000000 +0200
+++ new/alsa-utils-1.0.18/Makefile.am 2008-10-29 13:48:00.000000000 +0100
@@ -4,7 +4,13 @@
else
ALSAMIXER_DIR=
endif
-SUBDIRS= include alsactl alsaconf $(ALSAMIXER_DIR) amidi amixer aplay iecset seq speaker-test utils m4 po
+if ALSACONF
+ALSACONF_DIR=alsaconf
+else
+ALSACONF_DIR=
+endif
+SUBDIRS= include alsactl $(ALSACONF_DIR) $(ALSAMIXER_DIR) amidi amixer \
+ aplay iecset seq speaker-test utils m4 po
EXTRA_DIST= config.rpath TODO gitcompile
AUTOMAKE_OPTIONS=foreign
ACLOCAL_AMFLAGS = -I m4
Files old/alsa-utils-1.0.18rc3/po/ja.gmo and new/alsa-utils-1.0.18/po/ja.gmo differ
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/alsa-utils-1.0.18rc3/po/ja.po new/alsa-utils-1.0.18/po/ja.po
--- old/alsa-utils-1.0.18rc3/po/ja.po 2008-09-09 19:50:48.000000000 +0200
+++ new/alsa-utils-1.0.18/po/ja.po 2008-10-29 13:48:20.000000000 +0100
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: alsa-utils 1.0.9a\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-09-09 19:50+0200\n"
+"POT-Creation-Date: 2008-10-29 13:48+0100\n"
"PO-Revision-Date: 2006-04-18 15:51+0200\n"
"Last-Translator: Takashi Iwai