The OMX code has always been working with PV's and other HW OMX
components. Also, there have been quite a few folks who were able to
add new codecs. Hence my suspicion on your OMX component/decoder.

http://source.android.com/submit-patches is where you can contribute
to the Android Open Source Project (AOSP).

-Ravi

On Dec 7, 9:11 am, guru <guru.nav...@gmail.com> wrote:
> Hi Ravi,
>
> Thanks for the reply. I will check it.
>
> My doubt is, it is crashing when it tries to call Eventhandler when
> STATE is Loaded. My understanding is evenhandler is part of opencore
> and we are calling from component. I am not understanding how the aac
> decoder is causing the crash.
> Whether after event handler, opencore tries to call decoder library
> functions?
>
> also ravi, it is part of my self assignment that I took AAC decoder to
> better understand the Android Middleware and integration. Since I am
> more interested towards kernel internals and their working. I have
> seen many threads asking about contribution to Android. I dont know
> how to make contribution.. but I thought if I can 1st understand  the
> framework later I can contribute.
>
> It will be useful for me if you can direct me to some site on ongoing
> projects on android to contribute from myside.
>
> Regards
> Gururaja B O
>
> On Dec 4, 8:31 pm, RaviY <yend...@pv.com> wrote:
>
> > From the stack trace, it looks like the crash is in the code that you
> > added. You would have to debug further.
>
> > Just curious, why are you trying to add a new AAC decoder library?
>
> > -Ravi
>
> > On Dec 4, 5:50 pm, guru <guru.nav...@gmail.com> wrote:
>
> > > HI Ravi,
>
> > > Below is the stack trace
>
> > > I/DEBUG   (  770):     407f1f2c  00000000
> > > I/DEBUG   (  770):     407f1f30  00000000
> > > I/DEBUG   (  770):     407f1f34  00000000
> > > I/DEBUG   (  770):     407f1f38  00000000
> > > I/DEBUG   (  770):     407f1f3c  00000000
> > > ...
> > > ..
> > > ..
> > > I/DEBUG   (  770):     40807c34  00000000
> > > I/DEBUG   (  770):     40807c38  00000000
> > > I/DEBUG   (  770):     40807c3c  00000000
> > > I/DEBUG   (  770):     40807c40  00000000
> > > I/DEBUG   (  770):     40807c44  00000000
> > > I/DEBUG   (  770):     40807c48  00000000
> > > I/DEBUG   (  770):     40807c4c  00000000
> > > I/DEBUG   (  770):     40807c50  00000000
> > > I/DEBUG   (  770):     40807c54  00000000
> > > I/DEBUG   (  770):     40807c58  00000000
> > > I/DEBUG   (  770):     40807c5c  00000000
> > > I/DEBUG   (  770):     40807c6binder: 1038:1038 transaction failed
> > > 29189, size 6
> > > 4-0
> > > 0  00000000
> > > I/DEBUG   (  770):     40807c64  00000000
> > > I/DEBUG   (  770):     40807c68  00000000
> > > I/DEBUG   (  770):     40807c6c  00000000
> > > I/DEBUG   (  770):     40807c70  00000000
> > > I/DEBUG   (  770):     40807c74  00000000
> > > I/DEBUG   (  770):     40807c78  00000000
> > > I/DEBUG   (  770):     40807c7c  00000000
> > > I/DEBUG   (  770):     40808064  00000000
> > > ...
> > > ...
> > > ...
> > > I/DEBUG   (  770):     40808068  00000000
> > > I/DEBUG   (  770):     4080806c  00000000
> > > I/DEBUG   (  770):     40808070  00000000
> > > I/DEBUG   (  770):     40808074  00000000
> > > I/DEBUG   (  770):     40808078  00000000
> > > I/DEBUG   (  770):     4080807c  00000000
> > > I/DEBUG   (  770):     40808080  00000000
> > > I/DEBUG   (  770):     40808084  00000000
> > > I/DEBUG   ( binder: BC_ATTEMPT_ACQUIRE not supported
> > >  770):     40808binder: 1050:1051 ioctl c0186201 100ffcc0 returned -22
> > > 088  00000000
> > > I/DEBUG   (  770):     4080808c  00000000
> > > I/DEBUG   (  770):     40808090  00000000
> > > I/DEBUG   (  770):     40808094  00000000
> > > I/DEBUG   (  770):     40808098  00000000
> > > ,,,,
> > > ,,,,
> > > ,,,,
> > > I/DEBUG   (  770):     4080837c  00000000
> > > I/DEBUG   (  770):     40808380  00000000
> > > I/DEBUG   (  770):     40808384  00000000
> > > I/DEBUG   (  770):     40808388  00000000
> > > I/DEBUG   (  770):     4080838c  00000000
> > > I/DEBUG   (  770):     40808390  00000000
> > > I/DEBUG   (  770):   binder: BC_ATTEMPT_ACQUIRE not supported
> > >   40808394  0000binder: 1050:1051 ioctl c0186201 100ffd70 returned -22
> > > 0000
> > > I/DEBUG   (  770):     40808398  00000000
> > > I/DEBUG   (  770):     4080839c  00000000
> > > ....
> > > ....
> > > ....
> > > I/DEBUG   (  770):     408083a0  00000000
> > > I/DEBUG   (  770):     40808ea0  00000000
> > > I/DEBUG   (  770):     40808ea4  00000000
> > > I/DEBUG   (  770):     40808ea8  00000000
> > > I/DEBUG   (  770):     40808eac  00000000
> > > I/DEBUG   (  770):     40808eb0  00000000
> > > I/DEBUG   (  770):     40808eb4  00000000
> > > I/DEBUG   (  770):     40808eb8  00000000
> > > I/DEBUG   (  770):     40808ebc  00000000
> > > I/DEBUG   (  770):     40808ec0  00000000
> > > I/DEBUG   (  770):     40808ec4  00000001
> > > I/DEBUG   (  770):     40808ec8  40808f00
> > > I/DEBUG   (  770):     40808ecc  40808f00
> > > I/DEBUG   (  770):     40808ed0  000cb8b0  [heap]
> > > I/DEBUG   (  770):     40808ed4  80e02eec  /system/lib/
> > > libomx_aacdec_sharedli
> > > brary.so
> > > I/DEBUG   (  770):     40808ed8  00000078
> > > I/DEBUG   (  770):     40808edc  afe2fee0  /system/lib/libc.so
> > > I/DEBUG   (  770):     40808ee0  afe39dd0
> > > I/DEBUG   (  770):     40808ee4  80e02eec  /system/lib/
> > > libomx_aacdec_sharedli
> > > brary.so
> > > I/DEBUG   (  770):     40808ee8  00000001
> > > I/DEBUG   (  770):     40808eec  afe0f884  /system/lib/libc.so
> > > W/MediaPlayer( 1038): MediaPlayer server died!
> > > E/MediaPlayer( 1038): error (100, 0)
> > > E/Wave    ( 1038): Prepare failed.: status=0x64
> > > W/AudioSystem(  799): AudioFlinger server died!
> > > I/ServiceManager(  767): service 'media.audio_flinger' died
> > > I/ServiceManager(  767): service 'media.player' died
> > > I/ServiceManager(  767): service 'media.camera' died
> > > I/        ( 1050): ServiceManager: 0xac38
> > > I/AudioFlinger( 1050): AudioFlinger's thread ready to run for output 0
> > > D/A2dpAudioInterface( 1050): A2dpAudioInterface::openOutputStream 1,
> > > 0, 0
> > > D/A2DP    ( 1050): a2dp_init rate: 44100 channels: 2
> > > D/A2DP    ( 1050): bluetooth_init
> > > E/A2DP    ( 1050): bt_audio_service_open failed
> > > D/A2DP    ( 1050): bluetooth_close
> > > E/A2dpAudioInterface( 1050): a2dp_init failed err: -111
> > > D/A2dpAudioInterface( 1050): A2dpAudioStreamOut::set 1, 0, 0
> > > I/AudioFlinger( 1050): AudioFlinger's thread ready to run for output 1
> > > D/AudioFlinger( 1050): setRouting 0 2 -1, tid 1050, calling tid 1050
> > > I/AudioHardwareOmap( 1050): Analog Left: Main mic
> > > I/AudioHardwareOmap( 1050): Analog Right: Sub mic
> > > I/AudioHardwareOmap( 1050): Earpiece Mixer AudioL2: 0
> > > I/AudioHardwareOmap( 1050): HandsfreeL Mux: AudioL2
> > > I/AudioHardwareOmap( 1050): HandsfreeR Mux: AudioR2
> > > I/AudioHardwareOmap( 1050): HeadsetL Mixer AudioL2: 0
> > > I/AudioHardwareOmap( 1050): HeadsetR Mixer AudioR2: 0
> > > D/AudioFlinger( 1050): setRouting 1 2 -1, tid 1050, calling tid 1050
> > > D/AudioFlinger( 1050): setRouting 2 1 -1, tid 1050, calling tid 1050
> > > E/AudioFlinger( 1050): mA2dpDisableCount is already zero
> > > I/AudioHardwareOmap( 1050): Setting mixer control: Analog to 1.00
> > > I/AudioHardwareOmap( 1050): Setting mixer control: DAC2 Analog to 1.00
> > > I/CameraService( 1050): CameraService started: pid=1050
> > > E/AudioService(  799): Media server died.
> > > E/AudioService(  799): Media server started.
> > > D/AudioFlinger( 1050): setRouting 0 2 -1, tid 1054, calling tid 799
> > > D/AudioFlinger( 1050): setRouting 1 2 -1, tid 1050, calling tid 799
> > > D/AudioFlinger( 1050): setRouting 2 1 -1, tid 1055, calling tid 799
> > > E/AudioFlinger( 1050): mA2dpDisableCount is already zero
>
> > > I am trying to know if i am gone some where wrong during integration.
>
> > > Regards
> > > Gururaja B O
>
> > > On Dec 4, 4:52 pm, RaviY <yend...@pv.com> wrote:
>
> > > > You shouldn't be needing any changes in the callbacks. The callback
> > > > functions are generic, and should work for all cases. Can you post the
> > > > complete stacktrace? I would have expected the shared library names in
> > > > the stack trace, and some address.
>
> > > > -Ravi
>
> > > > On Dec 4, 3:07 pm, guru <guru.nav...@gmail.com> wrote:
>
> > > > > HI All,
>
> > > > > I have integrated Audio decoder(OpenMAX) to OpenCORE. OpenCORE is
> > > > > recognizing our component, but it is failing to play the audio file.
>
> > > > > I added logs to identify the problem and found that getting crashed at
> > > > > event handler callback.
>
> > > > > Following is the log
>
> > > > > E/        (  773): Calling core specific GetHandle
> > > > > E/pvomxcore(  773): OMX_CORE.c OMX_GetHandle IN
> > > > > E/pvomxcore(  773): ....Invoking ComponentInit
> > > > > E/        (  773): OMX_COMP.c MyComponentInit IN
> > > > > E/        (  773): .... Create the component thread
> > > > > E/        (  773): OMX_COMP.c ComponentThread IN
> > > > > E/        (  773): OMX_COMP.c MyComponentInit OUT
> > > > > E/pvomxcore(  773): ....Exiting ComponentInit
> > > > > E/pvomxcore(  773): Initializing CallBacks IN
> > > > > E/pvomxcore(  773): Initializing CallBacks OUT
> > > > > E/pvomxcore(  773): OMX_CORE.c OMX_GetHandle OUT
> > > > > E/        (  773): Exiting core specific GetHandle
> > > > > E/        (  773): .... case OMX_StateLoaded START
> > > > > E/        (  773): .... Calling Event Handler ( --> this is called
> > > > > when STATE is Loaded)
> > > > > I/DEBUG   (  770): *** *** *** *** *** *** *** *** *** *** *** *** ***
> > > > > *** *** *
> > > > > **
> > > > > I/DEBUG   (  770): Build fingerprint: 'zoom/zoom2/zoom2/zoom2:1.5/
> > > > > CUPCAKE/eng.mi
> > > > > ndtree.20091012.145505:eng/test-keys'
> > > > > I/DEBUG   (  770):     405f5994  00000000
> > > > > I/DEBUG   (  770):     405f5998  00000000
> > > > > I/DEBUG   (  770):     405f599c  00000000
> > > > > I/DEBUG   (  770):     405f59a0  00000000
> > > > > I/DEBUG   (  770):     405f59a4  00000000
> > > > > I/DEBUG   (  770):     405f59a8
>
> ...
>
> read more »

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to