Arm Linux uses ALSA to drive and use USB Audio devices

Source: Internet
Author: User

I. Background:

The kernel version of ARM Linux is 3.13.0

Two. Preparatory work

Add ALSA drivers to the kernel, that is, when compiling the kernel, add the following options:

You can then recompile the kernel to

Three. Cross-compiling Alsa-lib and Alsa-utils (Alsa-utils is a series of audio device control tools, and Alsa-lib is a library of alsa-utils dependencies, so the Alsa-lib is compiled first)

3.1 Cross-compiling alsa-lib

3.2 Cross-compiling alsa-utils

Four. The three compiled libraries and tools are copied to the Arm Development Board (the author usually directly after the compilation is compressed and then copied to the Development Board for decompression, in order to avoid the direct copy of the soft link can not copy the situation)

Five. Use the tools in Alsa-utils to record and play

Recording:

Arecord-d "plughw:0,0" demo.wmv

Play:

Aplay-d "plughw:0,0" demo.wmv

Six: Precautions:

If you copy the tools in the compiled alsa-utils to a storage device in the FAT32 format, note that FAT32 does not support soft links, you need to copy a aplay directly and change the name to Arecord:

CP Aplay Arecord

Arm Linux uses ALSA to drive and use USB Audio devices

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.