AnsweredAssumed Answered

i have sound comes from headphones only but can't get sound from loud speaker

Question asked by mahmoud sharaf on Mar 15, 2017
Latest reply on Mar 16, 2017 by Victor Linnik

hello i am facing a problem with sound while compiling the kernel source 

my device is lenovo s860 soc MT6582 kernel 3.4.67

i have sound comes from headphones only but can't get sound from loud speaker

and here is the logcat err msg :

03-15 16:07:00.046: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:09:00.046: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:10:06.068: E/Sensors(1201): new acc setDelay handle(0),ns(20000000) err! go to hwmsen 03-15 16:10:06.070: E/Sensors(1201): new acc setDelay handle(0),ns(20000000) err! go to hwmsen 03-15 16:10:06.221: E/MediaPlayer-JNI(14951): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 03-15 16:10:06.221: E/MediaPlayer-JNI(14951): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 03-15 16:10:06.357: E/MediaPlayer-JNI(14951): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 03-15 16:10:06.357: E/MediaPlayer-JNI(14951): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 03-15 16:10:06.462: E/MetadataRetrieverClient(13474): failed to extract an album art 03-15 16:10:06.922: E/MetadataRetrieverClient(13474): failed to extract an album art 03-15 16:10:07.007: E/AndroidRuntime(14951): FATAL EXCEPTION: main 03-15 16:10:07.007: E/AndroidRuntime(14951): Process: com.cyanogenmod.eleven:main, PID: 14951 03-15 16:10:07.007: E/AndroidRuntime(14951): Theme: themes:{default=overlay:com.ott.minty, iconPack:com.wsdeveloper.nubiasimple, fontPkg:com.wsdeveloper.nubiasimple, com.android.systemui=overlay:com.ott.minty, com.android.systemui.navbar=overlay:com.ott.minty} 03-15 16:10:07.007: E/AndroidRuntime(14951): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference 03-15 16:10:07.007: E/AndroidRuntime(14951): at android.content.pm.ParceledListSlice.writeToParcel(ParceledListSlice.java) 03-15 16:10:07.007: E/AndroidRuntime(14951): at android.media.session.ISession$Stub$Proxy.setQueue(ISession.java) 03-15 16:10:07.007: E/AndroidRuntime(14951): at android.media.session.MediaSession.setQueue(MediaSession.java) 03-15 16:10:07.007: E/AndroidRuntime(14951): at com.cyanogenmod.eleven.MusicPlaybackService$QueueUpdateTask.onPostExecute(MusicPlaybackService.java:3967) 03-15 16:10:07.007: E/AndroidRuntime(14951): at com.cyanogenmod.eleven.MusicPlaybackService$QueueUpdateTask.onPostExecute(MusicPlaybackService.java:3965) 03-15 16:10:07.007: E/AndroidRuntime(14951): at android.os.AsyncTask.finish(AsyncTask.java) 03-15 16:10:07.007: E/AndroidRuntime(14951): at android.os.AsyncTask.-wrap1(AsyncTask.java) 03-15 16:10:07.007: E/AndroidRuntime(14951): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java) 03-15 16:10:07.007: E/AndroidRuntime(14951): at android.os.Handler.dispatchMessage(Handler.java) 03-15 16:10:07.007: E/AndroidRuntime(14951): at android.os.Looper.loop(Looper.java) 03-15 16:10:07.007: E/AndroidRuntime(14951): at android.app.ActivityThread.main(ActivityThread.java) 03-15 16:10:07.007: E/AndroidRuntime(14951): at java.lang.reflect.Method.invoke(Native Method) 03-15 16:10:07.007: E/AndroidRuntime(14951): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java) 03-15 16:10:07.007: E/AndroidRuntime(14951): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java) 03-15 16:10:07.063: E/(1201): appName=system_server, acAppName=/system/bin/surfaceflinger 03-15 16:10:07.063: E/(1201): 0 03-15 16:11:00.009: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:11:00.111: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:13:00.051: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:00.010: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:00.107: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:00.183: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:00.246: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:00.305: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:00.357: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:00.410: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:00.463: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:00.518: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:00.574: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:00.627: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:38.613: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:38.721: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:38.829: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:38.862: E/MediaPlayer-JNI(15429): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 03-15 16:14:38.863: E/MediaPlayer-JNI(15429): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 03-15 16:14:38.944: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:39.043: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:39.057: E/MediaPlayer-JNI(15429): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 03-15 16:14:39.057: E/MediaPlayer-JNI(15429): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 03-15 16:14:39.155: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:14:39.205: E/MetadataRetrieverClient(13474): failed to extract an album art 03-15 16:14:39.679: E/MetadataRetrieverClient(13474): failed to extract an album art 03-15 16:14:39.719: E/MediaPlayer-JNI(15429): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 03-15 16:14:39.719: E/MediaPlayer-JNI(15429): JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 03-15 16:14:39.966: E/OMX(13474): FAILED to allocate omx component 'OMX.dolby.ac3.decoder' err=InvalidComponentName(0x80001002) 03-15 16:14:39.966: E/OMX(13474): FAILED to allocate omx component 'OMX.dolby.ec3.decoder' err=InvalidComponentName(0x80001002) 03-15 16:14:39.973: E/OMX(13474): FAILED to allocate omx component 'OMX.MTK.VIDEO.ENCODER.MPEG4' err=InvalidComponentName(0x80001002) 03-15 16:14:39.973: E/OMX(13474): FAILED to allocate omx component 'OMX.MTK.VIDEO.ENCODER.H263' err=InvalidComponentName(0x80001002) 03-15 16:14:39.982: E/MtkOmxVenc(13474): bufk = 0 03-15 16:14:39.988: E/MtkOmxVenc(13474): MtkOmxVenc::GetExtensionIndex Unknown parameter name: OMX.google.android.index.describeColorFormat 03-15 16:14:39.988: E/MtkOmxVenc(13474): MtkOmxVenc::GetExtensionIndex Unknown parameter name: OMX.google.android.index.describeColorFormat 03-15 16:14:39.988: E/MtkOmxVenc(13474): MtkOmxVenc::GetExtensionIndex Unknown parameter name: OMX.google.android.index.describeColorFormat 03-15 16:14:39.988: E/MtkOmxVenc(13474): MtkOmxVenc::GetExtensionIndex Unknown parameter name: OMX.google.android.index.describeColorFormat 03-15 16:14:39.988: E/MtkOmxVenc(13474): MtkOmxVenc::GetExtensionIndex Unknown parameter name: OMX.google.android.index.describeColorFormat 03-15 16:14:39.988: E/MtkOmxVenc(13474): MtkOmxVenc::GetExtensionIndex Unknown parameter name: OMX.google.android.index.describeColorFormat 03-15 16:14:39.989: E/MtkOmxVenc(13474): MtkOmxVenc::GetExtensionIndex Unknown parameter name: OMX.google.android.index.describeColorFormat 03-15 16:14:40.018: E/AndroidRuntime(15429): FATAL EXCEPTION: main 03-15 16:14:40.018: E/AndroidRuntime(15429): Process: com.cyanogenmod.eleven:main, PID: 15429 03-15 16:14:40.018: E/AndroidRuntime(15429): Theme: themes:{default=overlay:com.ott.minty, iconPack:com.wsdeveloper.nubiasimple, fontPkg:com.wsdeveloper.nubiasimple, com.android.systemui=overlay:com.ott.minty, com.android.systemui.navbar=overlay:com.ott.minty} 03-15 16:14:40.018: E/AndroidRuntime(15429): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference 03-15 16:14:40.018: E/AndroidRuntime(15429): at android.content.pm.ParceledListSlice.writeToParcel(ParceledListSlice.java) 03-15 16:14:40.018: E/AndroidRuntime(15429): at android.media.session.ISession$Stub$Proxy.setQueue(ISession.java) 03-15 16:14:40.018: E/AndroidRuntime(15429): at android.media.session.MediaSession.setQueue(MediaSession.java) 03-15 16:14:40.018: E/AndroidRuntime(15429): at com.cyanogenmod.eleven.MusicPlaybackService$QueueUpdateTask.onPostExecute(MusicPlaybackService.java:3967) 03-15 16:14:40.018: E/AndroidRuntime(15429): at com.cyanogenmod.eleven.MusicPlaybackService$QueueUpdateTask.onPostExecute(MusicPlaybackService.java:3965) 03-15 16:14:40.018: E/AndroidRuntime(15429): at android.os.AsyncTask.finish(AsyncTask.java) 03-15 16:14:40.018: E/AndroidRuntime(15429): at android.os.AsyncTask.-wrap1(AsyncTask.java) 03-15 16:14:40.018: E/AndroidRuntime(15429): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java) 03-15 16:14:40.018: E/AndroidRuntime(15429): at android.os.Handler.dispatchMessage(Handler.java) 03-15 16:14:40.018: E/AndroidRuntime(15429): at android.os.Looper.loop(Looper.java) 03-15 16:14:40.018: E/AndroidRuntime(15429): at android.app.ActivityThread.main(ActivityThread.java) 03-15 16:14:40.018: E/AndroidRuntime(15429): at java.lang.reflect.Method.invoke(Native Method) 03-15 16:14:40.018: E/AndroidRuntime(15429): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java) 03-15 16:14:40.018: E/AndroidRuntime(15429): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java) 03-15 16:14:40.127: E/(1201): appName=system_server, acAppName=/system/bin/surfaceflinger 03-15 16:14:40.127: E/(1201): 0 03-15 16:14:40.237: E/OMXNodeInstance(13474): setConfig(2e:google.mp3.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001) 03-15 16:14:40.295: E/LenovoNxpTfa9887(13474): +LenovoTfa98xxInit2, NXP I2C = 0x68 03-15 16:14:40.320: E/MediaPlayer(15429): error (100, 0) 03-15 16:14:40.320: E/MediaPlayer(15429): error (100, 0) 03-15 16:14:40.323: E/AudioService(1201): Media server died. 03-15 16:14:40.824: E/AudioService(1201): Media server died. 03-15 16:14:41.299: E/CameraService(15569): setUpVendorTags: Vendor tag operations not fully defined. Ignoring definitions. 03-15 16:14:41.326: E/AudioService(1201): Media server started. 03-15 16:14:41.329: E/CameraManagerGlobal(1780): Camera service is unavailable 03-15 16:14:41.615: E/nvram_drv_mgr(15569): [init()] Err: 174:, NvramDrvMgrCtx instance created ok m_refCnt: 1! 03-15 16:14:41.631: E/nvram_drv_mgr(15569): [uninit()] Err: 236:, NvramDrvMgrCtx destroying instance m_refCnt: 0! 03-15 16:14:41.667: E/nvram_drv_mgr(15569): [init()] Err: 174:, NvramDrvMgrCtx instance created ok m_refCnt: 1! 03-15 16:14:41.668: E/nvram_drv_mgr(15569): [init()] Err: 171:, Instance has been created! m_refCnt=2 03-15 16:14:41.669: E/nvram_drv_mgr(15569): [uninit()] Err: 233:, Instance still has users m_refCnt: 1! 03-15 16:14:41.671: E/nvram_drv_mgr(15569): [uninit()] Err: 236:, NvramDrvMgrCtx destroying instance m_refCnt: 0! 03-15 16:14:41.687: E/nvram_drv_mgr(15569): [init()] Err: 174:, NvramDrvMgrCtx instance created ok m_refCnt: 1! 03-15 16:14:41.688: E/nvram_drv_mgr(15569): [uninit()] Err: 236:, NvramDrvMgrCtx destroying instance m_refCnt: 0! 03-15 16:14:42.045: E/nvram_drv_mgr(15569): [init()] Err: 174:, NvramDrvMgrCtx instance created ok m_refCnt: 1! 03-15 16:14:42.062: E/nvram_drv_mgr(15569): [uninit()] Err: 236:, NvramDrvMgrCtx destroying instance m_refCnt: 0! 03-15 16:14:42.104: E/nvram_drv_mgr(15569): [init()] Err: 174:, NvramDrvMgrCtx instance created ok m_refCnt: 1! 03-15 16:14:42.108: E/nvram_drv_mgr(15569): [init()] Err: 171:, Instance has been created! m_refCnt=2 03-15 16:14:42.108: E/nvram_drv_mgr(15569): [uninit()] Err: 233:, Instance still has users m_refCnt: 1! 03-15 16:14:42.111: E/nvram_drv_mgr(15569): [uninit()] Err: 236:, NvramDrvMgrCtx destroying instance m_refCnt: 0! 03-15 16:14:42.128: E/nvram_drv_mgr(15569): [init()] Err: 174:, NvramDrvMgrCtx instance created ok m_refCnt: 1! 03-15 16:14:42.128: E/nvram_drv_mgr(15569): [uninit()] Err: 236:, NvramDrvMgrCtx destroying instance m_refCnt: 0! 03-15 16:14:42.226: E/AudioResourceManager(15569): +UniqueAudioResourceInstance 03-15 16:14:42.259: E/AudioResourceManager(15569): -UniqueAudioResourceInstance 03-15 16:14:42.265: E/SpeechDriverDummy(15569): SpeechDriverDummy(), modem_index = 1 03-15 16:14:42.265: E/SpeechDriverDummy(15569): SpeechDriverDummy(), modem_index = 2 03-15 16:14:42.318: E/AudioMTKHardware(15569): Newmode and Oldmode is the same!!!! 03-15 16:14:42.320: E/AudioFlinger(15569): no wake lock to update! 03-15 16:14:42.392: E/(15569): AudioCloseDumpPCMFile file== NULL 03-15 16:14:42.411: E/MonoPipe(15569): Failed to fetch local time frequency when constructing a MonoPipe (res = -32). getNextWriteTimestamp calls will be non-functional 03-15 16:14:42.416: E/SoundTriggerHwService(15569): couldn't load sound trigger module sound_trigger.primary (No such file or directory) 03-15 16:14:42.418: E/RadioService(15569): couldn't load radio module radio.primary (No such file or directory) 03-15 16:14:42.423: E/AudioMTKHardware(15569): setCommonParameters() still have param.size() = 1, remain param = "restarting=true" 03-15 16:14:42.426: E/AudioMTKHardware(15569): Newmode and Oldmode is the same!!!! 03-15 16:14:42.457: E/AudioMTKHardware(15569): setCommonParameters() still have param.size() = 1, remain param = "restarting=false" 03-15 16:15:00.019: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:15:00.251: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:15:00.319: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:15:06.649: E/Sensors(1201): new acc setDelay handle(0),ns(20000000) err! go to hwmsen 03-15 16:15:06.652: E/Sensors(1201): new acc setDelay handle(0),ns(20000000) err! go to hwmsen 03-15 16:16:00.022: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:16:00.234: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:16:00.305: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:16:00.368: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:16:00.422: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:16:00.475: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:16:00.538: E/memtrack_graphic(1201): open dir: /d/ion/clients/. 03-15 16:16:00.593: E/memtrack_graphic(1201): open dir: /d/ion/clients/.

also for easier view hastebin

hope you can help me

thank you .

Outcomes