Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 48ad0e31985f1096a735ee73a0303400 > files > 6

alsa-tools-1.0.9-1mdk.src.rpm

%define MODULES_NOCSPCTL ac3dec as10k1 echomixer envy24control hdspconf hdsploader hdspmixer ld10k1 mixartloader pcxhrloader rmedigicontrol sb16_csp seq/sbiload sscape_ctl us428control usx2yloader vxloader
# qlo10k1 needs l10k1 and thus this package will only bootstrap if it's installed first

%ifarch ppc
%define MODULES %{MODULES_NOCSPCTL}
%else
%define MODULES %{MODULES_NOCSPCTL} sb16_csp
%endif
%define tool_fver 1.0.9
%define firmware_fver 1.0.9
%define fname %name-%tool_fver

Name:		alsa-tools
Version:	%tool_fver
Release:	1mdk
Summary:	Advanced Linux Sound Architecture (ALSA) tools
License:	GPL
URL:		http://alsa-project.org
Source0:	ftp://ftp.alsa-project.org/pub/tools/%fname.tar.bz2
Source1:	ftp://ftp.alsa-project.org/pub/firmware/alsa-firmware-%firmware_fver.tar.bz2
Patch:		alsa-tools-0.9.8-sscape_ctl.c.patch.bz2
Patch2:		alsa-tools-envy24control-vs-gtk2.patch.bz2
Patch3:		alsa-tools-1.0.9-gcc4_0.patch.bz2
Group:		Sound
BuildRequires:	libalsa-devel >= %version
BuildRequires:	fltk-devel
BuildRequires:	gtk-devel
BuildRequires:	gtk2-devel
BuildRequires:	ncurses-devel
BuildRequires:	automake1.7
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

%description
Advanced Linux Sound Architecture (ALSA) utils. Modularized 
architecture with support for a large range of ISA and PCI cards.
Fully compatible with OSS/Lite (kernel sound drivers), but 
contains many enhanced features.

This source rpm package provides several sub packages:
* ac3dec - A free AC-3 stream decoder
* as10k1 - AS10k1 Assembler version A0.99
%ifnarch ppc
* cspctl - Sound Blaster 16 ASP/CSP control program
%endif
* envy24control - Control tool for Envy24 (ice1712) based soundcards
* hdsploader - Firmware loader for RME Hammerfall cards
* hdspmixer - Mixer for the RME Hammerfall DSP cards
* mixartloader - Firmware loader for Digigram's miXart
* rmedigicontrol - Control panel for RME Hammerfall cards
* sbiload - An OPL2/3 FM instrument loader for ALSA sequencer
* sscape_ctl - ALSA SoundScape control utility
* us428control - Control tool for Tascam 428
* usx2yloader - Firmware loader for Tascam USX2Y USB soundcards
* vxloader - Firmware loader for Digigram's VX-board

%package -n	ac3dec
Summary:	A free AC-3 stream decoder
License:	GPL
Group:		Sound

%description -n	ac3dec
This software is completely useless to 99.99 percent of users
out there. It is mostly of use to those interested in audio
coding research and evaluating codecs. It could theoretically
be used as a portion of a DVD playback system for unix systems. 

%package -n	as10k1
Summary:	AS10k1 Assembler version A0.99
License:	GPL
Group:		Sound

%description -n	as10k1
This is an assembler for the emu10k1 DSP chip present in the
creative SB live, PCI 512, and emu APS sound cards. It is used to
make audio effects such as a flanger, chorus or reverb.

%ifnarch ppc
%package -n	cspctl
Summary:	Sound Blaster 16 ASP/CSP control program
License:	GPL
Group:		Sound

%description -n	cspctl
cspctl is a simple CSP microcode loader for Creative Sound Blaster
16ASP and some Sound Blaster AWE32 sound cards with Creative
Signal Processor (CSP) chip (CT1748A) installed.
%endif

%package -n	echomixer
Summary:	Control tool for Echoaudio soundcards
License:	GPL
Group:		Sound

%description -n	echomixer
Emixer is a tool to control all the features of any Echoaudio soundcard.
This includes clock sources, input and output gains, mixers, etc.

%package -n	envy24control
Summary:	Control tool for Envy24 (ice1712) based soundcards
License:	GPL
Group:		Sound

%description -n	envy24control
envy24control allows control of the digital mixer, channel gains
and other hardware settings for sound cards based on the ice1712
chipset (Midiman Delta series, Terratec EWS and EWX series). It 
also displays a level meter for each input and output channel.

%package -n	hdspconf
Summary:	GUI to control the Hammerfall HDSP ALSA settings
License:	GPL
Group:		Sound

%description -n	hdspconf
HDSPConf is a GUI to control the Hammerfall HDSP ALSA Settings.

%package -n	hdsploader
Summary:	Firmware loader for the RME Hammerfall DSP cards
License:	GPL
Group:		Sound

%description -n	hdsploader
Firmware loader for the RME Hammerfall DSP cards

%package -n	hdspmixer
Summary:	Mixer for the RME Hammerfall DSP cards
License:	GPL
Group:		Sound

%description -n	hdspmixer
Mixer for the RME Hammerfall DSP cards

%package -n	ld10k1
Summary:	AS10k1 Assembler version A0.99
License:	GPL
Group:		Sound

%description -n	ld10k1
This is patch loader for EMU10K1 (EMU10K2) for ALSA.
This dissables AC3 passthrough on SB Live.

There are two parts:
Server - ld10k1 - runing as service - it is storing driver state - it must run
        under root or by setuided
Client - lo10k1 - controls server
and dump loader dl10k1 - loads dumps previously created with lo10k1 & ld10k1.

ld10k1 will clear card DSP program and you will hear nothing.
You must load some patches to route sound from inputs to outputs (use
audigy_init script for audigy 1, 2 or init_live for sb live).
After loading patch check and set oss mixer emulation through proc file
(/proc/asound/card/oss_mixer)

In directory setup are some patches which I use on my Audigy for testing.
With this you will have exactly same mixer as with original driver (+headphone
control, not tested AudigyDrive inputs and outputs, AC3 passthrought).
Use as10k1 compiler from alsa-tools package to compile patches.

%package -n	mixartloader
Summary:	Firmware loader for Digigram miXart
License:	GPL
Group:		Sound

%description -n	mixartloader
Firmware loader for Digigram miXart

%package -n	pcxhrloader
Summary:	Firmware loader for Digigram PCXHR soundcards
License:	GPL
Group:		Sound

%description -n	pcxhrloader
Helper program to load the firmware binaries onto the Digigram's PCXHR-board
sound drivers.

%package -n	rmedigicontrol
Summary:	Control panel for the RME Hammerfall DSP cards
License:	GPL
Group:		Sound

%description -n	rmedigicontrol
Control panel for the RME Hammerfall DSP cards

%package -n	sb16_csp
Summary:	Sound Blaster 16 ASP/CSP control program
License:	GPL
Group:		Sound

%description -n	sb16_csp
Cspctl is a Sound Blaster 16 ASP/CSP control program. It is a simple CSP
microcode loader for Crative Sound Blaster 16ASP and some Sound Blaster AWE32
sound cards with Creative Signal Processor (CSP) chip (CT1748A) installed.
cspctl can also be used as a post-install function to snd-sb16-csp module to
load default codec at module installation.
If CSP chip is succesfully detected and initialized, it will be installed as a
hardware dependant device hwC0D2 into /dev/snd directory. Currently, following
codecs can be loaded to CSP device:

- wfm0001a.csp  QSound decoder
- wfm0006a.csp  A-law codec
- wfm0007a.csp  u-law codec
- wfm0011a.csp  IMA ADPCM codec (distorted output for IMA test files)
- wfm0200a.csp  Creative ADPCM codec (sounds like Intel/DVI IMA ADPCM compatible)
- wfm0202a.csp  Fast Speech 8 codec
- wfm0203a.csp  Fast Speech 10 codec

These codecs are not yet supported by ALSA:
- wfm0201a.csp  Text2Speech decoder

With QSound decoder microcode loaded, all simple PCM file formats can be
played with QSound 180 degree positioning applied. QSound element is
dynamically added into mixer structure as 3DEffect1-space element. It will
only show if support for CSP has been compiled into ALSA drivers, CSP chip
has been found, and QSound codec is loaded into CSP. When enabled, QSound
position can be dynamically changed by mixer slider.

Driver supports autoloading of u-Law, A-Law and Ima-ADPCM hardware codecs.
Autoloading is active only when there is no microcode loaded to CSP, and there
is no need to preload appropriate *.csp files.

If hardware codec microcode has been manually loaded, then CSP will support
only loaded PCM format and autoloading will be disabled.  In such case, proc
interface will show loaded codec properties:


%package -n	sbiload
Summary:	An OPL2/3 FM instrument loader for ALSA sequencer
License:	GPL
Group:		Sound

%description -n	sbiload
An OPL2/3 FM instrument loader for ALSA sequencer

%package -n	sscape_ctl
Summary:	ALSA SoundScape control utility
License:	GPL
Group:		Sound

%description -n	sscape_ctl
ALSA SoundScape control utility

%package -n	usx2yloader
Summary:	Firmware loader for Tascam USX2Y USB
License:	GPL
Group:		Sound

%description -n	usx2yloader
Helper program to load the firmware binaries onto the Tascam USX2Y USB.

%package -n	us428control
Summary:	Control for Tascam 428
License:	GPL
Group:		Sound

%description -n	us428control
Controller program for the Tascam 428 workstation.

%package -n	vxloader
Summary:	Firmware loader for Digigram VX soundcards
License:	GPL
Group:		Sound

%description -n	vxloader
Helper program to load the firmware binaries onto the Digigram's VX-board sound
drivers.

%prep
%setup -q -a 1 -n %fname
%patch
# build envy24control with gtk2 (it's hawt!)
%patch2 -p0 -b .envy
%patch3 -p0 -b .envy
pushd envy24control
touch NEWS ChangeLog
aclocal
autoconf
automake -a
popd

%build
for i in %{MODULES} alsa-firmware-%firmware_fver; do
pushd ${i}
%configure
%make
popd
done

%install
rm -rf %{buildroot}

for i in %{MODULES} alsa-firmware-%firmware_fver; do
pushd ${i}
%makeinstall_std
popd
done

# install some extra stuff for ac3dec
install -m755 ac3dec/test/dither_test %{buildroot}%{_bindir}/dither_test
install -m755 ac3dec/test/imdct_test %{buildroot}%{_bindir}/imdct_test

# install menu entries
install -d %{buildroot}%{_menudir}

cat << EOF > %{buildroot}%{_menudir}/echomixer
?package(echomixer): command="echomixer" icon="sound_section.png" section="Multimedia/Sound" title="Echomixer" longtitle="Control tool for Echoaudio soundcards" needs="x11"
EOF

cat << EOF > %{buildroot}%{_menudir}/envy24control
?package(envy24control): command="envy24control" icon="sound_section.png" section="Multimedia/Sound" title="Envy24Control" longtitle="Control tool for Envy24 (ice1712) based soundcards" needs="x11"
EOF

cat << EOF > %{buildroot}%{_menudir}/hdspmixer
?package(hdspmixer): command="hdspmixer" icon="sound_section.png" section="Multimedia/Sound" title="HDSP Mixer" longtitle="Mixer for RME Hammerfall" needs="x11"
EOF

cat << EOF > %{buildroot}%{_menudir}/rmedigicontrol
?package(rmedigicontrol): command="rmedigicontrol" icon="sound_section.png" section="Multimedia/Sound" title="RME Digicontrol" longtitle="Control panel for RME Hammerfall" needs="x11"
EOF

%post -n	echomixer
%update_menus
%postun -n	echomixer
%clean_menus

%post -n	envy24control
%update_menus
%postun -n	envy24control
%clean_menus

%post -n	hdspmixer
%update_menus
%postun -n	hdspmixer
%clean_menus

%post -n	rmedigicontrol
%update_menus
%postun -n	rmedigicontrol
%clean_menus

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files -n	ac3dec
%defattr(-,root,root)
%doc ac3dec/COPYING ac3dec/README ac3dec/TODO
%{_bindir}/ac3dec
%{_bindir}/extract_ac3
%{_bindir}/dither_test
%{_bindir}/imdct_test

%files -n	as10k1
%defattr(-,root,root)
%doc as10k1/README as10k1/COPYING as10k1/examples
%{_bindir}/as10k1

%files -n	echomixer
%defattr(-,root,root)
%doc echomixer/AUTHORS echomixer/COPYING echomixer/README
%{_bindir}/echomixer
%{_menudir}/echomixer
/usr/lib/hotplug/firmware/ea

%files -n	envy24control
%defattr(-,root,root)
%doc envy24control/AUTHORS envy24control/COPYING envy24control/README
%{_bindir}/envy24control
%{_mandir}/man1/envy24control.1*
%{_menudir}/envy24control
#%{_iconsdir}/envy24control.png

%ifnarch ppc
%files -n	cspctl
%defattr(-,root,root)
%doc sb16_csp/COPYING sb16_csp/README
%{_bindir}/cspctl
%{_mandir}/man1/cspctl.*
%endif

%files -n	hdspconf
%defattr(-,root,root)
%doc hdspconf/COPYING hdspconf/README
%_bindir/hdspconf
%_datadir/pixmaps/hdspconf.png
%_datadir/applications/hdspconf.desktop

%files -n	hdsploader
%defattr(-,root,root)
%doc hdsploader/AUTHORS hdsploader/COPYING hdsploader/README
%{_bindir}/hdsploader
%dir %{_datadir}/alsa
%dir %{_datadir}/alsa/firmware
%{_datadir}/alsa/firmware/hdsploader
/usr/lib/hotplug/firmware/digiface_*
/usr/lib/hotplug/firmware/multiface_*


%files -n	hdspmixer
%defattr(-,root,root)
%doc hdspmixer/AUTHORS hdspmixer/COPYING hdspmixer/README
%{_bindir}/hdspmixer
%{_menudir}/hdspmixer
%_datadir/applications/hdspmixer.desktop
%_datadir/pixmaps/hdspmixer.png

%files -n	ld10k1
%defattr(-,root,root)
%doc as10k1/README as10k1/COPYING as10k1/examples
%_bindir/lo10k1
%_bindir/init_audigy
%_bindir/init_live
%_datadir/ld10k1
%_datadir/aclocal/ld10k1.m4
%_includedir/lo10k1
%_libdir/liblo10k1.so*
%_libdir/liblo10k1.la
%_sbindir/ld10k1
%_sbindir/dl10k1
%_sbindir/ld10k1d

%files -n	mixartloader
%defattr(-,root,root)
%{_bindir}/mixartloader
%dir %{_datadir}/alsa
%dir %{_datadir}/alsa/firmware
%{_datadir}/alsa/firmware/mixartloader
/usr/lib/hotplug/firmware/mixart/

%files -n	rmedigicontrol
%defattr(-,root,root)
%doc rmedigicontrol/COPYING rmedigicontrol/README
%{_bindir}/rmedigicontrol
%{_menudir}/rmedigicontrol

%files -n	sbiload
%defattr(-,root,root)
%doc seq/sbiload/COPYING seq/sbiload/README
%{_bindir}/sbiload
%{_datadir}/sounds/opl3/

%files -n	sscape_ctl
%defattr(-,root,root)
%{_bindir}/sscape_ctl

%files -n	us428control
%defattr(-,root,root)
%{_bindir}/us428control

%files -n	usx2yloader
%defattr(-,root,root)
%doc usx2yloader/README
%{_bindir}/usx2yloader
%{_sysconfdir}/hotplug/usb/tascam*
%dir %{_datadir}/alsa
%dir %{_datadir}/alsa/firmware
%{_datadir}/alsa/firmware/usx2yloader


%files -n	pcxhrloader
%defattr(-,root,root)
%doc vxloader/README
%{_bindir}/pcxhrloader
%dir %{_datadir}/alsa/firmware
%dir %{_datadir}/alsa
%dir %{_datadir}/alsa/firmware
%{_datadir}/alsa/firmware/pcxhrloader
/usr/lib/hotplug/firmware/pcxhr/

%files -n	sb16_csp
%defattr(-,root,root)
%doc sb16_csp/README
%_bindir/cspctl
%_mandir/man1/cspctl.*

%files -n	vxloader
%defattr(-,root,root)
%doc vxloader/README
%{_bindir}/vxloader
%dir %{_datadir}/alsa
%dir %{_datadir}/alsa/firmware
%{_datadir}/alsa/firmware/vxloader
/usr/lib/hotplug/firmware/vx/

%changelog
* Fri May 27 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.9-1mdk
- new release

* Mon May 23 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.9-0.rc4.2mdk
- add hdspconf, ld10k1 & sb16_csp subpackages

* Mon May 23 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.9-0.rc4.1mdk
- new release

* Mon May 09 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.9-0.rc3.1mdk
- new release
- drop now uneeded patch 5
- patch 3: fix compiling with gcc-4.0

* Fri Apr 15 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.9rc2-0.rc2.1mdk
- new release

* Thu Jan 13 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.8-1mdk
- new release

* Tue Jan 11 2005 Guillaume Rousse <guillomovitch@mandrake.org> 1.0.8-0.rc2.2mdk
- fix lib64 build  

* Wed Jan 05 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.8-0.rc2.1mdk
- new release

* Thu Dec 30 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.0.8-0.rc1.2mdk
- if the module list is generated somehow, why is it in the specfile?

* Wed Dec 22 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.8-0.rc1.1mdk
- new release

* Fri Nov 19 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.7-1mdk
- new release

* Mon Aug 16 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.6-1mdk
- new release
- replace SOURCE 2 bu patch 2 so that we do not lost usefull checks in the
  future

* Wed Aug 04 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.6-0.rc1.1mdk
- new release

* Sat Jun 12 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.0.5-2mdk
- fix build with gcc 3.4
- add BuildRequires: automake1.7
- do not build cspctl on ppc

* Fri May 28 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.5-1mdk
- new release

* Mon Apr 05 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.4-1mdk
- new release

* Thu Apr 01 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.4-0.rc1_1mdk
- new release

* Tue Feb 24 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.0.2-2mdk
- fix DIRM

* Mon Jan 26 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.2-1mdk
- new release

* Thu Jan 22 2004 Austin Acton <austin@mandrake.org> 1.0.1-2mdk
- include all apps (all GPL)
- include firmware (all GPL)
- build envy24control with gtk2 (mmm, pretty)
- get around the autoconf1.7 requirement and remove the crappy fix
- drop patch1

* Thu Jan 22 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.1-1mdk
- new release

* Tue Jan 06 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.0-0.1rc2mdk
- new release

* Sun Nov 23 2003 Stefan van der Eijk <stefan@eijk.nu> 0.9.8-2mdk
- BuildRequires: automake1.7 fltk-devel

* Mon Oct 13 2003 Austin Acton <aacton@yorku.ca> 0.9.8-1mdk
- 0.9.8
- add missing apps
- add some menu entries
- specfile makeover
- patch from Charles A. Edwards <eslrahc@bellsouth.net>

* Thu Jul 31 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.9.6-1mdk
- 0.9.6
- drop P0, another fix made it into the source

* Thu Jul 10 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.9.5-2mdk
- fix description for what's seen on the changelog list..., i use
  envy24control and sscape_ctl but not for example cspctl, that's why
  this package is split.

* Thu Jul 10 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.9.5-1mdk
- 0.9.5, built against latest libs

* Tue Jul 08 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.9.4-1mdk
- 0.9.4
- added P0 to make it compile

* Tue May 06 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.9.3-1mdk
- 0.9.3
- could not add the hdsploader subpackage because it relies on 
  "sound/hdsp.h" which is provied by alsa-driver-0.9.3+
- could not add the vxloader subpackage because the firmware are 
  copyrighted(?) by Digigram S.A.

* Sun Mar 23 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.9.1-1mdk
- initial cooker contrib (ripped from conectiva, adapted for mandrake)