CentOS 6.1 ALSA RPM Build Procedure
Here are the necessary steps required to prepare an RPM for the AudioScience ALSA driver and firmware.
1. Install core development tools such as automake, gcc, perl, python, and debuggers
yum groupinstall 'Development Tools'
Download and install appropriate kernel-headers-'uname -r'.rpm for the default kernel.
2. Install RPM build tools by following information in
RpmSetup.
If this process is successful you should see 'SPECS' , 'SRPMS', 'RPMS', 'SOURCES' sub-folders inside root/rpmbuild folder
3. Follow instructions listed on
asihpi to download and extract
alsa-driver-1.0.23.bz2 , alsa-firmware-1.0.23.bz2 project files.
4. Inside alsa-driver-1.0.23 folder, perform
./configure --with-cards=asihpi --with-sequencer=yes
make
If the build is successful it should build kernel modules and symlink can be found inside modules folder.
5. Change directory to /usr/src and perform
mkdir redhat
cd redhat
mkdir SOURCES SRMS RPMS SPECS
6. Copy attached alsa-driver.spec to below three folder locations.
/root/rpmbuild/SPECS , /usr/src/redhat/SPECS and alsa-driver-1.0.23/utils folders.
7. To perform RPM build process,
change directory to ''alsa-driver-1.0.23/utils`` and perform
sh rpmbuild
8. If the build process is successful, RPM file will be created inside /root/rpmbuild/RPMS/x86_64 folder.
RPM Installation
1. ASI Firmware files
extract asihpi.tar.bz2 to /lib/firmware folder. after extraction .bin files should be in ''/lib/firmware/asihpi/.bin''
2. ASI Alsa RPM driver installation
rpm -ivh --replacefiles alsa-driver-1.0.23-1.x86_64.rpm
3. update kernel module dependency
4. Reboot the system, After login process by running alsamixer you could select the audio card using F6 key and proceed with audio device configuration.