debian/0000755000000000000000000000000012227241313007163 5ustar debian/compat0000644000000000000000000000000212227241313010361 0ustar 7 debian/patches/0000755000000000000000000000000012227241313010612 5ustar debian/patches/20-debian_patches.patch0000644000000000000000000000256112227235225015014 0ustar --- bfrun.c | 20 ++++++++++---------- dai.c | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) --- brutefir.orig/dai.c +++ brutefir/dai.c @@ -61,7 +61,7 @@ struct subdev { struct { int iodelay_fill; int curbuf; - int frames_left; + volatile int frames_left; } cb; }; --- brutefir.orig/bfrun.c +++ brutefir/bfrun.c @@ -96,20 +96,20 @@ struct debug_filter_process { struct intercomm_area { - bool_t doreset_overflow; + volatile bool_t doreset_overflow; int sync[BF_MAXPROCESSES]; - uint32_t period_us[BF_MAXPROCESSES]; - double realtime_index; + volatile uint32_t period_us[BF_MAXPROCESSES]; + volatile double realtime_index; struct bffilter_control fctrl[BF_MAXFILTERS]; struct bfoverflow overflow[BF_MAXCHANNELS]; uint32_t ismuted[2][BF_MAXCHANNELS/32]; - int delay[2][BF_MAXCHANNELS]; - int subdelay[2][BF_MAXCHANNELS]; - int n_pids; - pid_t pids[BF_MAXPROCESSES]; - int exit_status; - bool_t full_proc[BF_MAXPROCESSES]; - bool_t ignore_rtprio; + volatile int delay[2][BF_MAXCHANNELS]; + volatile int subdelay[2][BF_MAXCHANNELS]; + volatile int n_pids; + volatile pid_t pids[BF_MAXPROCESSES]; + volatile int exit_status; + volatile bool_t full_proc[BF_MAXPROCESSES]; + volatile bool_t ignore_rtprio; struct { uint64_t ts_start; debian/patches/11-sparc_v8.patch0000644000000000000000000000071212227237020013577 0ustar From: root@june.voxel.net --- Makefile | 3 +++ 1 file changed, 3 insertions(+) --- brutefir.orig/Makefile +++ brutefir/Makefile @@ -75,6 +75,9 @@ ifeq ($(UNAME_M),x86_64) BRUTEFIR_OBJS += $(BRUTEFIR_SSE_OBJS) CC_FLAGS += -msse endif +ifneq (,$(findstring sparc,$(UNAME_M))) +CC_FLAGS += -Wa,-xarch=v8plus +endif BRUTEFIR_LIBS += -ldl LDMULTIPLEDEFS = -Xlinker --allow-multiple-definition # assume that we have oss and jack, alsa being linux-only debian/patches/10-makefile.patch0000644000000000000000000000247012227241313013631 0ustar Author: Free Ekanayaka Description: Set INSTALL_PREFIX,INCLUDE,LIBPATHS properly. ALSA support is not available on non-Linux archs (see bug#414298). --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) --- brutefir.orig/Makefile +++ brutefir/Makefile @@ -1,11 +1,11 @@ ################################### # Where to install -INSTALL_PREFIX = $(DESTDIR)/usr/local +INSTALL_PREFIX = $(DESTDIR)/usr ################################### # Where to find libraries, and their header files. -LIBPATHS = -L/usr/local/lib -INCLUDE = -I/usr/local/include +LIBPATHS = -L/usr/lib +INCLUDE = -I/usr/include ifdef FFTW_PATH LIBPATHS += -L$(FFTW_PATH)/lib INCLUDE += -I$(FFTW_PATH)/include @@ -62,7 +62,7 @@ UNAME_P = $(shell uname -p) UNAME_M = $(shell uname -m) # Linux -ifeq ($(UNAME),Linux) +ifneq (,findstring($(UNAME),Linux GNU/kFreeBSD GNU)) ifeq ($(UNAME_M),i586) BRUTEFIR_OBJS += $(BRUTEFIR_SSE_OBJS) CC_FLAGS += -msse @@ -77,8 +77,10 @@ CC_FLAGS += -msse endif BRUTEFIR_LIBS += -ldl LDMULTIPLEDEFS = -Xlinker --allow-multiple-definition -# assume that we have alsa, osss and jack +# assume that we have oss and jack, alsa being linux-only +ifeq ($(UNAME),Linux) LIB_TARGETS += alsa.bfio +endif LIB_TARGETS += oss.bfio LIB_TARGETS += jack.bfio endif debian/patches/series0000644000000000000000000000012512227235225012032 0ustar 20-debian_patches.patch 10-makefile.patch 11-sparc_v8.patch 12-spelling_errors.patch debian/patches/12-spelling_errors.patch0000644000000000000000000000404712227235225015276 0ustar Description: Fix spelling errors in the sources. Author: Alessio Treglia Forwarded: no --- dai.c | 2 +- delay.c | 6 +++--- raw2real.h | 2 +- real2raw.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) --- brutefir.orig/dai.c +++ brutefir/dai.c @@ -367,7 +367,7 @@ do_mute(struct subdev *sd, break; } default: - fprintf(stderr, "Sample byte size %d not suppported.\n", + fprintf(stderr, "Sample byte size %d not supported.\n", sd->channels.sf.bytes); bf_exit(BF_EXIT_OTHER); break; --- brutefir.orig/delay.c +++ brutefir/delay.c @@ -118,7 +118,7 @@ copy_to_delaybuf(void *dbuf, } break; default: - fprintf(stderr, "Sample byte size %d not suppported.\n", sample_size); + fprintf(stderr, "Sample byte size %d not supported.\n", sample_size); bf_exit(BF_EXIT_OTHER); break; } @@ -169,7 +169,7 @@ copy_from_delaybuf(void *buf, } break; default: - fprintf(stderr, "Sample byte size %d not suppported.\n", sample_size); + fprintf(stderr, "Sample byte size %d not supported.\n", sample_size); bf_exit(BF_EXIT_OTHER); break; } @@ -218,7 +218,7 @@ shift_samples(void *buf, } break; default: - fprintf(stderr, "Sample byte size %d not suppported.\n", sample_size); + fprintf(stderr, "Sample byte size %d not supported.\n", sample_size); bf_exit(BF_EXIT_OTHER); break; } --- brutefir.orig/raw2real.h +++ brutefir/raw2real.h @@ -185,7 +185,7 @@ RAW2REAL_NAME(void *_realbuf, break; default: raw2real_invalid_byte_size: - fprintf(stderr, "Sample byte size %d is not suppported.\n", bytes); + fprintf(stderr, "Sample byte size %d is not supported.\n", bytes); bf_exit(BF_EXIT_OTHER); break; } --- brutefir.orig/real2raw.h +++ brutefir/real2raw.h @@ -268,7 +268,7 @@ REAL2RAW_NAME(void *_rawbuf, break; default: real2raw_invalid_byte_size: - fprintf(stderr, "Sample byte size %d is not suppported.\n", bytes); + fprintf(stderr, "Sample byte size %d is not supported.\n", bytes); bf_exit(BF_EXIT_OTHER); break; } debian/rules0000755000000000000000000000075412227235225010256 0ustar #!/usr/bin/make -f %: dh $@ -Smakefile override_dh_auto_build: dh_auto_build -- ARCH=`dpkg --print-architecture` override_dh_auto_install: dh_auto_install -- ARCH=`dpkg --print-architecture` mv $(CURDIR)/debian/brutefir/usr/bin/brutefir \ $(CURDIR)/debian/brutefir/usr/lib/brutefir/brutefir.real cp debian/brutefir.wrapper $(CURDIR)/debian/brutefir/usr/bin/brutefir chmod 755 $(CURDIR)/debian/brutefir/usr/bin/brutefir override_dh_installchangelogs: dh_installchangelogs CHANGES debian/docs0000644000000000000000000000002512227235225010040 0ustar README brutefir.html debian/control0000644000000000000000000000260212227241313010566 0ustar Source: brutefir Section: sound Priority: optional Maintainer: Debian Multimedia Maintainers Uploaders: Free Ekanayaka Build-Depends: debhelper (>= 7.0.50~), docbook-to-man, flex, libasound2-dev [linux-any], libfftw3-dev, libjack-dev Standards-Version: 3.9.4 Homepage: http://www.ludd.luth.se/~torger/brutefir.html Vcs-Git: git://anonscm.debian.org/pkg-multimedia/brutefir.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-multimedia/brutefir.git Package: brutefir Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: a software convolution engine BruteFIR is a program for applying long FIR filters to multi-channel digital audio, either offline or in realtime. Its basic operation is specified through a configuration file, and filters, attenuation and delay can be changed in runtime through a simple command line interface. The FIR filter algorithm used is an optimised frequency domain algorithm, partly implemented in hand-coded assembler, thus throughput is extremely high. In realtime, a standard computer can typically run more than 10 channels with more than 60000 filter taps each. . Through its highly modular design, things like adaptive filtering, signal generators and sample I/O are easily added, extended and modified, without the need to alter the program itself. . debian/brutefir.wrapper0000644000000000000000000000020012227235225012404 0ustar #!/bin/sh BIN=/usr/lib/brutefir/brutefir.real CONFIG=~/.brutefir_config if ! [ -e $CONFIG ]; then touch $CONFIG fi $BIN $@ debian/examples0000644000000000000000000000001112227235225010721 0ustar *_config debian/changelog0000644000000000000000000001066412227241324011046 0ustar brutefir (1.0l-1) unstable; urgency=low * Team upload. * New upstream release: - Made the code compile well on x86-64. - Replaced legacy assembler code with new SSE/SSE2 C code, 3DNow support dropped. - Fixed filter indexing bug in the 'cffa' CLI command. - S24_LE now maps to Alsa SND_PCM_FORMAT_S24_3LE and S24_4LE to - SND_PCM_FORMAT_S24_LE (same for BE of course). Also added possibility to use Alsa syntax "S24_3LE" in config file (means same as the old "S24_LE"). - Refreshed JACK I/O module to make up to date with current API versions. * Refresh patches. * Replace negated list of architectures with linux-any (Closes: #634790). * Use canonical form for VCS urls. * Remove myself from the Uploaders field. * Bump Standards. -- Alessio Treglia Tue, 15 Oct 2013 14:00:42 +0100 brutefir (1.0k-2) unstable; urgency=low * Upload to unstable. -- Alessio Treglia Tue, 08 Feb 2011 22:28:43 +0100 brutefir (1.0k-1) experimental; urgency=low * New upstream release. * Switch to format 3.0 (quilt). * Switch to debhelper 7. * Change fftw3-dev to libfftw3-dev (Closes: #474591); thanks to James Westby for reporting this. * Update watch file. * debian/control: - Add .gitignore file. - Add ${misc:Depends} to the Depends line. - Add Homepage field. - Bump Standards. * Convert patches to the quilt format. * Remove direct changes to the upstream sources. Create new patch to apply with quilt. * Add patch to fix spelling errors. * Move manpage into the debian directory. * Rename 10_Makefile.dpatch -> 10-makefile.patch, refresh. * Remove old 00list* files. * Add local-options file. * Update copyright information. * Fix debian menu file. * Fix doc-base file. * Fix copyright-refers-to-symlink-license warning. * Rename bruterfir.orig to brutefir.real. * Remove manpage in SGML format. * Install configuration files as package examples. * Add configuration file for git-buildpackage. -- Alessio Treglia Mon, 20 Sep 2010 15:22:21 +0200 brutefir (1.0f-2) unstable; urgency=low * debian/patches/10_Makefile.dpatch: Add patches from Cyril Brulebois to fix FTBFS on non-linux architectures (which don't provide ALSA support). Closes: #414298 * debian/control: - Limit libasound2-dev to linux-archs only. - Add Vcs fields. - Change Maintainer and update Uploaders list (Closes: #546949). * debian/compat: Bump compatibility level up to 5. -- Alessio Treglia Mon, 20 Sep 2010 13:01:14 +0200 brutefir (1.0f-1) unstable; urgency=low * New upstream release - Fixes invalid lvalues in assignments (Closes: #320270) * Rebuild for the jack transition (Closes: #317185) * Added wrapper script to create an empty config file (Closes: #318202) * Dropped the amd64 gcc-4.0 patch, fixed upstream -- Free Ekanayaka Sun, 2 Oct 2005 18:12:04 +0100 brutefir (1.0c-1) unstable; urgency=low * New upstream release * Using dpatch * Added dpatch for the Makefile * Bug fix: "brutefir: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment", thanks to Andreas Jochens (Closes: #284751). * Bug fix: "brutefir: ftbfs [sparc] Requires v9|v9a|v9b", thanks to Blars Blarson (Closes: #269715). -- Free Ekanayaka Tue, 22 Mar 2005 13:00:44 +0100 brutefir (1.0-1) unstable; urgency=low * New upstream release -- Free Ekanayaka Fri, 11 Jun 2004 21:52:06 +0200 brutefir (0.99n-2) unstable; urgency=low * debian/control: removed double spaces in the Desctiption field (closes #241576) * Removed menu file, as BruteFIR is supposed to be invoked from the command line. -- Free Ekanayaka Wed, 14 Apr 2004 12:59:47 +0200 brutefir (0.99n-1) unstable; urgency=low * New upstream release * GGeiger: Fixed endian detection on non-sparc or intel machines * GGeiger: Fixed compilation on non-sparc or intel (intel assembler) * First upload to Debian (closes: #187276) -- Free Ekanayaka Sat, 28 Feb 2004 19:58:31 +0100 brutefir (0.99l-0) unstable; urgency=low * Added template man page * New upstream release * adjusted description formatting -- Free Ekanayaka Fri, 21 Nov 2003 16:11:28 +0600 brutefir (0.99k-1) unstable; urgency=low * Initial Release. -- Free Ekanayaka Thu, 18 Sep 2003 23:06:33 +0200 debian/dirs0000644000000000000000000000003112227235225010046 0ustar usr/bin usr/lib/brutefir debian/doc-base0000644000000000000000000000047212227235225010573 0ustar Document: brutefir Title: Brutefir Manual Author: Anders Torger Abstract: This manual describes brutefir, and application for applying long Finite Impulse Response (FIR) filters to sound in realtime. Section: Sound Format: HTML Index: /usr/share/doc/brutefir/brutefir.html Files: /usr/share/doc/brutefir/*.html debian/gbp.conf0000644000000000000000000000005712227235225010611 0ustar [DEFAULT] pristine-tar = True sign-tags = True debian/copyright0000644000000000000000000000210212227236113011113 0ustar This package was debianized by Free Ekanayaka on Thu, 18 Sep 2003 23:06:33 +0200. It was downloaded from http://www.ludd.luth.se/~torger/brutefir.html Authors: Anders Torger Copyright 2001 - 2009 Anders Torger This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. On Debian systems, the complete text of the GNU General Public License, version 2, can be found in /usr/share/common-licenses/GPL-2. debian/brutefir.10000644000000000000000000000107512227235225011077 0ustar .TH "DeMuDi undocumented package" "1" .SH "NAME" brutefir \(em program included in the DeMuDi distribution .SH "DESCRIPTION" .PP This program was packaged by the AGNULA team for the DeMuDi project (http://www.agnula.org). .PP A manual page for this application has not been provided yet, but you can access the documentation under /usr/share/doc/brutefir/brutefir.html .SH "SEE ALSO" .PP info (1), whatis (1), apropos (1), dpkg (8), locate (1), find (1), updatedb (1), undocumented (2), man (7), missing (7) .\" created by instant / docbook-to-man, Mon 03 Oct 2005, 08:56 debian/source/0000755000000000000000000000000012227235225010470 5ustar debian/source/format0000644000000000000000000000001412227235225011676 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000012512227235225010217 0ustar version=3 http://www.ludd.luth.se/~torger/brutefir.html files/brutefir-(.*)\.tar\.gz debian/menu0000644000000000000000000000016012227235225010054 0ustar ?package(brutefir):needs="text"\ section="Applications/Sound"\ title="BruteFIR"\ command="/usr/bin/brutefir" debian/manpages0000644000000000000000000000002212227235225010700 0ustar debian/brutefir.1