alsa-lib-1.2.15.3

#### Gaming Linux® From Scratch - Version 13.0

### Chapter 7. Audio

- Prev

  ALSA

- Next

  alsa-plugins-1.2.12

- Up
- Home

# alsa-lib-1.2.15.3

## Introduction to ALSA Library

The ALSA Library package contains the ALSA library used by programs (including ALSA Utilities) requiring access to the ALSA sound interface.

- Download: https://www.alsa-project.org/files/pub/lib/alsa-lib-1.2.15.3.tar.bz2

### Additional Downloads

- Recommended file: https://www.alsa-project.org/files/pub/lib/alsa-ucm-conf-1.2.15.3.tar.bz2

### ALSA Library Dependencies

Recommended
Systemd-259.1 (runtime)
Optional
Doxygen and Python2

## Kernel Configuration

If needed, enable the following options in the kernel configuration and recompile the kernel:

    Device Drivers --->
      <*/M> Sound card support --->                                          [SOUND]
        # Select settings and drivers appropriate for your hardware
        # in the submenu:
        <*/M> Advanced Linux Sound Architecture --->                           [SND]

In the Device Drivers ⇒ Sound card support ⇒ Advanced Linux Sound Architecture section of the kernel configuration, select the settings and drivers appropriate for your hardware. If necessary, recompile and install your new kernel.

## Installation of ALSA Library

Install ALSA Library by running the following commands:

    ./configure &&
    make

If you have Doxygen installed and you wish to build the library API documentation, run the following commands from the top-level directory of the source tree:

    make doc

Now, as the `root` user, install the package and recommended configuration files:

    make install &&
    tar -C /usr/share/alsa --strip-components=1 -xf ../alsa-ucm-conf-1.2.15.3.tar.bz2

To install the API documentation, run the following command as the `root` user:

    install -vdm755 /usr/share/doc/alsa-lib-1.2.15.3/html/search &&
    install -vDm644 doc/doxygen/html/*.* \
                 -t /usr/share/doc/alsa-lib-1.2.15.3/html/ &&
    install -vDm644 doc/doxygen/html/search/* \
                 -t /usr/share/doc/alsa-lib-1.2.15.3/html/search/

## lib32 Installation of ALSA Library

Install the 32-bit ALSA Library by running the following commands:

    make distclean &&
    CC="gcc -m32" CXX="g++ -m32"         \
    ./configure --libdir=/usr/lib32      \
                --host=i686-pc-linux-gnu &&

    make

Now, as the `root` user:

    make DESTDIR=$PWD/DESTDIR install     &&
    cp -vr DESTDIR/usr/lib32/* /usr/lib32 &&
    rm -rf DESTDIR                        &&
    ldconfig

## Command Explanations

### Note

Run ./configure --help for a full list of options.

## Configuring ALSA Library

### Config Files

`~/.asoundrc` and `/etc/asound.conf`

### Configuration Information

The default `alsa.conf` is adequate for most installations. For extra functionality and/or advanced control of your sound device, you may need to create additional configuration files. For information on the available configuration parameters, visit https://www.alsa-project.org/main/index.php/Asoundrc.

Furthermore, if this package was not built with Systemd-259.1, add any non-root users to the `audio` group as the `root` user:

    usermod -a -G audio <username>

## Contents

Installed Program: aserver
Installed Library: libasound and libatopology
Installed Directories: /usr/include/alsa, /usr/share/alsa and /usr/share/doc/alsa-lib-1.2.15.3

### Short Descriptions

aserver | is the ALSA server
`libasound` | contains the ALSA API functions
`libatopology` | contains API functions for the ALSA topologies

- Prev

  ALSA

- Next

  alsa-plugins-1.2.12

- Up
- Home