AM335x(TQ335x)學(xué)習(xí)筆記——WM8960聲卡驅(qū)動(dòng)移植
作者:
時(shí)間:2016-11-28
來(lái)源:網(wǎng)絡(luò)
收藏
[0.331021]omap_i2c44e0b000.i2c:couldnotfindpctldevfornode/pinmux@44e10800/pinmux_i2c0_pins,deferringprobe[0.331059]platform44e0b000.i2c:Driveromap_i2crequestsprobedeferral[0.331115]omap_i2c4802a000.i2c:couldnotfindpctldevfornode/pinmux@44e10800/pinmux_i2c1_pins,deferringprobe[0.331139]platform4802a000.i2c:Driveromap_i2crequestsprobedeferral[0.332318]AdvancedLinuxSoundArchitectureDriverInitialized.[0.335684]Switchedtoclocksourcetimer1[0.486994]NET:Registeredprotocolfamily2[0.488860]TCPestablishedhashtableentries:4096(order:2,16384bytes)[0.489040]TCPbindhashtableentries:4096(order:5,147456bytes)[0.490403]TCP:Hashtablesconfigured(established4096bind4096)[0.490593]TCP:renoregistered[0.490617]UDPhashtableentries:256(order:2,20480bytes)[0.490807]UDP-Litehashtableentries:256(order:2,20480bytes)[0.491827]NET:Registeredprotocolfamily1[0.493704]RPC:RegisterednamedUNIXsockettransportmodule.[0.493729]RPC:Registeredudptransportmodule.[0.493738]RPC:Registeredtcptransportmodule.[0.493747]RPC:RegisteredtcpNFSv4.1backchanneltransportmodule.[0.495022]hwperfevents:enabledwitharmv7_cortex_a8PMUdriver,5countersavailable[0.499438]futexhashtableentries:256(order:2,16384bytes)[0.504727]VFS:Diskquotasdquot_6.5.2[0.504882]Dquot-cachehashtableentries:1024(order0,4096bytes)[0.507359]NFS:Registeringtheid_resolverkeytype[0.507727]Keytypeid_resolverregistered[0.507743]Keytypeid_legacyregistered[0.507886]jffs2:version2.2.(NAND)(SUMMARY)漏2001-2006RedHat,Inc.[0.508320]msgmnihasbeensetto977[0.513238]ioschedulernoopregistered[0.513269]ioschedulerdeadlineregistered[0.513341]ioschedulercfqregistered(default)[0.515815]pinctrl-single44e10800.pinmux:142pinsatpaf9e10800size568[0.520975]backlightsupplypowernotfound,usingdummyregulator[0.524309]Serial:8250/16550driver,4ports,IRQsharingenabled[0.530939]omap_uart44e09000.serial:nowakeirqforuart0[0.531575]44e09000.serial:ttyO0atMMIO0x44e09000(irq=88,base_baud=3000000)isaOMAPUART0[1.231857]console[ttyO0]enabled[1.241315]omap_rng48310000.rng:OMAPRandomNumberGeneratorver.20[1.248987][drm]Initializeddrm1.1.020060810[1.261218][drm]SupportsvblanktimestampcachingRev2(21.10.2013).[1.268316][drm]Nodriversupportforvblanktimestampquery.[1.320991]Console:switchingtocolourframebufferdevice100x30[1.332042]tilcdc4830e000.lcdc:fb0:framebufferdevice[1.337919]tilcdc4830e000.lcdc:registeredpanicnotifier[1.343814][drm]Initializedtilcdc1.0.020121205onminor0[1.380804]brd:moduleloaded[1.398539]loop:moduleloaded[1.404724]mtdoops:mtddevice(mtddev=name/number)mustbesupplied[1.414737]usbcore:registerednewinterfacedriverasix[1.420619]usbcore:registerednewinterfacedriverax88179_178a[1.427154]usbcore:registerednewinterfacedrivercdc_ether[1.433416]usbcore:registerednewinterfacedriversmsc95xx[1.439572]usbcore:registerednewinterfacedrivernet1080[1.445625]usbcore:registerednewinterfacedrivercdc_subset[1.451932]usbcore:registerednewinterfacedriverzaurus[1.457997]usbcore:registerednewinterfacedrivercdc_ncm[1.465136]usbcore:registerednewinterfacedrivercdc_wdm[1.471412]usbcore:registerednewinterfacedriverusb-storage[1.477942]usbcore:registerednewinterfacedriverusbtest[1.486105]mousedev:PS/2mousedevicecommonforallmice[1.496690]omap_rtc44e3e000.rtc:rtccore:registered44e3e000.rtcasrtc0[1.504827]i2c/deventriesdriver[1.508655]Driverfor1-wireDallasnetworkprotocol.[1.517293]omap_wdt:OMAPWatchdogTimerRev0x01:initialtimeout60sec[1.527282]omap_hsmmc48060000.mmc:unabletogetvmmcregulator-517[1.534612]platform48060000.mmc:Driveromap_hsmmcrequestsprobedeferral[1.544215]ledtrig-cpu:registeredtoindicateactivityonCPUs[1.551195]usbcore:registerednewinterfacedriverusbhid[1.557065]usbhid:USBHIDcoredriver[1.575960]davinci_evmsound:ASoC:CODEC(null)notregistered[1.582524]davinci_evmsound:snd_soc_register_cardfailed(-517)[1.589121]platformsound:Driverdavinci_evmrequestsprobedeferral[1.596830]oprofile:usingarm/armv7[1.601311]TCP:cubicregistered[1.604789]InitializingXFRMnetlinksocket[1.609445]NET:Registeredprotocolfamily17[1.614179]NET:Registeredprotocolfamily15[1.619196]Keytypedns_resolverregistered[1.623867]omap_voltage_late_init:Voltagedriversupportnotadded[1.630565]sr_dev_init:Novoltagedomainspecifiedforsmartreflex0.Cannotinitialize[1.639038]sr_dev_init:Novoltagedomainspecifiedforsmartreflex1.Cannotinitialize[1.648614]ThumbEECPUextensionsupported.[1.653130]RegisteringSWP/SWPBemulationhandler[1.658211]SmartReflexClass3initialized[1.667886]omap-gpmc50000000.gpmc:GPMCrevision6.0[1.674877]nand:devicefound,ManufacturerID:0xec,ChipID:0xd3[1.681647]nand:SamsungNAND1GiB3,3V8-bit[1.686312]nand:1024MiB,SLC,pagesize:2048,OOBsize:64[1.692312]nand:error:CONFIG_MTD_NAND_OMAP_BCHnotenabled[1.698428]omap2-nand:probeofomap2-nand.0failedwitherror-22[1.790962]tps659100-002d:Nointerruptsupport,nocoreIRQ[1.807488]vrtc:1800mV[1.810865]vrtc:suppliedbyvbat[1.818190]vio:at1500mV[1.821460]vio:suppliedbyvbat[1.828397]vdd_mpu:912<-->1312mVat1325mV[1.833532]vdd_mpu:suppliedbyvbat[1.840598]vdd_core:912<-->1150mVat1137mV[1.845924]vdd_core:suppliedbyvbat[1.852537]vdd3:5000mV[1.858001]vdig1:at1800mV[1.861420]vdig1:suppliedbyvbat[1.867904]vdig2:at1800mV[1.871302]vdig2:suppliedbyvbat[1.878529]vpll:at1800mV[1.881866]vpll:suppliedbyvbat[1.888426]vdac:at1800mV[1.891747]vdac:suppliedbyvbat[1.898169]vaux1:at1800mV[1.901568]vaux1:suppliedbyvbat[1.908027]vaux2:at3300mV[1.911421]vaux2:suppliedbyvbat[1.917833]vaux33:at3300mV[1.921323]vaux33:suppliedbyvbat[1.927806]vmmc:1800<-->3300mVat3300mV[1.932761]vmmc:suppliedbyvbat[1.938842]vbb:at3000mV[1.942302]vbb:suppliedbyvbat[1.949841]omap_i2c44e0b000.i2c:bus0rev0.11at400kHz[1.963667]omap_i2c4802a000.i2c:bus1rev0.11at100kHz[2.007363]wm89600-001a:Noplatformdatasupplied[2.084399]mmc0:hostdoesnotsupportreadingread-onlyswitch.assumingwrite-enable.[2.095817]mmc0:newhighspeedSDHCcardataddressaaaa[2.104312]mmcblk0:mmc0:aaaaSL16G14.8GiB[2.116665]mmcblk0:p1p2[2.131506]davinci_evmsound:wm8960-hifi<->4803c000.mcaspmappingok[2.215823]davinci_mdio4a101000.mdio:davincimdiorevision1.6[2.222212]davinci_mdio4a101000.mdio:detectedphymaskffffffde[2.232273]libphy:4a101000.mdio:probed[2.236597]davinci_mdio4a101000.mdio:phy[0]:device4a101000.mdio:00,driverunknown[2.244957]davinci_mdio4a101000.mdio:phy[5]:device4a101000.mdio:05,driverunknown[2.254567]cpsw4a100000.ethernet:DetectedMACID=c4:ed:ba:88:b5:e4[2.266507]input:gpio_keyad@0as/devices/gpio_keyad@0/input/input0[2.276227]omap_rtc44e3e000.rtc:settingsystemclockto2000-01-0100:00:00UTC(946684800)[2.285247]sr_init:NoPMIChooktoinitsmartreflex[2.290884]sr_init:platformdriverregisterfailedforSR[2.313832]lis3_reg:disabling[2.317496]ALSAdevicelist:[2.320598]#0:AM335x-EVM[2.434398]kjournaldstarting.Commitinterval5seconds[2.444085]EXT3-fs(mmcblk0p2):usinginternaljournal[2.452049]EXT3-fs(mmcblk0p2):recoverycomplete[2.457123]EXT3-fs(mmcblk0p2):mountedfilesystemwithordereddatamode[2.464445]VFS:Mountedroot(ext3filesystem)ondevice179:2.[2.474111]devtmpfs:mounted[2.478057]Freeingunusedkernelmemory:408K(c0859000-c08bf000)----------mountall..........----------Startingmdev......PleasepressEntertoactivatethisconsole.@tq335x# 從Log信息中很容易看到ALSA device list已經(jīng)出現(xiàn)了AM335x-EVM項(xiàng)。到這里TQ335x已經(jīng)能夠識(shí)別到聲卡了。本文引用地址:http://m.butianyuan.cn/article/201611/322823.htm6. 測(cè)試
測(cè)試ALSA聲卡驅(qū)動(dòng)的常用方法是移植alsa-lib和alsa-utils,使用alsa-utils提供的arecord來(lái)測(cè)試聲卡的錄音,aplay來(lái)測(cè)試播放。alsa-lib和alsa-utils的移植教程有很多,這里我就不多講了(如果有不明白這塊的可以留言)。
錄音測(cè)試:
播放測(cè)試:播放時(shí)就可以聽(tīng)到之前錄制的聲音的。7. 總結(jié)
調(diào)試聲卡驅(qū)動(dòng)大約進(jìn)行了三周,也算是略有心得。
(1) 必要的工具:我調(diào)試的時(shí)候手頭上工具不夠齊全。我是在家里調(diào)試的,沒(méi)有示波器,也就無(wú)法測(cè)量BCLK和LRCLK時(shí)鐘,調(diào)試了很久都不知道WM8960到底有沒(méi)有工作,因此,必要的工具可以有效的提高調(diào)試效率。
(2) 先調(diào)試放音,wm8960放音再調(diào)試錄音。放音可以很容易檢測(cè)效果,錄音則沒(méi)有方便的檢測(cè)手段。同時(shí),放音的配置比錄音要簡(jiǎn)單些,可以有效檢測(cè)驅(qū)動(dòng)部分是否存在問(wèn)題。
評(píng)論