基于ARM平臺(tái)ALSA音頻驅(qū)動(dòng)的設(shè)計(jì)與實(shí)現(xiàn)
本文關(guān)鍵詞:基于ARM平臺(tái)ALSA音頻驅(qū)動(dòng)的設(shè)計(jì)與實(shí)現(xiàn) 出處:《中國(guó)地質(zhì)大學(xué)(北京)》2013年碩士論文 論文類(lèi)型:學(xué)位論文
更多相關(guān)文章: ALSA 音頻芯片 聲卡 linux操作系統(tǒng) 設(shè)備驅(qū)動(dòng)
【摘要】:本論文的主要內(nèi)容是為一款音頻編解碼芯片編寫(xiě)ALSA音頻驅(qū)動(dòng),實(shí)現(xiàn)對(duì)其音頻流的控制,硬件平臺(tái)依附于ARM9體系結(jié)構(gòu)的三星2440CPU加上我們的音頻編解碼芯片。 論文中對(duì)我們項(xiàng)目中整個(gè)的開(kāi)發(fā)流程進(jìn)行了介紹,首先介紹了一般嵌入式開(kāi)發(fā)的大概流程及相關(guān)概念,其中介紹了本論文中所用到的相關(guān)硬件平臺(tái),主要是ARM體系架構(gòu);軟件操作系統(tǒng)選用linux2.6.32,并且分析了linux系統(tǒng)的一系列相關(guān)內(nèi)容,并且說(shuō)明了開(kāi)發(fā)平臺(tái)、調(diào)試環(huán)境的搭建。隨后就對(duì)我所做的ALSA驅(qū)動(dòng)展開(kāi)論述,從音頻相關(guān)的概念主要是音頻接口規(guī)范I2S開(kāi)始論述,然后是ALSA的架構(gòu)分析,最后寫(xiě)了ALSA驅(qū)動(dòng)的實(shí)現(xiàn)流程,這部分分為三個(gè)重點(diǎn)部分:解碼器、平臺(tái)和機(jī)器三部分,實(shí)現(xiàn)了這部分就把ALSA的大體結(jié)構(gòu)搭建好,然后就是聲卡的具體抽象過(guò)程,創(chuàng)建CARD及組件,其中涉及到我們所選用音頻芯片的很多寄存器的操作,這樣我們的ALSA音頻驅(qū)動(dòng)就編寫(xiě)完成。 隨后是將我們驅(qū)動(dòng)編譯進(jìn)內(nèi)核中并且通過(guò)TFTP將UImage放在開(kāi)發(fā)板上,其中的文件系統(tǒng)選用了已經(jīng)做好的ramdisk,同理應(yīng)用程序可執(zhí)行文件也是通過(guò)網(wǎng)絡(luò)傳輸。 最后是關(guān)于論文中驅(qū)動(dòng)的測(cè)試環(huán)節(jié),從應(yīng)用層調(diào)用ALSA驅(qū)動(dòng)操作硬件需要使用中間的ALSALib層,,這就是alsa的作用,提供統(tǒng)一的接口使不同的音頻芯片可以在不同的平臺(tái)使用而不需要從新編寫(xiě)驅(qū)動(dòng)代碼。測(cè)試驅(qū)動(dòng)接口需要調(diào)用ALSAutiles工具,其中編譯好后會(huì)有aplay、amixer等測(cè)試可執(zhí)行文件,這樣我們可以設(shè)置不同的參數(shù)來(lái)完成不同的聲卡操作功能及調(diào)用驅(qū)動(dòng)的不同接口,這樣就可以測(cè)試我為音頻芯片所編寫(xiě)驅(qū)動(dòng)成功與否或是有什么BUG。測(cè)試結(jié)果顯示聲卡驅(qū)動(dòng)接口調(diào)用成功,并且功能實(shí)現(xiàn)正常,達(dá)到為音頻芯片提供ALSA的支持。
[Abstract]:The main content of this paper is to compile ALSA audio driver for an audio codec chip, and realize the control of its audio stream. The hardware platform is attached to the Samsung 2440CPU of the ARM9 architecture, plus our audio codec chip.
The entire development process of our project are introduced in this paper, first introduces the general embedded development about process and related concepts, introduced the related hardware platform are used in this thesis, mainly ARM architecture; software use linux2.6.32 operating system, and analyzes a series of related content of the Linux system, and the development platform, debugging environment. Then done on my ALSA drive are discussed from the concept of audio related audio interface specification I2S is mainly discussed, and then analysis the architecture of ALSA, finally write the process to achieve the ALSA driver, this part is divided into three parts: key decoder platform the three part is realized and the machine, this part put the general structure of ALSA structures, and then the abstraction process is sound, and create a CARD component, which relates to what we choose A lot of registers are operated on the audio chip so that our ALSA audio driver is written.
Then we compile our driver into the kernel, and put the UImage on the development board through TFTP. The file system selects the ramdisk that has been completed. Similarly, the application executable is also transmitted through the network.
The last part is about the drive link test, ALSALib need to use the middle layer from the application layer to call the ALSA driver to operate the hardware, this is alsa, to provide a unified interface to different audio chip in platform using different and do not need to write driver code. The test driver interface need to call the ALSAutiles tool. There will be aplay compiled amixer test executable file, so we can set different parameters to achieve different interface function and sound card operation call a different driver, so I can get my test audio chip prepared by driving the success or a sound card driver successfully what BUG. test results show that the and normal function, to provide ALSA support for audio chip.
【學(xué)位授予單位】:中國(guó)地質(zhì)大學(xué)(北京)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2013
【分類(lèi)號(hào)】:TN912.3;TP368.1
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 何立民;嵌入式系統(tǒng)的定義與發(fā)展歷史[J];單片機(jī)與嵌入式系統(tǒng)應(yīng)用;2004年01期
2 陳健;AAC:21世紀(jì)音頻編碼的主流[J];電聲技術(shù);2002年09期
3 黃春明,陳常謙;心理聲學(xué)模型及其在MPEG-2AAC中的應(yīng)用[J];電聲技術(shù);2004年11期
4 徐睿,李斐,王申康;基于IIS總線的嵌入式音頻系統(tǒng)設(shè)計(jì)[J];電子技術(shù)應(yīng)用;2004年04期
5 高建華;王殊;;基于S3C2410型微處理器和UDA1341型立體聲音頻編解碼器的嵌入式音頻系統(tǒng)設(shè)計(jì)[J];國(guó)外電子元器件;2006年06期
6 薛英智,顧力栩,周正華,唐心悅;AAC解碼器的Huffman算法選擇和優(yōu)化[J];計(jì)算機(jī)工程;2004年S1期
7 譚建國(guó),關(guān)紅濤;MPEG-4AAC音頻編碼綜述[J];計(jì)算機(jī)工程;2005年10期
8 楊海清;周安棟;羅勇;陳牧;;嵌入式系統(tǒng)實(shí)時(shí)網(wǎng)絡(luò)通信中的LCD顯示設(shè)計(jì)方法[J];計(jì)算機(jī)與數(shù)字工程;2010年02期
9 陳鑫;嵌入式軟件技術(shù)的現(xiàn)狀與發(fā)展動(dòng)向[J];軟件世界;2001年01期
10 趙麗鮮;蘇鴻根;;MPEG-4視頻編解碼器設(shè)計(jì)實(shí)現(xiàn)與性能優(yōu)化[J];計(jì)算機(jī)工程與設(shè)計(jì);2009年12期
相關(guān)碩士學(xué)位論文 前2條
1 陳慧;基于Linux的多通道MPEG-2/4編解碼器的設(shè)計(jì)[D];華中科技大學(xué);2005年
2 李嘉昕;基于軟硬件協(xié)同設(shè)計(jì)的AAC解碼器開(kāi)發(fā)與實(shí)現(xiàn)[D];電子科技大學(xué);2009年
本文編號(hào):1421587
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1421587.html