Design and Implementation about ALSA Audio Driver Based on the ARM Platform
- Author
- HouZhiXiong
- Advisor
- DuGang
- School
- Chinese Geology University (Beijing)
- Major
- Detection Technology and Automation
- Classification
- TN912.3 Speech Signal Processing
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 77
- Citations
- 0
Abstract
The main content of my paper is to write an ALSA driver to control the audio stream for our audio codec chip, the hardware platform is Samsung2440CPU based ARM9and our audio codec chip.The paper introduce the entire development process, firstly it is about the general embedded development process and related concepts, mainly about the ARM architecture which is used in my paper; Software operation system is the linux2.6.32kernel, and paper analysis a series of related content about linux operation system, then I explain the process about how to set up our develop and debug environment. Secondly we go to the key points about ALSA develop, begin with Audio Interface Specification I2S of related concepts about audio, then analysis the ALSA structure, and finally introduce the implementation process of the ALSA driver. There are three major parts about ALSA driver:decode driver, machine driver, platform driver. Only we set up all these three parts we can complete our ALSA driver. Then we should abstract the sound card, the sound card and its components which are related to the operations of the audio chip registers, so we complete my ALSA driver.When our driver is completed we should begin to test it, the uImage should be transported to the develop board via TFTP after the diver is complied into the kernel.The file system is the ramdisk which has already done, Similarly the application executable file is transmitted over the NFS network.The final part is testing. ALSA driver need to use the ALSA lib layer in the middle when be called by the application layer code to operate the hardware, this is the role of ALSA. It will provide a unified interface to different audio chip in different platforms, so developers do not need to write the driver again when change the platform. ALSA Utiles tools need to be called when Test-driven interface, there will generate many executable files such as aplay or amixer which can be used to call the interfaces of driver with different permanents,so I can get my test results and bugs or not. The test results show that the sound card driver is successful and achieve normal ALSA audio chip support.
Table of contents
Abstract 5-6
ABSTRACT 6-11
Chapter 1 Introduction 11-14
1.1 research background 11- 12
1.2 dissertation topic development and research status at home and abroad 12
1.3 issues raised organizational structure 12-13
1.4 papers 13
1.5 Chapter Summary 13-14
Chapter 2 embedded Development 14-30
2.1 embedded system Overview 14-16
2.1.1 embedded system definition 14-15
2.1.2 embedded system Features 15
2.1.3 embedded development history 15-16
2.2 embedded development consisting 16-17
2.3 ARM processor hardware platform 17-25
2.3.1 ARM architecture Profile 18-20
2.3.2 ARM 9 architectural features 20-22
2.3.3 hardware platform processor interface 22-25
2.4 embedded software development process 25-29
2.4.1 Overview of embedded systems development 25-26
2.4.2 embedded Software Development Overview 26-27
2.4.4 linux operating system 27-29
2.5 Chapter Summary 29-30
Chapter 3, linux -based embedded system platform to build 30-39
3.1 host - target development model 30-31
3.1.1 cross compiler environment 30-31
3.1.2 cross debugging environment 31
3.2 Bootloader 31-36
3.2.1 U-Boot features 33
3.2.2 U-Boot function 33
3.2.3 U- Boot transplant process 33-36
3.3 hardware platform audio chip 36-38
3.4 Summary 38-39
audio system and Chapter 4 ALSA architecture 39-47
4.1 ALSA system 39-40
4.1.1 audio interface Specification I2S 39-40
4.1.2 PCM audio interface 40
4.1.3 AC'97 / AC-Link specification 40
4.2 audio related concepts 40-42
4.2.1 sound signal digitization process 40-41
4.2.2 channel 41-42
4.3 AL SA hierarchy 42-46
4.4 Summary 46-47
Chapter 5 ALSA audio driver to achieve 47-66
5.1 Linux device driver architecture 47-48
5.2 audio chip ALSA drivers realize 48-55
5.2.1 decoder associated drivers 50-51
5.2.2 platform driven 51-52
5.2.3 machine drive 52-54
5.2.4 relationships among 54-55
5.3 ALSA driver Card managed to achieve their components created 55-65
5.3.1 Creating card 56
5.3.2 Creating Components 56-65
5.4 Summary 65-66
Chapter 6 ALSA drivers transplant and test 66-74
6.1 chip -related code porting 66
6.1.1 Makefile transplant 66
6.1.2 portable audio chip code 66
6.2 portable sound drivers 66-67
6.2.1 Makefile transplant 66-67
6.2.2 KConfig transplant 67
6.2.3 code porting 67
6.3 compile linux kernel configuration 67-70
6.4 transplant ALSA libraries and tools 70-72
6.4 .1 ALSA Lib compiled 70-71
6.4.2 ALSA Util compiled 71
6.4.3 ALSA libraries and tools transplanted into embedded platforms 71-72
6.5 ALSA driver testing and conclusions 72-73
6.6 summary 73-74
Chapter 7 summary and Outlook 74-76
Thanks 76-77
references 77-79
biographical 79
Related dissertations
- Design of a Intelligent Video Surveillance System Based on the ARM
- Design of Embedded Construction Safety Video Monitoring System Based on S3C6410
- Research of120Emergency Vehicle Terminal Multi-channel Data Acquisition System Based on Beidou Navigation Satellite System
- Design of Embedded Motion Controller Based on ARM and Motion Control Chip
- The Research and Design of Embedded Linux Based on ST-E9500
- Research of Embedded Linux Device Drivers Concurrency Control
- Design of Digital Visual Intercom System
- Video Capture and Coding System Based on Embedded Systems
- Digital Photo Frame Design Based on ARM Platform
- Based on Design and Research of Beidou and GPRS Vehicle Terminal
- Research and Design of Riflescope Shock Detection Device Based on Virtual Instrument Technology
- Research and Design of Water Stop Remote Terminal Based on Embedded System
- Design and Implementation of Home Monitoring System Based on ARM
- Design&Implementation of Web-based Embedded Data Acquisition System
- Research of Ethernet/Ip and Modbus-TCP Communication Adapter Based on Dual-port RAM
- Design and Implementation of Self-tracking Robot
- Design and Implementation of Sensors Management Platform Based on Embedded System
- Research and Implementation of Intelligent Home Gateway Based on Triple Play
- The Generic Driver Framework Design of USB Wireless Network Adapter Based on Linux
- The Design and Implementation of Home Gateway Configuration System Based on Linux