问题描述
- 移植wm8960声卡驱动,基于alsa框架,播放时出问题
-
这个启动内核时
[ 1.292527] ----wm8960_i2c_probe---
[ 1.295084] ---wm8960_register---
[ 1.810985] --s3c64xx_iis_dev_probe--
[ 1.811339] ---wm8960_probe---
[ 1.811388] GEC210 audio driver Playback mapping OK
[ 1.811516] playback = 1
[ 1.811541] capture = 1
[ 1.812051] GEC210 audio driver Capture mapping OK
[ 1.812182] playback = 1
[ 1.812488] capture = 1
[ 2.629128] ASoC: Failed to create HP-L/R debugfs file
[ 2.629178] ASoC: Failed to create Speaker-L/R debugfs file
[ 2.629406] ALSA device list:
[ 2.629435] #0: gec (WM8960)但是在播放时:
./mplayer gecmusic.mp3
MPlayer 1.0rc2-4.5.1 (C) 2000-2007 MPlayer Team
CPU: ARM正在播放 gecmusic.mp3。
检测到 Audio file 文件格式。
剪辑信息:
Title: 09 ?????
Artist: ???
Album: ?????????????? WIZOR+SRS
Year: 2010
Comment:
Track: 9Genre: Other
请求的音频编解码器族 mp3 不可用。
请在编译时启用它。
打开音频解码器: [ffmpeg] FFmpeg/libavcodec audio decoders
invalid new backstep 1006
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)已选音频编解码器: [ffmp3] afm: ffmpeg (FFmpeg MPEG layer-3 audio decoder)
[ 29.942517] GEC210 PSR=32 RFS=256 BFS=32
[ 29.942763] DmaAddr=@3fe60000 Total=131072bytes PrdSz=16384 #Prds=8 dma_area=0xff004000
[ 29.943235] GEC210 PSR=32 RFS=256 BFS=32
[ 29.943394] DmaAddr=@3fe60000 Total=131072bytes PrdSz=16384 #Prds=8 dma_area=0xff004000
[ 29.950284] GEC210 PSR=32 RFS=256 BFS=32
[ 29.953687] DmaAddr=@3fe60000 Total=131072bytes PrdSz=4096 #Prds=32 dma_area=0xff004000
[ 29.961894] GEC210 PSR=5 RFS=256 BFS=32
[ 29.965546] DmaAddr=@3fe60000 Total=131072bytes PrdSz=8192 #Prds=16 dma_area=0xff004000
[ 29.983618] s3c-pl330 s3c-pl330.2: Reset Channel-0 CS-20000f FTC-40000
[ 29.983690] s3c-pl330 s3c-pl330.2: pl330_submit_req:1282
[ 29.985161] s3c-pl330 s3c-pl330.2: s3c_pl330_submit:475!
[ 29.990476] s3c-pl330 s3c-pl330.2: pl330_submit_req:1282
[ 29.995733] s3c-pl330 s3c-pl330.2: s3c_pl330_submit:475!
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
视频: 没视频
开始播放...
invalid new backstep 1007
invalid new backstep 1007
invalid new backstep 1007
invalid new backstep 1007
invalid new backstep 1007
invalid new backstep 1007
invalid new backstep 1007
invalid new backstep 1007
invalid new backstep 1007
invalid new backstep 1006
invalid new backstep 1007
invalid new backstep 1007
invalid new backstep 1007
invalid new backstep 1007
invalid new backstep 1007(05:18.0) ??,?%
invalid new backstep 1007
A: 0.0 (00.0) of 318.0 (05:18.0) 4.0%
就不动了,
cat *.wav > /dev/dsp 时会出现:
cat 。。。。input/output error
在 dev 目录下有这几个节点:dsp mixer controlC0 pcmC0D0c pcmC0D0p
pcmC0D1c pcmC0D1p seq timer.