摘要
搭载Wi-Fi的音频设备是物联网和智能家庭应用中的一大热点,音频驱动则是该系统的一个设计难点。本文针对Wi-Fi片上系统(SoC)AR9331和音频芯片WM8904组成的硬件平台,设计了基于ALSA架构的嵌入式Linux音频驱动程序,采用模块化的程序架构提高了驱动的可移植性,通过适配PCM接口减少了驱动代码量,设计环形DMA缓冲区提高了系统的实时性能。实际应用表明,该音频系统性能稳定,最高支持"96 kHz/24-bit/双声道"音频播放,具有良好的实时性。
Audio devices integrated with Wi-Fi module is a hot spot in the field of Internet of Things and smart home, while audio driver is a difficulty. This hardware system is composed of Wi-Fi System on Chip(So C) AR9331 and audio chip WM8904. An embedded Linux audio driver based on Advanced Linux Sound Architecture(ALSA) was designed. A modular programming architecture was adopted to enhance the portability of the driver. The amount of code was reduced via accessing Pulse-code modulation(PCM) interface. A DMA ring buffer technology was designed to improve the real time processing of this system. Practical application showed that the audio driver ran stably on the platform and supported up to "96KHz/24-bit/Stereo" audio playback with good performance of real time.
出处
《电子设计工程》
2016年第21期95-97,100,共4页
Electronic Design Engineering
基金
国家发改委2013年移动互联网及第四代移动通信(TD-LTE)产业化专项