1) download ALSA Lib. Http://www.alsa-project.org/main/index.php/Main_Page
2) tar jxvf alsa-lib-1.0.19.tar.bz2
3) CD alsa-lib-1.0.19
4) CC = $ (cross_compile)./configure -- target = arm-Linux -- Host = i686-linux -- prefix = ~ /Alsalib_arm
5) make
6) make install
When compiling an app, # include
First:
Cflags =-I/home/BEN
L
From bottom to top, they are ALSA driver, ALSA Lib, and ALSA application:
ALSA applications include aplay and arecord. They are ALSA utils tools. These tools are very good for testing drivers.
ALSA lib provides function libraries
Alsamixer after running press letter M (Mute by B)
This article is mainly about the implementation of the multi-sound streaming under arch gnome and the opening of event sound effects (that is, background music like window or KDE's open machine, and some sound effects during operation)Note: The sound card supports the hardware mix friend, does not need to aim at the younger brother's Raven,1. Install the required packages#pacman-sy alsa-driver
After the upgrade of the sound card suddenly can not use, find a lot of methods, and finally reinstall ALSA Drive solution. Back up for later use. You can refer to the compile alsa-utils here when there are errors, to install Xmlot, with the new profit search installation can be
1157 sudo gedit/etc/modprobe.d/alsa-base.conf
1160 CD
The Android system supports ALSA but is not downloaded or compiled by default. YesFollow these steps to use ALSA in Android.
1. Use git to obtain the following three ALSA-related packages and place them in the corresponding location.Git clone git: // android.git.kernel.org/platform/external/alsa-lib.gitGit clone git: /
Part of this article refers to the blog from Droidphone (http://blog.csdn.net/droidphone/article/details/6271122), about Alsa writing a very good article, just a few examples. This article is a combination of examples to analyze the ALSA audio driver.Development environment: ubuntu10.04Target board: linux-2.6.37 (view Linux kernel information via command uname-r)Compiler: arm-none-linux-gnueabi-(None on beh
Statement: the content of this blog is created at http://blog.csdn.net/droidphone. please refer to it for help. Thank you!Control Interface
The control interface allows the user space application (ALSA-Lib) to access and control multiple switches and sliding controls in the Audio Codec Chip. For mixer (sound mixing), the control interface is particularly important. Starting from ALSA 0.9.x, all mixer oper
= s3c_pcm_suspend, .resume = s3c_pcm_resume,};
Call snd_soc_register_platform () to register an snd_soc_platform struct with ALSA core.
The member pcm_new needs to call dma_alloc_writecombine () to allocate a write-combining memory space to the DMA, and save the information about the buffer to substream-> dma_buffer, which is equivalent to the constructor. Pcm_free is the opposite. These member functions are fairly simple. You can u
From http://www.rpsys.net/openzaurus/patches/alsa/info.htmlALSA SoC LayerThe overall project goal of the ALSA system on Chip (ASOC) layer are to provide better ALSA support for embedded System on Chip processors (e.g Pxa2xx, au1x00, IMX, etc) and portable audio codecs. Currently there is some support on the kernel for SoC audio, however it has some limitations:-
This article was reproduced from: http://blog.csdn.net/luckywang1103/article/details/48053015Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.Directory (?) [+]Since the standard ALSA is not used by default in Android, it uses Tinyalsa, so even command-line-based testing uses LIBTINYALSA. The Android system can be seen in real-time, such as audio channel switching, when the upper-level audio is
Snd_pcm_lib_read_transfer copy data to the user's buffer.
The control interface primarily allows user-space Applications (ALSA-LIB) to access and manage the multi-channel switches, sliding controls, etc. in the audio codec chip. The control interface is particularly important for mixer (remix), starting with the Alsa 0.9.x version, where all mixer work is done through the API of the control interface.
Def
Logical Address virtual address physical address bus address difference, logical Bus
1. Logical Address
Logical Address is the most vague concept.
The explanation in understanding the linux kernel is related to virtual addresses. Based on the concept of hardware MMU and Software Memory Management, you can refer to the second chapter of UTLK memory addressing, I have a very detailed explanation.
However, the
Bus Evolution
First, let's talk about the evolution of the bus. PC architecture series: the development history of CPU, ram, and Io bus.
This article is well written! Thank you for the author!
The following content is largely from this article, which can be said to be the reduction and reproduction of this article.
Public Bus
= "wm9713-hifi",.ac97_control = 1,.playback = {.stream_name = "HiFi Playback",.channels_min = 1,.channels_max = 2,.rates = WM9713_RATES,.formats = SND_SOC_STD_AC97_FMTS,},.capture = {.stream_name = "HiFi Capture",.channels_min = 1,.channels_max = 2,.rates = WM9713_RATES,.formats = SND_SOC_STD_AC97_FMTS,},.ops = wm9713_dai_ops_hifi,},//...//...};
Note: Earlier snd_soc_dai also needed export_symbol_gpl, which was then registered elsewhere. Now, this has been improved to reduce the symbol of expo
December 19, Samsung Samsung Pay finally supported the public transport card function, the first batch of cities to open only Beijing Shanghai, and the previous MI pay also pioneered the support of mobile phone brush bus, and earlier is the operator level to promote the mobile phone brush bus, including China Mobile/unicom/ Telecom, including the three major operators have Nfc-sim card business support mobi
Development Environment: ubuntu12.04 Development Board: ok6410, linux3.0
Alsamixer is one of the Alsa tools for Linux audio architecture. It is used to configure various audio parameters.
Alsamixer is based on the graphic interface under the text. You can easily set the desired volume and switch a switch by using the upper and lower keys on the keyboard, left and right keys, and so on, on the ubuntu12.04 system configuration interface, the operation i
What is Bluetooth-alsa?The BLUETOOTH-ALSA project aims to make Bluetooth headsets of all types work the AS-is with Linux computers, from a standard de Sktop to a limited embedded device. ALSA drivers and daemons for using Bluetooth audio DevicesHow are Bluetooth-alsa now?Posted by: BmidgleyDate: 2007-10-07 07:47Summary
After one upgrade in Centos7, a lot of software was found unable to play sound. To solve the problem, in the terminal to open Firefox, play the Sound of the Web page, there are prompts:
ALSA Lib pcm_dmix.c:1022: (Snd_pcm_dmix_open) Unable to open slaveFeeling is PulseAudio problem, reinstall PulseAudio, the problem remains. With Rpm-qa | grep alsa Check, found only these three packages:
ALSA Programming HOWTO
According to ALSA write a simple PCM application, we first need to open a handle for the PCM device (Handle), and then specify the direction of the PCM stream is played or captured (playback or capture), we can also configure some of the parameters we want, for example, Buffer size, sample rate, PCM data format, and so on. So we have a broad framework, simple and efficient, as follow
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.