Hello. I have weird stuff going. I built android (1.5 i believe) with ALSA. If I use this kernel with normal filesystem(so that Android does not take over sound device), I can run aplay and play wavs. But when Android loads, media service dies repetitively. From time to time i can hear weird blips. I am kinda stuck, as I cannot figure out what is the problem and how to fix it. Any help appreciated.
Here's a piece of log: I/ActivityManager( 627): Stopping service: com.android.providers.media/.MediaScannerService D/InputManagerService( 627): hide the small icon for the input method I/ARMAssembler( 627): generated scanline__00000077:03515104_00000001_00000000 [ 46 ipp] (65 ins) at [0x16c668:0x16c76c] in 244141 ns I/DEBUG ( 572): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 572): Build fingerprint: 'generic/generic/generic/:1.5/ MAIN/eng.kai.20090210.042022:eng/test-keys' I/DEBUG ( 572): pid: 575, tid: 592 >>> /system/bin/mediaserver <<< I/DEBUG ( 572): signal 11 (SIGSEGV), fault addr 0002c000 I/DEBUG ( 572): r0 00000000 r1 4020adb8 r2 00000000 r3 00000000 I/DEBUG ( 572): r4 0002c004 r5 4020ad40 r6 00000000 r7 00000001 I/DEBUG ( 572): r8 0001e490 r9 0001e4c8 10 00000007 fp 00000000 I/DEBUG ( 572): ip 00007fff sp 4020ad08 lr 00000000 pc ab00c36c cpsr 80000010 I/DEBUG ( 572): #00 pc 0000c36c /system/lib/ libaudioflinger.so I/DEBUG ( 572): #01 pc 0000c6a4 /system/lib/ libaudioflinger.so I/DEBUG ( 572): #02 pc 0000c058 /system/lib/ libaudioflinger.so I/DEBUG ( 572): #03 pc 00013df6 /system/lib/ libaudioflinger.so I/DEBUG ( 572): #04 pc 00028a20 /system/lib/libutils.so I/DEBUG ( 572): #05 pc 000287fc /system/lib/libutils.so I/DEBUG ( 572): #06 pc 0000f96c /system/lib/libc.so I/DEBUG ( 572): #07 pc 0000f4e0 /system/lib/libc.so I/DEBUG ( 572): stack: I/DEBUG ( 572): 4020acc8 00000000 I/DEBUG ( 572): 4020accc a9d2841b /system/lib/libutils.so I/DEBUG ( 572): 4020acd0 00022da0 [heap] I/DEBUG ( 572): 4020acd4 4050b000 I/DEBUG ( 572): 4020acd8 00022da0 [heap] I/DEBUG ( 572): 4020acdc ab010c09 /system/lib/ libaudioflinger.so I/DEBUG ( 572): 4020ace0 00022dd9 [heap] I/DEBUG ( 572): 4020ace4 ab010cb1 /system/lib/ libaudioflinger.so /DEBUG ( 572): 4020ad54 00000000 I/DEBUG ( 572): 4020adb4 00000010 [...] I/DEBUG ( 572): 4020adb8 00000000 I/DEBUG ( 572): 4020adbc 00000000 I/DEBUG ( 572): 4020adc0 0001e490 [heap] I/DEBUG ( 572): 4020adc4 000002cc I/DEBUG ( 572): 4020adc8 00000001 I/DEBUG ( 572): 4020adcc 00000000 I/DEBUG ( 572): 4020add0 ab017c08 I/DEBUG ( 572): 4020add4 ab00c6a8 /system/lib/ libaudioflinger.so I/DEBUG ( 572): #01 4020add8 00002d8c I/DEBUG ( 572): 4020addc 00021880 [heap] I/DEBUG ( 572): 4020ade0 00000001 I/DEBUG ( 572): 4020ade4 00000000 I/DEBUG ( 572): 4020ade8 00000000 I/DEBUG ( 572): 4020adec 00000000 I/DEBUG ( 572): 4020adf0 00022df8 [heap] I/DEBUG ( 572): 4020adf4 00000082 I/DEBUG ( 572): 4020adf8 00000001 I/DEBUG ( 572): 4020adfc 00000001 I/DEBUG ( 572): 4020ae00 0000ad1c [heap] I/DEBUG ( 572): 4020ae04 bec3ab14 [stack] I/DEBUG ( 572): 4020ae08 afe37dd0 I/DEBUG ( 572): 4020ae0c a9d28795 /system/lib/libutils.so I/DEBUG ( 572): 4020ae10 00000001 I/DEBUG ( 572): 4020ae14 ab00c05c /system/lib/ libaudioflinger.so I/ServiceManager( 569): service 'media.audio_flinger' died W/MediaPlayer( 627): MediaPlayer server died! I/ServiceManager( 569): service 'media.player' died I/ServiceManager( 569): service 'media.camera' died W/AudioSystem( 627): AudioFlinger server died! I/ ( 800): ServiceManager: 0xabe0 D/AudioHardwareALSA( 800): mixer initialized. I/AudioHardwareALSA( 800): Initialized ALSA PLAYBACK device AndroidPlayback D/AudioHardwareALSA( 800): Set PLAYBACK PCM format to S16_LE (Signed 16 bit Little Endian) D/AudioHardwareALSA( 800): Using 2 channels for PLAYBACK. D/AudioHardwareALSA( 800): Set PLAYBACK sample rate to 44100 HZ I/AudioHardwareALSA( 800): Initialized ALSA PLAYBACK device AndroidPlayback_Speaker_normal D/AudioHardwareALSA( 800): Set PLAYBACK PCM format to S16_LE (Signed 16 bit Little Endian) D/AudioHardwareALSA( 800): Using 2 channels for PLAYBACK. D/AudioHardwareALSA( 800): Set PLAYBACK sample rate to 44100 HZ I/AudioFlinger( 800): AudioFlinger's main thread ready to run. Here's my asound.conf: # Android ALSA configuration file for OMAP2430SDP using the TWL4030 audio. ## ## Mixer Devices ## ctl.AndroidPlayback { type hw card TWL4030 } ctl.AndroidRecord { type hw card TWL4030 } ## ## Playback Devices ## pcm.AndroidPlayback { type hooks slave.pcm { type hw card TWL4030 device 0 # Must be of type "digital audio playback" } hooks.0 { type ctl_elems hook_args [ # Enable audio output from the DSP { name "Hands-free Playback Switch" lock false preserve true optional false value true } { name "T2 Master codec Sample Rate" lock false preserve true optional true value 48000 } { name "Playback Source" lock false preserve true optional false # Values are: # 0 - 'Stereo Headset' # 1 - 'Hands-free (Speakers)' # 2 - 'Mono Handset' # 3 'USB CarKit' value 'Hands-free (Speakers)' } ] } } pcm.AndroidPlayback_Speaker { type hooks slave.pcm { type hw card TWL4030 device 0 # Must be of type "digital audio playback" } hooks.0 { type ctl_elems hook_args [ # Enable audio output from the DSP { name "Hands-free Playback Switch" lock false preserve true optional false value true } { name "T2 Master codec Sample Rate" lock false preserve true optional true value 48000 } { name "Playback Source" lock false preserve true optional false # Values are: # 0 - 'Stereo Headset' # 1 - 'Hands-free (Speakers)' # 2 - 'Mono Handset' # 3 'USB CarKit' value 'Hands-free (Speakers)' } ] } } pcm.AndroidPlayback_Speaker_normal { type hooks slave.pcm { type hw card TWL4030 device 0 # Must be of type "digital audio playback" } hooks.0 { type ctl_elems hook_args [ # Enable audio output from the DSP { name "Hands-free Playback Switch" lock false preserve true optional false value true } { name "T2 Master codec Sample Rate" lock false preserve true optional true value 48000 } { name "Playback Source" lock false preserve true optional false # Values are: # 0 - 'Stereo Headset' # 1 - 'Hands-free (Speakers)' # 2 - 'Mono Handset' # 3 'USB CarKit' value 'Hands-free (Speakers)' } ] } } pcm.AndroidPlayback_Headset { type hooks slave.pcm { type hw card TWL4030 device 0 # Must be of type "digital audio playback" } hooks.0 { type ctl_elems hook_args [ # Enable audio output from the DSP { name "Hands-free Playback Switch" value true } { name "T2 Master codec Sample Rate" value 48000 } { name "Playback Source" # Values are: # 0 - 'Stereo Headset' # 1 - 'Hands-free (Speakers)' # 2 - 'Mono Handset' # 3 'USB CarKit' value 'Stereo Headset' } ] } } pcm.AndroidPlayback_Earpiece { type hooks slave.pcm { type hw card TWL4030 device 0 # Must be of type "digital audio playback" } hooks.0 { type ctl_elems hook_args [ # Enable audio output from the DSP { name "Hands-free Playback Switch" value true } { name "T2 Master codec Sample Rate" value 48000 } { name "Playback Source" # Values are: # 0 - 'Stereo Headset' # 1 - 'Hands-free (Speakers)' # 2 - 'Mono Handset' # 3 'USB CarKit' value 'Mono Handset' } ] } } # No bluetooth available. Send output to the bit bucket. pcm.AndroidPlayback_Bluetooth { type null } ## ## Recording device ## pcm.AndroidRecord_Microphone { type hooks slave.pcm { type hw card TWL4030 device 0 # Must be of type "digital audio capture" } hooks.0 { type ctl_elems hook_args [ { # TWL4030 values for capture source: # 0 - 'Headset Mic' # 1 - 'Main Mic + Sub Mic' # 2 - 'Aux/FM' # 3 - 'USB CarKit' name "Capture Source" lock false preserve true optional false value 'Main Mic + Sub Mic' } { # Enable capture, range [0..100] name "Mic Headset Capture Volume" value [100 100] } { name "Mic Headset Capture Switch" value true } { # TWL4030 Capture volume, range [0..100] name "Master Capture Volume" value [60 60] } ] } } --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---