lunes, 23 de agosto de 2010

Actualizar Alsa (1.0.21) en Ubuntu 9.10 kármica Koala

alsa Ubuntu Karmic Koala 9.10 is coming by default with the version 1.0.20 of Alsa so I decided to upgrade to the last version wich is 1.0.21. Ubuntu kármica Koala 9.10 viene por defecto con la versión 1.0.20 de Alsa, así que decidí actualizar a la última versión que es 1.0.21.
What is Alsa (Advanced Linux Sound Architecture) ? ¿Qué es Alsa (Arquitectura de Sonido Avanzada Linux)?
According to Wikipedia , Alsa is a Linux kernel component intended to replace the original Open Sound System (OSS) for providing device drivers for sound cards. De acuerdo con Wikipedia , Alsa es un componente del núcleo Linux destinada a sustituir a la original Open Sound System (OSS) para proporcionar controladores de dispositivos para tarjetas de sonido. Some of the goals of the ALSA project at its inception were automatic configuration of sound-card hardware, and graceful handling of multiple sound devices in a system, goals which it has largely met. Algunos de los objetivos del proyecto ALSA en sus inicios fueron la configuración automática de hardware de tarjeta de sonido, y el manejo elegante de varios dispositivos de sonido en un sistema, las metas que se ha cumplido en gran medida.
Installation : Instalación:
To do this, we must begin by determining our version of alsa as follows : Para ello, debemos empezar por determinar nuestra versión de alsa de la siguiente manera:

cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.20.

To avoid problems during the upgrade of Alsa-utils, we need to stop it with the following command : Para evitar problemas durante la actualización de Alsa-utils, tenemos que pararlo con el siguiente comando:
sudo /etc/init.d/alsa-utils stop
We must then install the necessary tools to compile along with the kernel headers : A continuación, debe instalar las herramientas necesarias para compilar, junto con las cabeceras del kernel:
sudo apt-get -y install build-essential ncurses-dev gettext xmlto libasound2-dev
sudo apt-get -y install linux-headers-`uname -r` libncursesw5-dev

Then, we go in our personal folder and download alsa-driver, alsa-lib and alsa-utils : Entonces, vamos en nuestra carpeta personal y descargar alsa-driver, lib alsa-utils y alsa-:
cd ~
rm -rf ~/alsa* ~/.pulse*
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.21.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.21a.tar.bz2
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.21.tar.bz2

After that, we create a new folder for the compilation and installation of the 3 files. Después de eso, creamos una nueva carpeta para la compilación e instalación de los 3 archivos. Then, we move the 3 tar files that we just downloaded in this folder : Entonces, nos movemos los archivos tar 3 que acaba de descargar en esta carpeta:
sudo rm -rf /usr/src/alsa
sudo mkdir -p /usr/src/alsa
cd /usr/src/alsa
sudo cp ~/alsa* .

Unpack the 3 tar files : Descomprimir los archivos tar 3:
sudo tar xjf alsa-driver*
sudo tar xjf alsa-lib*
sudo tar xjf alsa-utils*

We compile and install alsa-driver : Nos compilar e instalar alsa-driver:
cd alsa-driver*
sudo ./configure
sudo make
sudo make install

We compile and install alsa-lib : Nos compilar e instalar alsa-lib:
cd ../alsa-lib*
sudo ./configure
sudo make
sudo make install

We compile and install alsa-utils : Nos compilar e instalar alsa-utils:
cd ../alsa-utils*
sudo ./configure
sudo make
sudo make install

If like me, you got this error during the last “sudo ./configure” : Si como yo, tienes este error durante el último "sudo. / Configure":
checking form.h presence... yes
checking for form.h... yes
checking for new_panel in -lpanelw... no
configure: error: panelw library not found

You will need to add those symbolics links ( only if you got the error ) and restart the installation from the last “sudo ./configure” : Usted tendrá que añadir los enlaces simbólicos (sólo si tienes el error) y reinicie la instalación de los últimos "sudo. / Configure":

sudo ln -s libpanelw.so.5 /usr/lib/libpanelw.so
sudo ln -s libformw.so.5 /usr/lib/libformw.so
sudo ln -s libmenuw.so.5 /usr/lib/libmenuw.so
sudo ln -s libncursesw.so.5 /lib/libncursesw.so

Then, we remove the 3 tar files in our personal folder that are not anymore necessary : Luego, quitamos los 3 archivos tar en nuestra carpeta personal que no son más necesarias:
rm -f ~/alsa-driver*
rm -f ~/alsa-lib*
rm -f ~/alsa-utils*

Then, just restart your computer and your alsa version should be 1.0.21! Entonces, simplemente reinicie su computadora y su versión de alsa 1.0.21 debe ser!
You can verify that you have now indeed have this version of alsa : Usted puede comprobar que tiene ahora, de hecho tiene esta versión de alsa:
cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.
Compiled on Oct 15 2009 for kernel 2.6.31-14-generic (SMP)

Just to be sure everything is well configured, execute this command : Sólo para estar seguro es todo bien configurado, ejecute el siguiente comando:
sudo alsaconf
and reboot again! y reinicia de nuevo!