androd2.3 音乐、录音、拍照时出问题

平台:s5pc110

系统:android2.3

内核:linux2.6.35

1,内核错误信息

[100.781243] binder: 346:346 transaction failed 29189, size 64-0

[104.357601] binder: 346:346 transaction failed 29189, size 64-0

[109.888149] binder: 346:346 transaction failed 29189, size 64-0

………………

[133.231917] binder: 255:257 transaction failed 29189, size 84-0

[138.382724] binder: 430:430 transaction failed 29189, size 64-0

2,系统错误信息

--------- beginning of /dev/log/system

I/ActivityManager( 88): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.music/.MusicBrowserActivity } from pid 162

I/ActivityManager( 88): Starting: Intent { act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/artistalbum flg=0x4000000 cmp=com.android.music/.ArtistAlbumBrowserActivity (has extras) } from pid 344

--------- beginning of /dev/log/main

D/dalvikvm( 344): GC_EXTERNAL_ALLOC freed 487K, 52% free 2812K/5767K, external 1869K/2137K, paused 28ms

I/AudioService( 88): Remote Control registerMediaButtonEventReceiver() for ComponentInfo{com.android.music/com.android.music.MediaButtonIntentReceiver}

D/MediaPlaybackService( 344): restored queue, currently at position 0/244071 (requested 0)

I/ActivityManager( 88): Displayed com.android.music/.ArtistAlbumBrowserActivity: +377ms (total +399ms)

I/ActivityManager( 88): Starting: Intent { act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/track cmp=com.android.music/.TrackBrowserActivity (has extras) } from pid 344

E/MetadataRetrieverClient( 68): failed to extract an album art

E/MetadataRetrieverClient( 68): failed to extract an album art

I/ActivityManager( 88): Displayed com.android.music/.TrackBrowserActivity: +377ms

I/AudioService( 88): AudioFocus requestAudioFocus() from android.media.AudioManager@40591dc0com.android.music.MediaPlaybackService$3@4058cc78

I/AudioService( 88): Remote Control registerMediaButtonEventReceiver() for ComponentInfo{com.android.music/com.android.music.MediaButtonIntentReceiver}

D/AudioHardware( 68): AudioStreamOutALSA::setParameters() routing=4

D/AudioHardware( 68): AudioHardware pcm playback is exiting standby.

D/AudioHardware( 68): openPcmOut_l() mPcmOpenCnt: 0

I/DEBUG ( 65): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

I/DEBUG ( 65): Build fingerprint: 'generic/full_smdkc110/smdkc110:2.3.4/GRJ22/eng.root.20111013.194625:eng/test-keys'

I/DEBUG ( 65): pid: 68, tid: 85 >>> /system/bin/mediaserver <<<

I/DEBUG ( 65): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000002

I/DEBUG ( 65): r0 00000002 r1 403066f7 r2 ffffffff r3 00000002

I/DEBUG ( 65): r4 40306914 r5 00000002 r6 00000000 r7 40306664

I/DEBUG ( 65): r8 4030688c r9 00000002 10 00000001 fp 40306918

I/DEBUG ( 65): ip 00000073 sp 403065f8 lr afd1b03b pc afd14b8c cpsr 20000010

I/DEBUG ( 65): d0 4f6d63506d202928 d1 203a746e436e6570

I/DEBUG ( 65): d2 6e69746978652065 d3 62646e617473206e

I/DEBUG ( 65): d4 0000000000000000 d5 0000036100000000

I/DEBUG ( 65): d6 0000100044586bd8 d7 0000036100000000

I/DEBUG ( 65): d8 0000000000000000 d9 0000000000000000

I/DEBUG ( 65): d10 0000000000000000 d11 0000000000000000

I/DEBUG ( 65): d12 0000000000000000 d13 0000000000000000

………………

I/DEBUG ( 65): d28 0000000000000000 d29 0000000000000000

I/DEBUG ( 65): d30 0000000000000000 d31 0000000000000000

I/DEBUG ( 65): scr 80000010

I/DEBUG ( 65):

I/ActivityManager( 88): Starting: Intent { act=com.android.music.PLAYBACK_VIEWER flg=0x4000000 cmp=com.android.music/.MediaPlaybackActivity } from pid 344

I/DEBUG ( 65): #00 pc 00014b8c /system/lib/libc.so

I/DEBUG ( 65): #01 pc 0001b038 /system/lib/libc.so

I/DEBUG ( 65):

I/DEBUG ( 65): code around pc:

I/DEBUG ( 65): afd14b6c f01160da f7fffb81 bd10fcfb e2103003

I/DEBUG ( 65): afd14b7c e24dd008 f5d0f000 f5d0f020 0a000010

I/DEBUG ( 65): afd14b8c e5d03000 e3530000 12803001 158d3004

I/DEBUG ( 65): afd14b9c 13a03001 1a000006 ea00003f e2833001

I/DEBUG ( 65): afd14bac e0802003 e5521001 e3510000 0a00003d

I/DEBUG ( 65):

I/DEBUG ( 65): code around lr:

I/DEBUG ( 65): afd1b018 b910c014 a018f8dd 9906e00e 0a00ebc9

I/DEBUG ( 65): afd1b028 bfa8458a e007468a f8cd4648 f7f9c014

I/DEBUG ( 65): afd1b038 f8ddeda0 4682c014 f10d2000 465c0ef8

I/DEBUG ( 65): afd1b048 f80e4683 f8cd0c01 e14cb018 46d89709

I/DEBUG ( 65): afd1b058 f0469f07 e00c0610 7ff00000 0001ffd5

I/DEBUG ( 65):

I/DEBUG ( 65): stack:

I/DEBUG ( 65): 403065b8 fffffff7

I/DEBUG ( 65): 403065bc a970c1c9 /system/lib/libaudio.so

I/DEBUG ( 65): 403065c0 00000000

I/DEBUG ( 65): 403065c4 00000000

I/DEBUG ( 65): 403065c8 40306920

I/DEBUG ( 65): 403065cc afd1904f /system/lib/libc.so

I/DEBUG ( 65): 403065d0 40306894

I/DEBUG ( 65): 403065d4 403066c4

I/DEBUG ( 65): 403065d8 0000001d

I/DEBUG ( 65): 403065dc 403066c4

I/DEBUG ( 65): 403065e0 00000002

I/DEBUG ( 65): 403065e4 00000000

I/DEBUG ( 65): 403065e8 4030666c

I/DEBUG ( 65): 403065ec 40306894

I/DEBUG ( 65): 403065f0 df002777

I/DEBUG ( 65): 403065f4 e3a070ad

I/DEBUG ( 65): #00 403065f8 ffffffff

I/DEBUG ( 65): 403065fc afd1a86b /system/lib/libc.so

I/DEBUG ( 65): #01 40306600 40306d28

I/DEBUG ( 65): 40306604 afd1bb6d /system/lib/libc.so

I/DEBUG ( 65): 40306608 4030668c

I/DEBUG ( 65): 4030660c 403068b4

I/DEBUG ( 65): 40306610 0000002e

I/DEBUG ( 65): 40306614 00000073

I/DEBUG ( 65): 40306618 ffffffff

I/DEBUG ( 65): 4030661c 40306664

I/DEBUG ( 65): 40306620 4030669c

I/DEBUG ( 65): 40306624 a970c705 /system/lib/libaudio.so

I/DEBUG ( 65): 40306628 00000000

I/DEBUG ( 65): 4030662c 00000000

I/DEBUG ( 65): 40306630 00000014

I/DEBUG ( 65): 40306634 403066f7

I/DEBUG ( 65): 40306638 a970c6ef /system/lib/libaudio.so

I/DEBUG ( 65): 4030663c afd41504

I/DEBUG ( 65): 40306640 00000000

I/DEBUG ( 65): 40306644 afd41504

W/IMediaDeathNotifier( 344): media server died

E/MediaPlayer( 344): error (100, 0)

W/AudioSystem( 344): AudioFlinger server died!

W/MediaMetadataRetriever( 247): MediaMetadataRetriever server died!

W/IMediaDeathNotifier( 88): media server died

W/AudioSystem( 88): AudioPolicyService server died!

W/AudioSystem( 88): AudioFlinger server died!

I/ServiceManager( 62): service 'media.player' died

I/ServiceManager( 62): service 'media.audio_policy' died

I/ServiceManager( 62): service 'media.audio_flinger' died

I/ServiceManager( 62): service 'media.camera' died

W/AudioSystem( 156): AudioPolicyService server died!

W/AudioSystem( 156): AudioFlinger server died!

I/BootReceiver( 88): Copying /data/tombstones/tombstone_08 to DropBox (SYSTEM_TOMBSTONE)

I/ ( 396): ServiceManager: 0xad50

E/AudioHardware( 396): Can't load libsecril-client.so

D/AudioHardwareInterface( 396): setMode(NORMAL)

I/CameraService( 396): CameraService started (pid=396)

I/AudioFlinger( 396): AudioFlinger's thread 0xc720 ready to run

D/AudioHardware( 396): AudioStreamOutALSA::setParameters() routing=2

D/AudioHardware( 396): ### setVoiceVolume

[ 157.421296] binder: 344:344 transaction failed 29189, size 64-0

E/MediaPlayer( 344): Error (100,0)

D/dalvikvm( 344): GC_EXTERNAL_ALLOC freed 469K, 49% free 3041K/5959K, external 2760K/2768K, paused 28ms

I/ActivityManager( 88): Displayed com.android.music/.MediaPlaybackActivity: +1s412ms

3,问题分析:

内核打印消息可以看出,你们的audio codec没有正常被加载,dev目录下没有相应的audio节点生成:

信息如下:

[ 2.628470] failed to get resource vdd_5v_speaker
[ 2.633144] ALSA device list:
[ 2.636077] No soundcards found.

相应的代码在rt5625_probe()这个函数中,最后的regulator_get(NULL, "vdd_5v_speaker");失败,其中名字为vdd_5v_speaker的regulator是用于控制speaker的外部amp的,和硬件有关系,具体定义可以看的arch\arm\plat-setup-regulator.c这个文件

4,解决问题

内核里这个错误信息没有看到,想初始化成功了这点就不用管了。以后可得注意点

内样代码中sound\soc\codecs\rt5625.c中

把关于speaker_5v_regulator的东西都注释掉

#undefSPEAKER_T34H

#if SPEAKER_T34H

staticstruct regulator *speaker_5v_regulator;

#endif

…………

#if SPEAKER_T34H

speaker_5v_regulator = regulator_get(NULL, "vdd_5v_speaker");

if (IS_ERR(speaker_5v_regulator)) {

printk(KERN_ERR "failed to get resource %s\n", "vdd_5v_speaker");

return PTR_ERR(speaker_5v_regulator);

}

#endif

………………

#if SPEAKER_T34H

if (gSpeakerState == SPEAKER_ON)

regulator_disable(speaker_5v_regulator);

regulator_put(speaker_5v_regulator);

#endif

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值