CubieBoard博客-HomeCubieTech公司网站

cubie.cc CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 2602|回复: 1

CC-A80内核编译后的声卡问题

[复制链接]

7

主题

0

好友

981

积分

高级会员

Rank: 4

贡献
195
金钱
363
威望
195
买家信用
卖家信用
积分
981
发表于 2016-9-18 17:13:23 |显示全部楼层
源码包是a80-sdk-lichee.git-v2.0.tar.gz, 内核配置文件是cb4-debian-server-hdmi-emmc-v1.0.img.7z中提取的/proc/config.gz,编译之后发现声卡不能工作,使用原版的内核就没有问题
$ aplay -vvv -f S24_LE aa.mp3  
Playing raw data 'aa.mp3' : Signed 24 bit Little Endian, Rate 8000 Hz, Mono
Hardware PCM card 0 'snddaudio' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S24_LE
  subformat    : STD
  channels     : 1
  rate         : 8000
  exact rate   : 8000 (8000/1)
  msbits       : 32
  buffer_size  : 4000
  period_size  : 1000
  period_time  : 125000
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 1000
  period_event : 0
  start_threshold  : 4000
  stop_threshold   : 4000
  silence_threshold: 0
  silence_size : 0
  boundary     : 2097152000
  appl_ptr     : 0
  hw_ptr       : 0
Max peak (1000 samples): 0x7d8c977b #################### 98%
Max peak (1000 samples): 0x7fcc0000 #################### 99%
Max peak (1000 samples): 0x7fcc0000 #################### 99%
Max peak (1000 samples): 0x7fcc0000 #################### 99%
Max peak (66 samples): 0x55555555 ##############       66%
aplay: pcm_write:1710: write error: Input/output error

查看硬件似乎也没有什么问题
$ ll /dev/snd/
total 0
crw------- 1 root root 116,  0 Jan  1  1970 controlC0
crw------- 1 root root 116, 32 Jan  1  1970 controlC1
crw------- 1 root root 116, 24 Jan  1  1970 pcmC0D0c
crw------- 1 root root 116, 16 Jan  1  1970 pcmC0D0p
crw------- 1 root root 116, 48 Jan  1  1970 pcmC1D0p
crw------- 1 root root 116, 33 Jan  1  1970 timer

$ ll /proc/asound/
total 0
dr-xr-xr-x 4 root root 0 Sep 18 09:08 card0
dr-xr-xr-x 3 root root 0 Sep 18 09:08 card1
-r--r--r-- 1 root root 0 Sep 18 09:08 cards
-r--r--r-- 1 root root 0 Sep 18 09:08 devices
-r--r--r-- 1 root root 0 Sep 18 09:08 pcm
lrwxrwxrwx 1 root root 5 Sep 18 09:08 snddaudio -> card0
lrwxrwxrwx 1 root root 5 Sep 18 09:08 sndhdmi -> card1
-r--r--r-- 1 root root 0 Sep 18 09:08 timers
-r--r--r-- 1 root root 0 Sep 18 09:08 version

回复

使用道具 举报

7

主题

0

好友

981

积分

高级会员

Rank: 4

贡献
195
金钱
363
威望
195
买家信用
卖家信用
积分
981
发表于 2016-9-20 12:23:36 |显示全部楼层
今天测试发现一个trace
$ speaker-test -t wav
[ 7900.045272] Unable to handle kernel paging request at virtual address f8128000
[ 7900.053365] pgd = ee7e8000
[ 7900.056401] [f8128000] *pgd=4f7fb841, *pte=00000000, *ppte=00000000
[ 7900.063419] Internal error: Oops: 827 [#1] PREEMPT SMP ARM
[ 7900.069535] Modules linked in: cifs joydev sunxi_gmac fuse autofs4
[ 7900.076474] CPU: 5    Not tainted  (3.4.39 #19)
[ 7900.081535] PC is at __memzero+0x24/0x80
[ 7900.085908] LR is at 0x0
[ 7900.088731] pc : [<c0194744>]    lr : [<00000000>]    psr: 20030013
[ 7900.088736] sp : ee6a3e24  ip : 00000000  fp : ee6a3e4c
[ 7900.101541] r10: 00000000  r9 : 00008000  r8 : 00008000
[ 7900.107368] r7 : 00008000  r6 : f8127000  r5 : 00020fc0  r4 : ef2f2c00
[ 7900.114647] r3 : 00000000  r2 : 00000000  r1 : 0000efc0  r0 : f8128000
[ 7900.121929] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[ 7900.129888] Control: 10c5387d  Table: 4e7e806a  DAC: 00000015

[ 7900.136297] PC: 0xc01946c4:
[ 7900.141060] 46c4  e3120004 14801004 e3120002 14c01001 14c01001 e3120001 14c01001 e1a0f00e
[ 7900.150244] 46e4  e320f000 e320f000 e320f000 e320f000 e320f000 e320f000 e320f000 00000000
[ 7900.159428] 4704  e2511004 ba00001d e3530002 b4c02001 d4c02001 e4c02001 e0811003 e3a02000
[ 7900.168612] 4724  e2103003 1afffff5 e3510010 ba00000f e52de004 e1a0c002 e1a0e002 e2511040
[ 7900.177796] 4744  a8a0500c a8a0500c a8a0500c a8a0500c cafffff9 08bd8000 e3110020 18a0500c
[ 7900.186980] 4764  18a0500c e3110010 18a0500c e49de004 e3110008 18a0000c e3110004 14802004
[ 7900.196163] 4784  e3110002 14c02001 14c02001 e3110001 14c02001 e1a0f00e e320f000 e0010192
[ 7900.205346] 47a4  e0211390 e1a0c820 e1a03822 e1c0080c e1c22803 e0211c93 e0030390 e0000092

[ 7900.214533] SP: 0xee6a3da4:
[ 7900.219296] 3da4  ee6a3ed0 ee6a3dd4 ee6a3db8 c00e8728 c003adf4 c0194744 20030013 ffffffff
[ 7900.228478] 3dc4  ee6a3e0c ee6a3e4c ee6a3dd8 c000f758 c000a188 f8128000 0000efc0 00000000
[ 7900.237662] 3de4  00000000 ef2f2c00 00020fc0 f8127000 00008000 00008000 00008000 00000000
[ 7900.246846] 3e04  ee6a3e4c 00000000 ee6a3e24 00000000 c0194744 20030013 ffffffff 00000000
[ 7900.256029] 3e24  c02dad54 ef386a00 ee0ccb40 ef2f2c00 ef386a00 00008000 00000000 ee6a3e9c
[ 7900.265212] 3e44  ee6a3e50 c02dc348 c02dacec 00008000 b6fc2000 00008000 00000000 00020fc0
[ 7900.274395] 3e64  ef386ab8 ee6a3f70 00038000 ee6a3f70 00000003 be9d086c ee0ccb40 00000000
[ 7900.283578] 3e84  c000fda8 ee6a2000 00000000 ee6a3ebc ee6a3ea0 c02dc56c c02dc1c8 c02dace0

[ 7900.292764] FP: 0xee6a3dcc:
[ 7900.297527] 3dcc  ee6a3dd8 c000f758 c000a188 f8128000 0000efc0 00000000 00000000 ef2f2c00
[ 7900.306710] 3dec  00020fc0 f8127000 00008000 00008000 00008000 00000000 ee6a3e4c 00000000
[ 7900.315893] 3e0c  ee6a3e24 00000000 c0194744 20030013 ffffffff 00000000 c02dad54 ef386a00
[ 7900.325076] 3e2c  ee0ccb40 ef2f2c00 ef386a00 00008000 00000000 ee6a3e9c ee6a3e50 c02dc348
[ 7900.334260] 3e4c  c02dacec 00008000 b6fc2000 00008000 00000000 00020fc0 ef386ab8 ee6a3f70
[ 7900.343442] 3e6c  00038000 ee6a3f70 00000003 be9d086c ee0ccb40 00000000 c000fda8 ee6a2000
[ 7900.352625] 3e8c  00000000 ee6a3ebc ee6a3ea0 c02dc56c c02dc1c8 c02dace0 00000004 c000fda8
[ 7900.361808] 3eac  ef386a00 ee6a3ef4 ee6a3ec0 c02d8d80 c02dc52c ee226400 00000000 00020fc0

[ 7900.370994] R0: 0xf8127f80:
[ 7900.375756] 7f80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 7900.384940] 7fa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 7900.394123] 7fc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 7900.403307] 7fe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 7900.412490] 8000  ******** ******** ******** ******** ******** ******** ******** ********
[ 7900.421683] 8020  ******** ******** ******** ******** ******** ******** ******** ********
[ 7900.430874] 8040  ******** ******** ******** ******** ******** ******** ******** ********
[ 7900.440065] 8060  ******** ******** ******** ******** ******** ******** ******** ********

[ 7900.449258] R4: 0xef2f2b80:
[ 7900.454020] 2b80  00000000 00000001 00000000 ffffffff ffffffff c05c5204 ef2f2b98 ef2f2b98
[ 7900.463203] 2ba0  00000000 ef2f2ba4 ef2f2ba4 00000000 00000000 00000000 00000001 00000000
[ 7900.472385] 2bc0  00000000 ef2f2bc4 ef2f2bc4 00000000 ef2f2bd0 ef2f2bd0 ee2576c0 c00382cc
[ 7900.481568] 2be0  00000000 00000000 00000020 00000000 0000c350 0000c350 00000000 00000000
[ 7900.490750] 2c00  00000000 00000000 00000000 00000000 00038000 00000000 00000000 00000000
[ 7900.499932] 2c20  00000000 00000000 00000003 00000002 00000000 0000bb80 00000001 00008000
[ 7900.509115] 2c40  00000008 00040000 00000001 00000002 00000010 00000010 000d0103 0000bb80
[ 7900.518297] 2c60  00000001 00000000 00000000 00000001 00040000 00040000 00000000 00000000

[ 7900.527483] R6: 0xf8126f80:
[ 7900.532246] 6f80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 7900.541429] 6fa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 7900.550613] 6fc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 7900.559796] 6fe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 7900.568979] 7000  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 7900.578163] 7020  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 7900.587346] 7040  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 7900.596529] 7060  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 7900.605715] Process speaker-test (pid: 1681, stack limit = 0xee6a22f8)
[ 7900.612995] Stack: (0xee6a3e24 to 0xee6a4000)
[ 7900.617856] 3e20:          c02dad54 ef386a00 ee0ccb40 ef2f2c00 ef386a00 00008000 00000000
[ 7900.626981] 3e40: ee6a3e9c ee6a3e50 c02dc348 c02dacec 00008000 b6fc2000 00008000 00000000
[ 7900.636106] 3e60: 00020fc0 ef386ab8 ee6a3f70 00038000 ee6a3f70 00000003 be9d086c ee0ccb40
[ 7900.645231] 3e80: 00000000 c000fda8 ee6a2000 00000000 ee6a3ebc ee6a3ea0 c02dc56c c02dc1c8
[ 7900.654356] 3ea0: c02dace0 00000004 c000fda8 ef386a00 ee6a3ef4 ee6a3ec0 c02d8d80 c02dc52c
[ 7900.663480] 3ec0: ee226400 00000000 00020fc0 00008000 0002002c ef0a8668 be9d086c ee0ccb40
[ 7900.672605] 3ee0: 00000004 c000fda8 ee6a3f04 ee6a3ef8 c02d90dc c02d8cc0 ee6a3f7c ee6a3f08
[ 7900.681729] 3f00: c00e270c c02d90b8 00000000 00000000 ee6a3f5c 00001000 ee7be788 00000001
[ 7900.690853] 3f20: eef60310 00000000 00000000 00000000 ee6a3f6c ee6a3f40 c00d3008 c0105dd0
[ 7900.699978] 3f40: 00000000 00000000 00000001 ee7be780 b6fc1000 00001000 ee0ccb40 be9d086c
[ 7900.709102] 3f60: 400c4150 00000004 c000fda8 ee6a2000 ee6a3fa4 ee6a3f80 c00e27c0 c00e21c0
[ 7900.718227] 3f80: ee6a3fac 00000000 00020b08 00020bf0 00020fc0 00000036 00000000 ee6a3fa8
[ 7900.727352] 3fa0: c000fc00 c00e278c 00020b08 00020bf0 00000004 400c4150 be9d086c be9d086c
[ 7900.736477] 3fc0: 00020b08 00020bf0 00020fc0 00000036 00000000 00015194 00000000 00015194
[ 7900.745601] 3fe0: b6f2a42c be9d0864 b6ecfc73 b6df7206 60030030 00000004 2101ebb8 46204602
[ 7900.754721] Backtrace:
[ 7900.757466] [<c02dace0>] (snd_pcm_lib_write_transfer+0x0/0xe0) from [<c02dc348>] (snd_pcm_lib_write1+0x18c/0x2fc)
[ 7900.768913]  r7:00000000 r6:00008000 r5:ef386a00 r4:ef2f2c00
[ 7900.775261] [<c02dc1bc>] (snd_pcm_lib_write1+0x0/0x2fc) from [<c02dc56c>] (snd_pcm_lib_write+0x4c/0x6c)
[ 7900.785747] [<c02dc520>] (snd_pcm_lib_write+0x0/0x6c) from [<c02d8d80>] (snd_pcm_playback_ioctl1+0xcc/0x3f8)
[ 7900.796709]  r4:ef386a00
[ 7900.799544] [<c02d8cb4>] (snd_pcm_playback_ioctl1+0x0/0x3f8) from [<c02d90dc>] (snd_pcm_playback_ioctl+0x30/0x3c)
[ 7900.810991]  r8:c000fda8 r7:00000004 r6:ee0ccb40 r5:be9d086c r4:ef0a8668
[ 7900.818511] [<c02d90ac>] (snd_pcm_playback_ioctl+0x0/0x3c) from [<c00e270c>] (do_vfs_ioctl+0x558/0x5cc)
[ 7900.828996] [<c00e21b4>] (do_vfs_ioctl+0x0/0x5cc) from [<c00e27c0>] (sys_ioctl+0x40/0x64)
[ 7900.838118]  r9:ee6a2000 r8:c000fda8 r7:00000004 r6:400c4150 r5:be9d086c
[ 7900.845425] r4:ee0ccb40
[ 7900.848366] [<c00e2780>] (sys_ioctl+0x0/0x64) from [<c000fc00>] (ret_fast_syscall+0x0/0x30)
[ 7900.857681]  r7:00000036 r6:00020fc0 r5:00020bf0 r4:00020b08
[ 7900.864024] Code: e52de004 e1a0c002 e1a0e002 e2511040 (a8a0500c)
[ 7900.870934] ---[ end trace 44f25adcc5698e4d ]---
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

QQ|Archiver|手机版|邮件群发|cubie.cc---深刻的嵌入式技术和应用讨论中文社区 ( 粤ICP备13051116号-1  

GMT+8, 2020-3-29 05:17 , Processed in 0.015153 second(s), 6 queries , Apc On.

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc. | Style by Coxxs

回顶部