The Design and Research of Audio Device Drive Embedded Linux

Author
LiuZheFeng
Advisor
LiTieYing
School
Taiyuan University of Technology
Major
Control Theory and Control Engineering
Classification
TP316.81
Degree
Master's thesis
Year
2010
Downloads
377
Citations
5

Request the full text

Abstract

In today's world, the rapid development of embedded systems almost everywhere. At the same time, there is a large gap between our existing embedded research and production levels with the international advanced level, especially in the core technology of the embedded operating system has always been no major breakthrough. The development of the open-source Linux operating system in the embedded field, provides an opportunity for China to reverse the backward situation in the field of embedded operating system. In the Linux system, the device driver is the most important, and plays a vital role in the operation of the entire system. Audio signal as the main part of the multimedia is essential in Linux device drivers. Linux device driver comes to the knowledge of processor platforms, hardware platforms, bus, and the Linux kernel, device driver modules running in kernel mode Linux system calls. The papers using S3C2440 microprocessor, using the the IIS bus and DMA technology, at the same time, using the system calls in the Linux kernel, file system and other related modules, prepared audio codec UDA1341TS driver. Then transplanted drive to the development board, and write the test program, using the NFS network file system running the test program. Select departure from the program of the embedded system, using the S3C2440 processor and the Linux operating system; hardware platform TQ2440 development platform, hardware schematics; under the Windows environment, the establishment of the connection to the host and the development board; using virtual machine VMware7. 0, build RHEL5.4 Linux operating system platform, and successfully transplanted a cross compiler arm-linux-gcc, prepare for driver development. Elaborate the audio codec UDA1341TS works and audio equipment common characteristics of the three kinds of bus, integrated design of the audio driver use DMA, the segment buffer and memory mapping techniques to improve system performance, to meet the audio real-time requirements. In the Linux kernel provides a framework of the OSS and ALSA two sound card driver. OSS driver framework contains dsp and mixer character device interface, programming file operations entirely in user space; the ALSA driver framework is the main line to the card and components, do not use a file in the user space interface using alsa-libs programming. Finally, through the kernel configuration and tailoring, transplant the ALSA driver system, and run the test program using the NFS file system, a successful trial.

Table of contents

Abstract 3-5 abstract 5-14 first chapter 14-18 1.1 research background 14 < br /> 1.2 issues of development in the world 14-15 1.3 OSS System Framework and ALSA framework 15-16 1.4 The main work and thesis chapters 16-18 1.4.1 The main work 16 1.4.2 of this chapter arrangements 16-18 Chapter II system design 18-30 2.1 embedded systems 18-22 the 2.1.1 embedded systems definition 18 the Embedded 2.1.2 system composition 18-20 the 2.1.3 embedded system development process 20 choice of processor 2.1.4 20-21 2.1. 5 operating system of choice 21-22 2.2 Linux kernel 22-29 2.2.1 Linux kernel features 22 2.2. 2 Linux kernel part of 22-24 2.2.3 Linux system call 24-25 2.2.4 Linux file system and device file system 25 -28 2.2.5 Linux kernel driver 28-29 2.3 Chapter Summary 29-30 Chapter Development Environment 30 - 40 3.1 hardware environment 30-34 3.1.1 Power Interface 32 3.1.2 I to 2S audio data interface 32-34 < br /> 3.1.3 GPIO interface 34 3.2 Windows platform development tools 34-36 3.2.1 JTAG interface to use 34-35 <br / > 3.2.2 download the Linux kernel and file system 35-36 3.2.3 Source Insight to view code 36 3.3 software environment 36-39 3.3.1 virtual machine VMware7.0 installation the RHEL5.4 system 37-38 3.3.2 cross compiler environment for 38 3.3.3 Linux kernel transplantation 38-39 3.4 Chapter Summary 39-40 Chapter of audio equipment and bus 40-64 the 4.1 codec chip UDA1341TS 40-45 4.1.1 chip Description 40-44 4.1.2 L3 bus introduced 44-45 4.2 audio device hardware interface 45-54 4.2.1 PCM interface 45 4.2.2 IIS interface 45-48 4.2.3 S3C2440 IIS interface 48-49 4.2.4 AC97 interface 49-53 of 4.2.5 S3C2440AC97 interface 53-54 4.3 DMA 54-62 4.3.1 DMA in the role of audio processing 55 4.3.2 S3C2440 DMA 55-57 4.3.3 apply and release the DMA channel 57-59 4.3.4 DMA application 59-62 4.4 Chapter Summary 62-64 Chapter Linux OSS audio device driver 64-72 5.1 OSS-driven composition 65-67 5.1.1 mixer interface 66 5.1.2 dsp interface 66-67 5.2 OSS The user space programming 67-71 5.2.1 DSP programming 67-69 5.2.2 mixer programming 69-71 5.3 Chapter Summary 71-72 Chapter Linux ALSA audio device driver 72-86 6.1 Card and component management 73-75 <br / 6.1.1 create card 74 6.1.2 create components 74 6.1.3 component release 74 6.1.4 chip-specific data (Chip-Specific Data) 74-75 the 6.1.5 Register / release sound card the 6.2 PCM device 75 75-79 6.2.1 PCM instance constructor structure nbsp 75-77 6.2.2 PCM information The run-time; 77-79 6.3 control interface; nbsp 79-82 6.3 .1 control () 79-81 6.3.2 info () 81 6.3.3 get () 81-82 6.3. put () function 82 6.3.5 tectonic control OF 6.3.6 update notification 82 6.4 AC97 API interface 82-84 6.5 Chapter Summary 84-86 Chapter VII of the transplantation test 86-92 the transplantation 7.1 sound card driver 86-89 < br /> 7.1.1 sound card driver transplantation; nbsp nbsp 86-88 7.1.2 establish NFS service; 7.1.3 Test 88 88-89 the 7.2 transplant ALSA 89-91 7.2.1 configure ALSA 89 7.2.2 ALSA audio library on ARM transplant 89-91 Chapter Summary 91-92 Chapter Summary and Outlook the 92-94 reference to the literature 94-96 appendix 96 - 103 Appendix 1 mixer.c of 96-100 Appendix 2 dsp.c of 100-103 Acknowledgements 103-104 studying degree during the published papers; nbsp 104

Related dissertations

  1. The Research and Design of Embedded Linux Based on ST-E9500
  2. Research of Embedded Linux Device Drivers Concurrency Control
    ZhangJiHong ·Chang'an University ·2013 ·Master's thesis
  3. Design of Digital Visual Intercom System
  4. Design and Implementation about ALSA Audio Driver Based on the ARM Platform
  5. Digital Photo Frame Design Based on ARM Platform
    FanMin ·University of North ·2014 ·Master's thesis
  6. Design of a High-Precision△-Σ ADC for Audio Codec
    LinLiZuo ·Zhejiang University ·2014 ·Master's thesis
  7. Design&Implementation of Web-based Embedded Data Acquisition System
    HanFei ·Shandong University of Technology ·2012 ·Master's thesis
  8. Design of a Intelligent Video Surveillance System Based on the ARM
    WuJun ·Wuhan University of Technology ·2012 ·Master's thesis
  9. Research and Implementation of Motion Detection and Tracking in Intelligent Surveillance System
    YuHaiBin ·Harbin Institute of Technology ·2013 ·Master's thesis
  10. Design and Development of DC Motor Speed Control System Based on ARM
    ShaoHui ·Northeastern University ·2011 ·Master's thesis
  11. The Research of the Control System of Intelligent Car
    HongYongXue ·University of North ·2013 ·Master's thesis
  12. Research and Implementation of Virtual Instruments Based on Embedded System
  13. The Application of Embedded System Based on S3C2410/LINUX in the Train Monitoring Device
  14. Application of Real Time Embedded System in Phased Array Radar
  15. Based on dual-core nuclear safety auxiliary Windows Terminal System Research and Implementation of Communication Module
  16. Based on S3C2410 embedded intelligent vehicle control system design
  17. Research on Embeded System for Data Acquisition
  18. Research and Development of Open CNC System Based on C#.NET
    SuXueMan ·Hefei University of Technology ·2007 ·Master's thesis
  19. Design of Radio Frequence Module Driver Based on S3C2440+Linux Platform
  20. Improvement for CBC Algorithm and Research on CBR Mode for AV3
    ZhangHuiFang ·Zhejiang University ·2008 ·Master's thesis