Font Size: a A A

The Design Of Embedded WM8960 Audiodriver And Multi Thread Player

Posted on:2016-06-17Degree:MasterType:Thesis
Country:ChinaCandidate:L LiuFull Text:PDF
GTID:2308330503451171Subject:Microelectronics and Solid State Electronics
Abstract/Summary:PDF Full Text Request
In recent years, the embedded technology has developed rapidly. Communication technology is also excellent. Among the existing embedded technology products, audio data collection and processing technology are very important. The application of embedded audio system is widely. With the development of embedded audio technology, the development of mobile information terminal and other devices are also spurred.In this paper, our main work is to design the driver code of WM8960 audio codec chip and a multithreading MP3 player which is based on Madplay. We choose Tiny210 demoboard as the hardware platform. The core processor S5PV210 is a Cortex-A8 processor. The audio driver software architecture is based on ALSA. The compiler environment is Ubuntu system.This paper analyzed the datasheet and the circuit diagrams of the WM8960 audio codec chip and the research of the principle of the embedded operating system to design the audio driver program. The I2 S bus protocol was used to transmit audio data, and the I2 C bus protocol was used to transmit control signal. The relevant program code was written in C language on the Eclipse. The sampling frequency of the WM8960 audio chip driver was set to 44.1 kHz. The quantization digit of the voice acquisition was set to 16 bit.The main clock was 11.28 MHz and the frequency was divided to 256 parts. The compiled driver module was transplanted to the demoboard through the serial port debugging tool, and we tested and debugged of the program of driver by programming the capture and playback application.Through the use of interrupt handling system and poll mechanism, we designed the key device driver. We designed the test program to verify the correctness of the key driver program. By transplanting the Madplay software architecture and applying the knowledge of the multithreading communication, a simple multi-threaded MP3 player application has been designed. By combining the program of audio driver and the button driver with the player programming, we designed the MP3 player. The compiled executable file was loaded into the demoboard through the serial port debugging tool, and the player has been verified to work correctly.
Keywords/Search Tags:Cortex-A8, device driver, WM8960, ALSA, multi thread, player
PDF Full Text Request
Related items