[XDA-University] ArjunrambZ:
logcat audio not playing

i had ported a rom to my lg optimus l7 and i find these errors which were not possible to solve

i have atteched the logcat

the main error was that audio was not working

i got that the problem was with media process and audiopolicy

here is the log cat of the error,these error occures when playing a ringtone in setttingd menu

android version is 4.3

and base rom is CM 10.2

ported rom is Cyanfox

please try to help me solving this problem

LOGCAT

11-05 23:03:59.129: W/AudioPolicyManager(2284): getOutput() could not find output for stream 1, samplingRate 0,format 0, channels 3, flags 0
11-05 23:03:59.129: W/AudioPolicyManager(2284): getOutput() could not find output for stream 1, samplingRate 0,format 0, channels 3, flags 0
11-05 23:03:59.129: W/AudioPolicyManager(2284): getOutput() could not find output for stream 1, samplingRate 44100,format 1, channels 1, flags 4
11-05 23:03:59.129: E/AudioTrack(506): Could not get audio output for stream type 1
11-05 23:03:59.139: E/SoundPool(506): Error creating AudioTrack
11-05 23:03:59.139: I/AudioService(506): Remote Control registerMediaButtonIntent() for PendingIntent{41e7d3d8: PendingIntentRecord{41c15920 com.google.android.music broadcastIntent}}
11-05 23:03:59.149: I/LocalDevicePlayback(2821): play: currentPos=5
11-05 23:03:59.149: I/AudioService(506): AudioFocus requestAudioFocus() from android.media.AudioManager@41a918c0com.google.android.music.playback.LocalDevicePlayback$8@41a93528
11-05 23:03:59.159: I/AudioService(506): AudioFocus abandonAudioFocus(): removing entry for android.media.AudioManager@41a918c0com.google.android.music.playback.LocalDevicePlayback$8@41a93528
11-05 23:03:59.159: E/MediaPlayer(2632): pause called in state 8
11-05 23:03:59.159: E/MediaPlayer(2632): error (-38, 0)
11-05 23:03:59.369: D/dalvikvm(506): GC_FOR_ALLOC freed 823K, 21% free 11309K/14228K, paused 89ms, total 91ms
11-05 23:03:59.509: D/BufferProgressListener(3215): updateCurrentSong: [361, DEFAULT]
11-05 23:03:59.529: I/LocalDevicePlayback(2821): open: id=[361, DEFAULT], playPos=5, fromUser=true, track=Track 2
11-05 23:03:59.559: D/LocalAsyncMediaPlayer(2821): Event logging MUSIC_START_PLAYBACK_REQUESTED: 361/: local playback
11-05 23:03:59.559: D/DownloadQueue(2821): cancelAndPurge: owner=MUSIC_PLAYBACK, policy=2
11-05 23:03:59.569: D/DownloadQueue(2821): getNextTask(): wait
11-05 23:03:59.609: D/QCUtils(2284): extended extractor not needed, return default
11-05 23:03:59.609: D/AwesomePlayer(2284): Before reset_l
11-05 23:03:59.609: D/AwesomePlayer(2284): printFileName fd(41) -> /storage/sdcard1/songs/melle melle.mp3
11-05 23:03:59.619: D/QCUtils(2284): extended extractor not needed, return default
11-05 23:03:59.619: E/AwesomePlayer(2284): LPAPlayer::Clip duration setting of less than 30sec not supported, defaulting to 60sec
11-05 23:03:59.619: E/QC_MP3DEC(2284): component_init: device open fail Loaded -->Invalid
11-05 23:03:59.619: E/QC_MP3DEC(2284): mp3 device already closed
11-05 23:03:59.619: E/QC_MP3DEC(2284): Killing timer thread...
11-05 23:03:59.619: E/QC_MP3DEC(2284): Timer thread exited
11-05 23:03:59.619: E/QC_MP3DEC(2284): Component-deinit m_drv_fd = -1
11-05 23:03:59.619: E/QC_MP3DEC(2284): OMX MP3 component destroyed
11-05 23:03:59.639: E/AwesomePlayer(2284): LPAPlayer::Clip duration setting of less than 30sec not supported, defaulting to 60sec
11-05 23:03:59.649: W/AudioPolicyManager(2284): getOutput() could not find output for stream 3, samplingRate 0,format 0, channels 3, flags 0
11-05 23:03:59.649: E/AwesomePlayer(2284): AudioPlayer start error
11-05 23:03:59.649: E/MetadataRetrieverClient(2284): failed to extract an album art
11-05 23:03:59.649: E/MediaPlayer(2821): error (-19, 0)
11-05 23:03:59.649: E/MediaPlayer(2821): Error (-19,0)
11-05 23:03:59.679: W/LocalDevicePlayback(2821): Failed to open MusicId ([361, DEFAULT]) for playback
11-05 23:03:59.679: D/StreamingClient(2821): currenStreamingPlayEnded: current=null next=null
11-05 23:03:59.699: D/BufferProgressListener(3215): updateCurrentSong: [361, DEFAULT]
11-05 23:03:59.769: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0c800 successful
11-05 23:03:59.769: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0c748 successful
11-05 23:03:59.769: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0c678 successful
11-05 23:03:59.769: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0c4c0 successful
11-05 23:03:59.779: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0ce00 successful
11-05 23:03:59.779: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0ccd8 successful
11-05 23:03:59.779: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0cb98 successful
11-05 23:03:59.779: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c0c988 successful
11-05 23:03:59.809: D/MultiPlayer(2821): Error: -19,0
11-05 23:03:59.969: D/dalvikvm(506): GC_FOR_ALLOC freed 446K, 19% free 11543K/14228K, paused 84ms, total 85ms
11-05 23:04:00.009: D/BufferProgressListener(3215): updateCurrentSong: [361, DEFAULT]
11-05 23:04:00.119: E/MediaPlayer(2632): Error (-38,0)
11-05 23:04:00.119: E/QC_MP3DEC(2284): Execute flush for both I/p O/p port
11-05 23:04:00.119: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c072e0 successful
11-05 23:04:00.119: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c05108 successful
11-05 23:04:00.119: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41bf73d8 successful
11-05 23:04:00.119: I/OMXNodeInstance(2284): OMX_FreeBuffer for buffer header 0x41c153b8 successful
11-05 23:04:00.139: E/QC_MP3DEC(2284): Killing timer thread...
11-05 23:04:00.139: E/QC_MP3DEC(2284): Timer thread exited
11-05 23:04:00.139: E/QC_MP3DEC(2284): Component-deinit m_drv_fd = -1
11-05 23:04:00.139: E/QC_MP3DEC(2284): COMPONENT DEINIT...
11-05 23:04:00.139: E/QC_MP3DEC(2284): OMX MP3 component destroyed
11-05 23:04:00.429: D/dalvikvm(2821): GC_FOR_ALLOC freed 509K, 13% free 3760K/4316K, paused 24ms, total 26ms
11-05 23:04:00.459: D/QCUtils(2284): extended extractor not needed, return default
11-05 23:04:00.469: E/MetadataRetrieverClient(2284): failed to extract an album art
11-05 23:04:00.509: I/Diag_Lib(134): rpc_handle_rpc_call: for Xid: 3a1, Prog: 31000000, Vers: d17ed9ea, Proc: 00000014
11-05 23:04:00.509: I/Diag_Lib(134): rpc_handle_rpc_call: Find Status: 0 Xid: 3a1
11-05 23:04:00.509: I/ONCRPC(134): oncrpc_proxy_handle_cmd_rpc_call: Dispatching xid: 3a1
11-05 23:04:00.509: I/ONCRPC(134): oncrpc_xdr_reply_msg_start: Prog: 00000000, Ver: 00000000, Proc: 00000000 Xid: 000003a1
11-05 23:04:00.509: I/ONCRPC(134): oncrpc_msg_reply: Prog: 00000000, Ver: 00000000, Proc: 00000000 Xid: 000003a1
11-05 23:04:00.509: I/ONCRPC(134): oncrpc_proxy_handle_cmd_rpc_call: Dispatch returned for xid: 3a1
11-05 23:04:00.579: D/BufferProgressListener(3215): updateCurrentSong: null
11-05 23:04:00.699: D/QCUtils(2284): extended extractor not needed, return default
11-05 23:04:00.699: E/MetadataRetrieverClient(2284): failed to extract an album art
11-05 23:04:00.749: D/QCUtils(2284): extended extractor not needed, return default
11-05 23:04:00.749: E/MetadataRetrieverClient(2284): failed to extract an album art
11-05 23:04:00.779: I/BaseTrackListView(3215): Need to scroll to: 5 which is larger than the current list size: 0
11-05 23:04:01.269: D/AwesomePlayer(2284): Before reset_l
11-05 23:04:01.269: D/AwesomePlayer(2284): printFileName fd(17) -> /storage/sdcard1/songs/best of enrique/07 Enrique Iglesias - Miss You.mp3
11-05 23:04:01.319: D/QCUtils(2284): extended extractor not needed, return default
11-05 23:04:01.339: E/AwesomePlayer(2284): LPAPlayer::Clip duration setting of less than 30sec not supported, defaulting to 60sec
11-05 23:04:01.339: E/QC_MP3DEC(2284): component_init[0x41c10710]component init: role = OMX.qcom.audio.decoder.mp3

please help:confused::confused::confused: