People who have done the system should know that there is a layer of lib between the framework and the driver, and the corresponding LIB libraries in the audio framework and some tool alsa-libalsa-utils are shown below.
Alsa-lib for Arm:
>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>> #!/bin/bash echo "Building ALSA library for ARM platform .
1. layer-3 structure of ALSA:(1) audio interface:The audio interface is the sound card, which contains the hardware buffer. Note that the hardware buffer is in the sound card, not the memory.(2) COMPUTER:This refers to the computer kernel and driver (the driver is provided by ALSA). When (1) Audio interfacce causes an interruption, the kernel will capture it and then hand over the processing to
This article was reproduced from: http://blog.csdn.net/droidphone/article/details/6271122Statement: The content of this blog by Http://blog.csdn.net/droidphone Original, reproduced please indicate the source, thank you!I. OverviewALSA is the acronym for Advanced Linux Sound Architecture and has become the mainstream audio architecture for Linux, for more information and knowledge about this open source project for ALSA, please see the following URL:/h
There is a good article about ALSA's configuration file.
Thanks to the original.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Understand and use the ALSA configuration file
Author: Liu Xuhui Raymond Reprint please indicate the source http://blog.csdn.net/colorant/archive/2008/06/30/2598815.aspx
Email:colorant@163.com
blog:http://blog.csdn.net/colorant/
Home: http://rgbbones.googlepages.com/
Recently in making audio-r
*************************************************************************************************************** ************Easywave Time: 2014.10.25Category: Linux application-alsa audio architecture Alsa-lib porting to compilation declaration: reprint, please keep the linkNote: If there is an error, please correct me. These are the journal articles I studied ...********************************************
Problems with porting alsa-lib: Problems with porting alsa-lib
Problems with porting alsa-lib
Linux audio alsa lib VERSIONED_SYMBOLS
During the migration of alsa lib in the past two days, I encountered a problem and was stuck for a long time.Make a record and be trapped by t
Statement: the content of this blog is composedHttp://blog.csdn.net/droidphoneOriginal, reprinted please indicate the source, thank you! I. Overview
ALSA is short for advanced Linux sound architecture and has become the mainstream audio architecture of Linux. I would like to learn more about ALSA's open-source project, for more information, see http://www.alsa-project.org /.
In the driver layer of the internal device,
Address: http://blog.csdn.net/droidphone/article/details/6271122
Statement: the content of this blog is composedHttp://blog.csdn.net/droidphoneOriginal, reprinted please indicate the source, thank you!
I. Overview
ALSA is short for advanced Linux sound architecture and has become the mainstream audio architecture of Linux. I would like to learn more about ALSA's open-source project, for more information, see http://www.alsa-project.org /.
Article Title: Detailed description of how to use ALSA to drive the sound card in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. What is ALSA;
Advanced Linux Sound Architecture is short for "ALSA", which means the
Under the root file system, the ALSA related configuration files are:
Under the/system/usr/share/alsa directory:
├──alsa.conf├──cards│└──aliases.conf└──pcm├──center_lfe.conf├──default.conf├──dmix.conf├──dpl.conf├──dsn Oop.conf├──front.conf├──iec958.conf├──modem.conf├──rear.conf├──side.conf├──surround40.conf├──surround41.conf ├──surround50.conf├──surround51.conf└──surround71.conf
And
/system/etc/asound.state
2011-06-24 17:35:58
The Alsa Utils below Android offers three tools, respectively:Alsa_amixer: ConfiguringAlsa_aplay: Play RecordingAlsa_ctl:: Store/restore configuration file, related to asound.conf
Detailed parameters can be viewed through alsa_xxx--help
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"Alsa_amixer"/$ alsa_amixer--help usage:amixer
"Use Method"
Alsa_amixer controls: Lists all the control interfaces registered in t
Snd_register_device_for_dev () Parameters passed in by function
(2) the Snd_register_device_for_dev () function is called by the Snd_pcm_dev_register () function
The str parameter inside is exactly the name parameter, below has PCMC%ID%IP and pcmc%id%ic,c to indicate card's meaning,%i indicates which sound card, d indicates which one is under which logic device, p means play, C means recording
9, summary (how to write Alsa sound card driver)
(1)
Original http://www.volkerschatz.com/noise/alsa.html
Intro
If anyone often uses a Linux machine to process music, he will deal with ALSA sooner or later. ALSA, short for advanced Linux sound architecture, is more powerful than the outdated Open Sound System (OSS. In fact, you may have unknowingly used ALSA, such as the OSS simulation function of
Porting ALSA audio library
Category: Linux Embedded driver development ()
5244 reading comments (1)
Favorites
Report
Playbackaudio embedded test linuxtimer
Andrew Huang
Bluedrum@163.comALSA is a late audio processing library in Linux, which is mainly used to improve the original OSS library. better performance, supporting multiple playback sources, etc. but correspondingly, the programming complexity is increased. the old OSS uses the standard file I
Andrew Huang bluedrum@163.comALSA is a late audio processing library in Linux, mainly for improvements to the existing OSS libraries. Better performance, support for multiple playback sources, and so on. But correspondingly, increased programming complexity. The old OSS is a standard file IO interface, the device is opened with open, the audio recording is the data IO interface (read/write), the parameters of the device are controlled by IOCTL. They're all system calls. This eliminates the need
Recently in Linux to do the program, a long time did not listen to music, only to find that my Linux system has been no sound, just installed sound card driver, installed a long time to find information on the Internet, feel that this is a more authoritative
ALSA, i.e. advanced Linux Sound architecture. It is a good sound card driver, can drive most of the sound card, but also support multiple audio streaming, support multiple sound card and so on. So
First, introduce what is ALSA;Advanced Linux Sound architecture abbreviation for ALSA, translated into Chinese means the Advanced Linux sound architecture (this is Google translation); when it comes to architecture, it's a bit too much, so ALSA not only includes support and drive for sound cards;ALSA has the following
English Original: http://www.linuxjournal.com/article/6735Period (cycle): The interval between interrupts in the hardware. It represents the input delay.There is a pointer in the sound card interface to indicate the current read and write location in the hardware buffer of the sound card. As long as the interface is running, the pointer will loop to a location in the buffer.Frame size = sizeof (one sample) * NchannelsThe cache (buffer) and the period (size) size configured in
L download ALSA-utils and ALSA-Lib in the same version.
Http://www.alsa-project.org/main/index.php/Download
L compile ALSA-lib
./Configure -- Host = arm-None-Linux-gnueabi -- disable-Python -- prefix =/usr/share/ARM-ALSA/
If the following error message is displayed, -- disable-pyhont
Collect2: LD returned 1 exit stat
"linux Audio" ALSA Audio Programming "essence"
Preface: Here is a look at the meaning of each parameter and some basic concepts.
Sample length: Sample is the most basic unit for recording audio data, with 8-bit and 16-bit common.
Channel number (channel): This parameter is 1 for mono, and 2 for stereo. Frame: Hardwood records a sound unit whose length is the product of the sample length and the number of channels.Sample rate (Rate): The number of sa
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.