#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-491

### Chapter 42. Multimedia Libraries and Drivers

- 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.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

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

- Download MD5 sum: ffa5bcb190fa08fe7d3979ceeceb2648

- Download size: 1.1 MB

- Estimated disk space required: 80 MB (with tests and docs)

- Estimated build time: 0.3 SBU (with tests and docs)

### 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 (Runtime)

Systemd-260.1

### Note

If the recommended runtime dependency is not installed, you may need to run any application requiring ALSA library as the `root` user or a user in the `audio` group.

#### Optional

Doxygen-1.17.0 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

To test the results, issue: make check.

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 -v -d -m755 /usr/share/doc/alsa-lib-1.2.15.3/html/search &&
    install -v -m644 doc/doxygen/html/*.* \
                    /usr/share/doc/alsa-lib-1.2.15.3/html &&
    install -v -m644 doc/doxygen/html/search/* \
                    /usr/share/doc/alsa-lib-1.2.15.3/html/search

## 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.

## Contents

Installed Program: aserver
Installed Library: libasound.so and libatopology.so
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.so` | contains the ALSA API functions
`libatopology.so` | contains API functions for the ALSA topologies

- Prev

  ALSA

- Next

  alsa-plugins-1.2.12

- Up
- Home