Skip to contentSkip to conversation

Two Debian patches

PATCH Jordi Mallach 2 participants 5 messages Mar 7, 2003 – Mar 10, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

Attached are:

- a patch to quiet down a hell lot of warnings when compiling alsa against 2.4.20 with the XFS patch.
- a manpage for alsaconf.

Jordi

Signature · 3 lines
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
[email protected]     [email protected]     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/~jordi/

#! /bin/sh -e

# 08_vmap_vunmap_calls.dpatch by Steve Kowalik #
# DP: Undefine vmap, vunmap; replace calls to them.

. debian/patches/patch-opts

if [ $# -ne 1 ]; then
echo >&2 "basename $0: script expects -patch|-unpatch as argument" exit 1
fi
case "$1" in

    -patch) patch $patch_opts < $0;;
    -unpatch) patch $patch_opts -R < $0;;
    *)
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
        exit 1;;

esac

exit 0

include/adriver.h +4 -4
@@ -320,11 +320,11 @@
 #endif /* 2.5.0 */
 
 /* vmap/vunmap wrappers */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
+/* #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0) */
 /* 2.4 kernels with xfs patch have the following, but we don't use them anyway... */
-#define vmap(array,pages) remap_page_array(array,pages,0)
-#define vunmap(ptr) vfree_nocheck(ptr)
-#endif /* 2.5.0 */
+/* #define vmap(array,pages) remap_page_array(array,pages,0)
+#define vunmap(ptr) vfree_nocheck(ptr) */
+/* #endif 2.5.0 */
 
 /* vmalloc_to_page wrapper */
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 19)
alsa-kernel/core/pcm_sgbuf.c +2 -2
@@ -109,7 +109,7 @@
 	}
 
 	sgbuf->size = size;
-	vmaddr = vmap(sgbuf->page_table, sgbuf->pages);
+	vmaddr = remap_page_array(sgbuf->page_table, sgbuf->pages, 0);
 	if (! vmaddr)
 		goto _failed;
 	return vmaddr;
@@ -133,7 +133,7 @@
 int snd_pcm_sgbuf_free_pages(struct snd_sg_buf *sgbuf, void *vmaddr)
 {
 	if (vmaddr)
-		vunmap(vmaddr);
+		vfree_nocheck(vmaddr);
 
 	while (sgbuf->pages > 0) {
 		sgbuf->pages--;

.\" Hey, EMACS: -*- nroff -*-
.\" alsaconf.8 is copyright 2003 by Jordi Mallach <[email protected]> .\"
.\" This is free documentation, see the latest version of the GNU .\" General Public License for copying conditions. There is NO warranty. .TH ALSACONF 8 "February 23, 2003"

.SH NAME
alsaconf \- configuration tool for the Advanced Linux Sound Architecture

.SH SYNOPSIS
.B alsaconf
.RI [ options ]

.SH DESCRIPTION
This manual page documents briefly the
.B alsaconf
command.
This manual page was written for the Debian distribution because the original program does not have a manual page.
.PP
\fBAlsaconf\fP is a simple shell script which tries to detect the sound cards on your system and writes a suitable configuration file for ALSA. It will try to guess what GNU/Linux distribution you're running, and will act accordingly to the standards of that distribution, if specific support is available. .PP
Alsaconf will write a modutils snippet which can be then used by modutils to load the correct parameters for your sound card.

.SH OPTIONS
Alsaconf accepts the following options:
.TP
.B \-l, \-\-legacy
Check only for legacy non-isapnp cards
.TP
.B \-m, \-\-modinfo
Read module descriptions instead of reading a card database. .TP
.B \-s, \-\-sound\-wav\-file
Use the specified wav file as a test sound
.TP
.B \-u, \-\-uid uid
Set the uid for the ALSA devices (default = 0)
.TP
.B \-g, \-\-gid gid
Set the gid for the ALSA devices (default = 0)
.TP
.B \-d, \-\-devmode mode
Set the device mode for the ALSA devices (default = 0666) .TP
.B \-r, \-\-strict
Set strict device mode (equiv. with -g 17 -d 0660) .TP
.B \-L, \-\-log
Logging on /tmp/alsaconf.log
.TP
.B \-p, \-\-probe card-name
Probe a legacy non-isapnp card and print module options .TP
.B \-h, \-\-help
Displays this help text

.SH DEBIAN SPECIFIC
In Debian, the default gid of the device files is 29 (corresponding to the audio group) and the default device mode is 0660.

.SH SEE ALSO
.I /usr/share/doc/alsa-base/

.SH HOMEPAGE
http://www.alsa-project.org/

.SH AUTHOR
This manual page was written by Jordi Mallach <[email protected]>, for the Debian system (but may be used by others).

#1 lore raw

At Fri, 7 Mar 2003 14:14:44 +0100,

Quoted 9 lines · Jordi Mallach

[1 <multipart/mixed (7bit)>]
[1.1 <text/plain; iso-8859-1 (quoted-printable)>] Hi,

Attached are:

- a patch to quiet down a hell lot of warnings when compiling alsa against 2.4.20 with the XFS patch.

this issue was already fixed. for 2.2/2.4 kernels, the alsa wrapper functions are always used.

Quoted 1 line

- a manpage for alsaconf.

this looks fine. thanks!

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#2 lore raw

At Mon, 10 Mar 2003 14:41:03 +0100,

Quoted 4 lines · I wrote:
Quoted 2 lines

- a manpage for alsaconf.

this looks fine. thanks!

the one thing i noticed is that the "SEE ALSO" section is debian specific. may i remove this section?

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#3 lore raw
Quoted 4 lines · Takashi Iwai
Quoted 2 lines
Quoted 1 line

- a manpage for alsaconf.

this looks fine. thanks!

the one thing i noticed is that the "SEE ALSO" section is debian specific. may i remove this section?

Hmm. Or move it to DEBIAN SPECIFIC?

Thanks,
Jordi

Signature · 3 lines
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
[email protected]     [email protected]     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/~jordi/
#4 lore raw

At Mon, 10 Mar 2003 17:47:15 +0100,

Quoted 9 lines · Jordi Mallach

[1 <text/plain; iso-8859-1 (quoted-printable)>]

Quoted 4 lines · Takashi Iwai
Quoted 2 lines
Quoted 1 line

- a manpage for alsaconf.

this looks fine. thanks!

the one thing i noticed is that the "SEE ALSO" section is debian specific. may i remove this section?

Hmm. Or move it to DEBIAN SPECIFIC?

yes, it would be even better.

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf