Android X96_X4_Pro1 + optical cable (S/PDIF) + 5.1 surround system + projector
#1
Hi,

new guy here - I sure hope that I am not breaking protocol. I looked around but I didn't find any solution so I thought I 'd ask.

The problem is that I can't get 5.1 AC3 output when the X96 is connected to the projector. It works ok when the HDMI goes to the TV

I had setup Android to (adb shell settings put encoded_surround_output = 2 (always) and 3 (manual)) Kodi to pass-through. This works when it is connected to TV and to the 5.1 system for both AC3 and MP4A files (require trans-coding) because the audio format is negotiated via HDMI.

Now the projector on the other hand having only two channels fails to establish a 5.1 surround encoding. I tried to override it with encoded_surround_output setting (via both settings menu and adb) but it fails resulting in silence or plain PCM 2 channel output.

I enabled logcat and I got that exception near the AUDIO_FORMAT negotiation. Do you think that is related? Do you know how can I silence / fix the exception?

07-03 14:28:45.984   518  1591 E ActivityManager: Sending non-protected broadcast droidlogic.audioservice.action.AUDIO_FORMAT from system 724:com.droidlogic/1000 pkg com.droidlogic
07-03 14:28:45.984   518  1591 E ActivityManager: java.lang.Throwable


Is there a workaround? Is it a Kodi issue? Is it a firmware issue?

Code:
07-03 14:28:45.980  6657  9060 I audio_hw_primary: hw_write, aml_out 0xf2541730 alsa open output_format 0x1
07-03 14:28:45.980  6657  9060 I audio_hw_primary: disable raw_to_pcm_flag --
07-03 14:28:45.982   724  1148 D UEventObserver: change@/devices/platform/auge_sound<C0><80>ACTION=change<C0><80>DEVPATH=/devices/platform/auge_sound<C0><80>SUBSYSTEM=platform<C0><80>AUDIO_FORMAT=2<C0><80>DRIVER=asoc-aml-card<C0><80>OF
_NAME=auge_sound<C0><80>OF_FULLNAME=/auge_sound<C0><80>OF_COMPATIBLE_0=amlogic, auge-sound-card<C0><80>OF_COMPATIBLE_N=1<C0><80>MODALIAS=of:Nauge_soundT(null)Camlogic,_auge-sound-card<C0><80>SEQNUM=4340<C0><80>
07-03 14:28:45.982   724  1148 D AudioSystemCmdService: UEVENT: {SUBSYSTEM=platform, SEQNUM=4340, ACTION=change, OF_FULLNAME=/auge_sound, DRIVER=asoc-aml-card, OF_COMPATIBLE_0=amlogic, auge-sound-card, MODALIAS=of:Nauge_soundT(null)Cam
logic,_auge-sound-card, DEVPATH=/devices/platform/auge_sound, OF_NAME=auge_sound, AUDIO_FORMAT=2, OF_COMPATIBLE_N=1}
07-03 14:28:45.982   724  1148 D AudioSystemCmdService: DEVPATH: /devices/platform/auge_sound
07-03 14:28:45.982   724  1148 D AudioSystemCmdService: audio format string event
07-03 14:28:45.982   724  1148 D AudioSystemCmdService: AUDIO_FORMAT = 2
07-03 14:28:45.982   724  1148 D AudioSystemCmdService: audioFormat = 2
07-03 14:28:45.982   724  1148 D AudioSystemCmdService: covertAudioFormatIndextToEnum: intVal is 2
07-03 14:28:45.982   724  1148 D AudioSystemCmdService: covertAudioFormatIndextToEnum: stringVal is Dolby Audio
07-03 14:28:45.982   724  1148 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1111 android.content.ContextWrapper.sendBroadcast:468 com.droidlogic.audioservice.serv
ices.AudioSystemCmdService$1.onUEvent:120 com.droidlogic.UEventObserver$UEventThread.sendEvent:213 com.droidlogic.UEventObserver$UEventThread.run:190  
07-03 14:28:45.982  6657  9060 D audio_hw_primary: update_audio_hal_info()audio hal format change to 9000000, atmos flag = 0, dts_hp_x = 0, update_type = 2
07-03 14:28:45.984   518  1591 E ActivityManager: Sending non-protected broadcast droidlogic.audioservice.action.AUDIO_FORMAT from system 724:com.droidlogic/1000 pkg com.droidlogic
07-03 14:28:45.984   518  1591 E ActivityManager: java.lang.Throwable
07-03 14:28:45.984   518  1591 E ActivityManager:       at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:15910)
07-03 14:28:45.984   518  1591 E ActivityManager:       at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:16585)
07-03 14:28:45.984   518  1591 E ActivityManager:       at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:15927)
07-03 14:28:45.984   518  1591 E ActivityManager:       at com.android.server.am.ActivityManagerService.broadcastIntentWithFeature(ActivityManagerService.java:16741)
07-03 14:28:45.984   518  1591 E ActivityManager:       at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2283)
07-03 14:28:45.984   518  1591 E ActivityManager:       at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2875)
07-03 14:28:45.984   518  1591 E ActivityManager:       at android.os.Binder.execTransactInternal(Binder.java:1154)
07-03 14:28:45.984   518  1591 E ActivityManager:       at android.os.Binder.execTransact(Binder.java:1123)
07-03 14:28:45.985   518   570 I DropBoxManagerService: add tag=system_server_wtf isTagEnabled=true flags=0x2
07-03 14:28:45.998  6657  6714 I sub_mixing_factory: [usecase_change_validate_l_sm:1198] ++++continuous:0 dev masks:0x9, out masks:0x1, out usecase PCM_NORMAL
07-03 14:28:45.998  6657  6714 I sub_mixing_factory: [usecase_change_validate_l_sm:1248] ----continuous:0 dev masks:0x9, out masks:0x9, out usecase PCM_NORMAL
07-03 14:28:46.014   724   724 I ThermalService: CPU temperatures: [70.9]


Reply
#2
The best thing to do is replicate the issue and provide a link to the uploaded Kodi Debug Log here then someone might be able to analyse what is going on.
Always read the Wiki, FAQ and search the forum before posting.
Read/follow the forum rules.
Reply
#3
thanks for the pointers.

Here is the requested log: iqazeteraj.kodi (paste)

I run the test AC3 file two times. One with no passthrough for which I get stereo only and one with passthrough for which I get nothing.

I wish I could spot anything suspicious in it...

Thanks in advance.
Reply

Logout Mark Read Team Forum Stats Members Help
X96_X4_Pro1 + optical cable (S/PDIF) + 5.1 surround system + projector0