AM335x(TQ335x)学习笔记——WM8960声卡驱动移植
时间:11-28
来源:互联网
点击:
(1) codec_dai_name = "wm8960-hifi" -->
(2) ops -->
(3) init -->
(4) dai_fmt -->
:
Step1. 修改sound/soc/codecs/Kconfig,添加wm8960编译选项,修改后的内容如下:
- configSND_SOC_WM8960
- tristate"WolfsonMicroelectronicsWM8960CODEC"
- dependsonI2C&&INPUT
执行指令:
- makeARCH=armCROSS_COMPILE=arm-linux-gnueabi-menuconfig
- DeviceDrivers--->
- <*>Soundcardsupport--->
- <*>AdvancedLinuxSoundArchitecture--->
- <*>ALSAforSoCaudiosupport--->
- <*>SoCAudioforTexasInstrumentschipsusingeDMA(AM33XX/43XX)
- -*-MultichannelAudioSerialPort(McASP)support
- <*>SoCAudiofortheAM33XXchipbasedboards
- CODECdrivers--->
- <*>WolfsonMicroelectronicsWM8960CODEC
- makeARCH=armCROSS_COMPILE=arm-linux-gnueabi--j8
5. 效果将编译后的内核文件zImage和tq335x.dtb文件拷贝SD卡并启动开发板,按任意键进入uboot命令模式,输入如下指令:
- loadmmc0:10x88000000/boot/tq335x.dtb
- loadmmc0:10x82000000/boot/zImage
- bootz0x82000000-0x88000000
- Startingkernel...
- [0.000000]BootingLinuxonphysicalCPU0x0
- [0.000000]Linuxversion3.17.2(lilianrong@smarter)(gccversion4.7.3(Ubuntu/Linaro4.7.3-12ubuntu1))#68SMPSatDec2000:03:09CST2014
- [0.000000]CPU:ARMv7Processor[413fc082]revision2(ARMv7),cr=10c5387d
- [0.000000]CPU:PIPT/VIPTnonaliasingdatacache,VIPTaliasinginstructioncache
- [0.000000]Machinemodel:TIAM335xEVM
- [0.000000]cma:Reserved16MiBat9e800000
- [0.000000]Memorypolicy:Datacachewriteback
- [0.000000]HighMemzone:1048574pagesexceedsfreesize0
- [0.000000]CPU:AllCPU(s)startedinSVCmode.
- [0.000000]AM335XES2.1(sgxneon)
- [0.000000]PERCPU:Embedded9pages/cpu@dfa99000s14336r8192d14336u36864
- [0.000000]Built1zonelistsinZoneorder,mobilitygroupingon.Totalpages:129792
- [0.000000]Kernelcommandline:console=ttyO0,115200n8root=/dev/mmcblk0p2rwrootfstype=ext3rootwait
- [0.000000]PIDhashtableentries:2048(order:1,8192bytes)
- [0.000000]Dentrycachehashtableentries:65536(order:6,262144bytes)
- [0.000000]Inode-cachehashtableentries:32768(order:5,131072bytes)
- [0.000000]Memory:484124K/523264Kavailable(6070Kkernelcode,666Krwdata,2444Krodata,410Kinit,8214Kbss,39140Kreserved,0Khighmem)
- [0.000000]Virtualkernelmemorylayout:
- [0.000000]vector:0xffff0000-0xffff1000(4kB)
- [0.000000]fixmap:0xffc00000-0xffe00000(2048kB)
- [0.000000]vmalloc:0xe0800000-0xff000000(488MB)
- [0.000000]lowmem:0xc0000000-0xe0000000(512MB)
- [0.000000]pkmap:0xbfe00000-0xc0000000(2MB)
- [0.000000]modules:0xbf000000-0xbfe00000(14MB)
- [0.000000].text:0xc0008000-0xc0858bc0(8515kB)
- [0.000000].init:0xc0859000-0xc08bf800(410kB)
- [0.000000].data:0xc08c0000-0xc0966b50(667kB)
- [0.000000].bss:0xc0966b50-0xc116c6e0(8215kB)
- [0.000000]HierarchicalRCUimplementation.
- [0.000000]RCUrestrictingCPUsfromNR_CPUS=2tonr_cpu_ids=1.
- [0.000000]RCU:Adjustinggeometryforrcu_fanout_leaf=16,nr_cpu_ids=1
- [0.000000]NR_IRQS:16nr_irqs:1616
- [0.000000]IRQ:FoundanINTCat0xfa200000(revision5.0)with128interrupts
- [0.000000]Totalof128interruptson1activecontroller
- [0.000000]OMAPclockeventsource:timer2at24000000Hz
- [0.000015]sched_clock:32bitsat24MHz,resolution41ns,wrapsevery178956969942ns
- [0.000061]OMAPclocksource:timer1at24000000Hz
- [0.000798]Console:colourdummydevice80x30
- [0.000849]Lockdependencyvalidator:Copyright(c)2006RedHat,Inc.,IngoMolnar
- [0.000858]...MAX_LOCKDEP_SUBCLASSES:8
- [0.000865]...MAX_LOCK_DEPTH:48
- [0.000873]...MAX_LOCKDEP_KEYS:8191
- [0.000880]...CLASSHASH_SIZE:4096
- [0.000887]...MAX_LOCKDEP_ENTRIES:32768
- [0.000894]...MAX_LOCKDEP_CHAINS:65536
- [0.000901]...CHAINHASH_SIZE:32768
- [0.000909]memoryusedbylockdependencyinfo:5167kB
- [0.000916]pertask-structmemoryfootprint:1152bytes
- [0.000956]Calibratingdelayloop...996.14BogoMIPS(lpj=4980736)
- [0.079039]pid_max:default:32768minimum:301
- [0.079431]SecurityFrameworkinitialized
- [0.079555]Mount-cachehashtableentries:1024(order:0,4096bytes)
- [0.079568]Mountpoint-cachehashtableentrie
AM335xTQ335xWM8960声卡驱动移 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)
