AnsweredAssumed Answered

How to add sgtl5000 for l5.0.0_1.0.0-ga(sabresd_6dq)?

Question asked by guohn on Jun 12, 2015
Latest reply on Jun 15, 2015 by CarlosCasillas

Hi ALL,

     We want to use sgtl5000 on sabresd_6dq. BSP is l5.0.0_1.0.0-ga. Now kernel is work ok, but play music error.

     add file config_sgtl5000.h

 

     modify hardware/imx/alsa/tinyalsa_hal.c

 

#define SUPPORT_CARD_NUM        8

/*"null_card" must be in the end of this array*/

struct audio_card *audio_card_list[SUPPORT_CARD_NUM] = {

    &sgtl5000_card,

    &wm8958_card,

    &wm8962_card,

    &hdmi_card,

    &usbaudio_card,

    &spdif_card,

    &cs42888_card,

    &null_card,

};

 

W/AudioTrack(  435): AUDIO_OUTPUT_FLAG_FAST denied by client

W/AudioTrack(  435): AUDIO_OUTPUT_FLAG_FAST denied by client

--------- beginning of system

I/ActivityManager(  435): START u0 {act=android.intent.action.PICK dat= typ=vnd.android.cursor.dir/track cmp=com.android.music/.TrackBrowserActivity (has extras)} from uid 10035 on display 0

V/PhoneStatusBar(  529): setLightsOn(true)

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

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

I/ActivityManager(  435): Displayed com.android.music/.TrackBrowserActivity: +147ms

W/AudioTrack(  435): AUDIO_OUTPUT_FLAG_FAST denied by client

E/MediaPlayer(  913): Should have subtitle controller already set

I/ActivityManager(  435): Start proc com.android.musicfx for broadcast com.android.musicfx/.ControlPanelReceiver: pid=1234 uid=10010 gids={50010, 9997, 3003, 3002} abi=armeabi-v7a

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

E/Zygote  ( 1234): Zygote:  error closing descriptor

E/Zygote  ( 1234): android.system.ErrnoException: close failed: EBADF (Bad file number)

E/Zygote  ( 1234):      at libcore.io.Posix.close(Native Method)

E/Zygote  ( 1234):      at libcore.io.BlockGuardOs.close(BlockGuardOs.java:101)

E/Zygote  ( 1234):      at android.system.Os.close(Os.java:84)

E/Zygote  ( 1234):      at com.android.internal.os.ZygoteInit.closeServerSocket(ZygoteInit.java:204)

E/Zygote  ( 1234):      at com.android.internal.os.ZygoteConnection.handleChildProc(ZygoteConnection.java:880)

E/Zygote  ( 1234):      at com.android.internal.os.ZygoteConnection.runOnce(ZygoteConnection.java:267)

E/Zygote  ( 1234):      at com.android.internal.os.ZygoteInit.runSelectLoop(ZygoteInit.java:784)

E/Zygote  ( 1234):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:690)

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

I/MediaFocusControl(  435):  AudioFocus  requestAudioFocus() from android.media.AudioManager@1de47f28com.android.music.MediaPlaybackService$3@19f88441

V/MusicFXControlPanelReceiver( 1234): onReceive

V/MusicFXControlPanelReceiver( 1234): Action: android.media.action.OPEN_AUDIO_EFFECT_CONTROL_SESSION

V/MusicFXControlPanelReceiver( 1234): Package name: com.android.music

V/MusicFXControlPanelReceiver( 1234): Audio session: 9

V/MusicFXControlPanelEffect( 1234): openSession(android.app.ReceiverRestrictedContext@30db2a24, com.android.music, 9)

I/art     (  435): Explicit concurrent mark sweep GC freed 12808(682KB) AllocSpace objects, 2(32KB) LOS objects, 33% free, 6MB/9MB, paused 1.855ms total 85.434ms

D/NuPlayerDriver(  170): start(0x74e0d040)

I/GenericSource(  170): start

E/NuPlayer(  170): feedDecoderInputData getCurrentPosition failed.

E/NuPlayer(  170): feedDecoderInputData getCurrentPosition failed.

E/NuPlayer(  170): feedDecoderInputData getCurrentPosition failed.

E/NuPlayer(  170): feedDecoderInputData getCurrentPosition failed.

E/NuPlayer(  170): feedDecoderInputData getCurrentPosition failed.

E/NuPlayer(  170): feedDecoderInputData getCurrentPosition failed.

I/ActivityManager(  435): START u0 {act=com.android.music.PLAYBACK_VIEWER flg=0x4000000 cmp=com.android.music/.MediaPlaybackActivity} from uid 10035 on display 0

D/InitAlarmsService( 1130): Clearing and rescheduling alarms.

E/MediaPlayer(  913): Should have subtitle controller already set

V/PhoneStatusBar(  529): setLightsOn(true)

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

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

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

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

W/CursorWrapperInner(  913): Cursor finalized without prior close()

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

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

I/ActivityManager(  435): Displayed com.android.music/.MediaPlaybackActivity: +290ms

 

 

 

 

W/AudioTrack(  435): AUDIO_OUTPUT_FLAG_FAST denied by client

V/PhoneStatusBar(  529): DEBUG_MEDIA: Disconnecting from old controller: android.media.session.MediaController@1b491a0f

I/MediaFocusControl(  435):  AudioFocus  requestAudioFocus() from android.media.AudioManager@1de47f28com.android.music.MediaPlaybackService$3@19f88441

W/AudioTrack(  435): AUDIO_OUTPUT_FLAG_FAST denied by client

D/NuPlayerDriver(  170): start(0x74e0d040)

Outcomes