Define this as part of BoardConfig.mk BOARD_USES_GENERIC_AUDIO This will enable stub audio and will ensure that your device will bootup without audio support.
Thanks Jag On Feb 16, 6:07 pm, Matt Shao <low...@gmail.com> wrote: > Hi guys: > > I am a fresh man in the android and now I am working on a board that > using freescale imx51. We are porting the BSP from IMX51 EVK. > For this board, we change the audio codec from it's original audio > codec SGTL5000 to WM8758, so of course, the EVK audio driver could not work > on our board > > We definitely will modify the audio driver for our new audio codec, but > currently we want to bypass this issue and boot the android without audio > feature. > > But In fact, when we boot, the system will hang with the > "ANDROID" animation, after check with the logcat, we found the system is > waiting for the media.audio_policy, like this: > > * > [20:20:25.974] I/SystemServer( 2041): Audio Service > [20:20:25.983] I/ServiceManager( 2041): Waiting for sevice > media.audio_policy... > [20:20:26.981] I/ServiceManager( 2041): Waiting for sevice > media.audio_policy... > [20:20:27.981] I/ServiceManager( 2041): Waiting for sevice > media.audio_policy... > [20:20:28.981] I/ServiceManager( 2041): Waiting for sevice > media.audio_policy... > [20:20:29.981] I/ServiceManager( 2041): Waiting for sevice > media.audio_policy... > [20:20:30.981] W/AudioSystem( 2041): AudioPolicyService not published, > waiting... > > As the audio codec does not loaded successfully, the ALSA could not > found any audio device so the system hang here. > * > > Does any one know how to disable the audio feature in the android? > > With this question, I have one more question: > > How to config to build one minimum Android? (Any configuration file > that we can modify?) > (for example: delete AUDIO feature/delete WIFI/delete Bluetooth/delete > all the google App/etc...) > > Any comments is highly appreciated!! Thanks a lot -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting