[Galaxy Tab S Android Development] meldrak:
Hi,

I have an issue when using my MHL adaptator (EE-HN910), sound is no redirected to TV but continue to play on tablet

I was having the same issue when I tested your Lineage 13 a long time ago, issue is also in RR Rom

11-24 09:02:36.153 2821 2962 V WiredAccessoryManager: Headset UEVENT: {SUBSYSTEM=switch, SEQNUM=37427, ACTION=change, SWITCH_STATE=1, SWITCH_NAME=hdmi, DEVPATH=/devices/virtual/switch/hdmi}
11-24 09:02:36.153 2821 2962 V WiredAccessoryManager: newName=hdmi newState=16 headsetState=16 prev headsetState=0
11-24 09:02:36.154 2821 2962 I WiredAccessoryManager: MSG_NEW_DEVICE_STATE
11-24 09:02:36.154 2821 2821 V WiredAccessoryManager: headsetName: connected
11-24 09:02:36.155 2575 2677 I AudioFlinger: openOutput(), module 10 Device 400, SamplingRate 0, Format 00000000, Channels 0, flags 0
11-24 09:02:36.156 2575 2677 I AudioHwDevice: openOutputStream(), HAL returned sampleRate 0, Format 0, channelMask 0, status -22
11-24 09:02:36.156 2575 2677 W APM_AudioPolicyManager: checkOutputsForDevice() could not open output for device 400
11-24 09:02:36.156 2575 2677 W APM_AudioPolicyManager: checkOutputsForDevice(): No output available for device 0400
11-24 09:02:36.156 2821 2996 E AudioService: not connecting device 0x400 due to command error 1
11-24 09:02:36.158 2821 2871 W LocalDisplayAdapter: Unable to get active color mode for display device 1
11-24 09:02:36.158 2821 2871 E LocalDisplayAdapter: Default and active color mode is no longer available! Reverting to first available mode.
11-24 09:02:36.161 2821 2871 I DisplayManagerService: Display device added: DisplayDeviceInfo{"Écran HDMI": uniqueId="local:1", 1920 x 1080, modeId 4, defaultModeId 4, supportedModes [{id=4, width=1920, height=1080, fps=60.000004}], colorMode -22, supportedColorModes [-22], HdrCapabilities android.view.Display$HdrCapabilities@a69d6308, density 320, 320.0 x 320.0 dpi, appVsyncOff 1000000, presDeadline 16666666, touch EXTERNAL, rotation 0, type HDMI, state UNKNOWN, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, FLAG_PRESENTATION}
11-24 09:02:36.162 2561 2561 D SurfaceFlinger: Set power mode=2, type=1 flinger=0xb6832000
11-24 09:02:36.164 2821 2871 W LocalDisplayAdapter: Unable to find color mode 0, ignoring request.
11-24 09:02:36.164 2821 2871 W LocalDisplayAdapter: Unable to find color mode 0, ignoring request.
11-24 09:02:36.175 2821 2871 I DisplayManagerService: Display device changed state: "Écran HDMI", ON
11-24 09:02:36.184 2821 2975 I InputReader: Reconfiguring input devices. changes=0x00000004
11-24 09:02:36.185 2821 2871 W LocalDisplayAdapter: Unable to find color mode 0, ignoring request.
11-24 09:02:36.185 2821 2871 W LocalDisplayAdapter: Unable to find color mode 0, ignoring request.
11-24 09:02:36.209 2821 2871 W LocalDisplayAdapter: Unable to find color mode 0, ignoring request.
11-24 09:02:36.210 2821 2871 W LocalDisplayAdapter: Unable to find color mode 0, ignoring request.
11-24 09:02:37.013 2821 2962 V WiredAccessoryManager: Headset UEVENT: {SUBSYSTEM=switch, SEQNUM=37429, ACTION=change, SWITCH_STATE=0, SWITCH_NAME=hdmi, DEVPATH=/devices/virtual/switch/hdmi}
11-24 09:02:37.013 2821 2962 V WiredAccessoryManager: newName=hdmi newState=0 headsetState=0 prev headsetState=16
11-24 09:02:37.014 2821 2962 I WiredAccessoryManager: MSG_NEW_DEVICE_STATE
11-24 09:02:37.014 2821 2821 V WiredAccessoryManager: headsetName: disconnected
11-24 09:02:37.014 2821 2821 D AudioService: checkSendBecomingNoisyIntent update the noise
11-24 09:02:37.029 2821 2871 I DisplayManagerService: Display device removed: DisplayDeviceInfo{"Écran HDMI": uniqueId="local:1", 1920 x 1080, modeId 4, defaultModeId 4, supportedModes [{id=4, width=1920, height=1080, fps=60.000004}], colorMode -22, supportedColorModes [-22], HdrCapabilities android.view.Display$HdrCapabilities@a69d6308, density 320, 320.0 x 320.0 dpi, appVsyncOff 1000000, presDeadline 16666666, touch EXTERNAL, rotation 0, type HDMI, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, FLAG_PRESENTATION}
11-24 09:02:37.038 2821 2871 W LocalDisplayAdapter: Unable to find color mode 0, ignoring request.
11-24 09:02:37.041 2821 2975 I InputReader: Reconfiguring input devices. changes=0x00000004
11-24 09:02:37.865 2561 2622 I hwcomposer: HDMI Resolution changed to 1920x1080
11-24 09:02:37.866 2561 2622 E hwcomposer: unknown display attribute 6
11-24 09:02:37.869 2561 2561 D mali_winsys: new_window_surface returns 0x3000, [1920x1080]-format:1
11-24 09:02:37.876 2821 2871 W LocalDisplayAdapter: Unable to get active color mode for display device 1
11-24 09:02:37.877 2821 2871 E LocalDisplayAdapter: Default and active color mode is no longer available! Reverting to first available mode.
11-24 09:02:37.878 2821 2871 I DisplayManagerService: Display device added: DisplayDeviceInfo{"Écran HDMI": uniqueId="local:1", 1920 x 1080, modeId 5, defaultModeId 5, supportedModes [{id=5, width=1920, height=1080, fps=60.000004}], colorMode -22, supportedColorModes [-22], HdrCapabilities android.view.Display$HdrCapabilities@a69d6308, density 320, 320.0 x 320.0 dpi, appVsyncOff 1000000, presDeadline 16666666, touch EXTERNAL, rotation 0, type HDMI, state UNKNOWN, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, FLAG_PRESENTATION}
11-24 09:02:37.878 2561 2561 D SurfaceFlinger: Set power mode=2, type=1 flinger=0xb6832000
11-24 09:02:37.880 2821 2962 V WiredAccessoryManager: Headset UEVENT: {SUBSYSTEM=switch, SEQNUM=37433, ACTION=change, SWITCH_STATE=1, SWITCH_NAME=hdmi, DEVPATH=/devices/virtual/switch/hdmi}
11-24 09:02:37.881 2821 2962 V WiredAccessoryManager: newName=hdmi newState=16 headsetState=16 prev headsetState=0
11-24 09:02:37.883 2821 2962 I WiredAccessoryManager: MSG_NEW_DEVICE_STATE
11-24 09:02:37.883 2821 2821 V WiredAccessoryManager: headsetName: connected
11-24 09:02:37.888 2575 4424 I AudioFlinger: openOutput(), module 10 Device 400, SamplingRate 0, Format 00000000, Channels 0, flags 0
11-24 09:02:37.888 2575 4424 I AudioHwDevice: openOutputStream(), HAL returned sampleRate 0, Format 0, channelMask 0, status -22
11-24 09:02:37.888 2575 4424 W APM_AudioPolicyManager: checkOutputsForDevice() could not open output for device 400
11-24 09:02:37.888 2575 4424 W APM_AudioPolicyManager: checkOutputsForDevice(): No output available for device 0400
11-24 09:02:37.888 2821 2996 E AudioService: not connecting device 0x400 due to command error 1
11-24 09:02:37.896 2821 2871 I DisplayManagerService: Display device changed state: "Écran HDMI", ON
11-24 09:02:37.897 2821 2871 W LocalDisplayAdapter: Unable to find color mode 0, ignoring request.
11-24 09:02:37.897 2821 2871 W LocalDisplayAdapter: Unable to find color mode 0, ignoring request.
11-24 09:02:37.919 2821 2975 I InputReader: Reconfiguring input devices. changes=0x00000004
11-24 09:02:37.922 2821 2871 W LocalDisplayAdapter: Unable to find color mode 0, ignoring request.
11-24 09:02:37.922 2821 2871 W LocalDisplayAdapter: Unable to find color mode 0, ignoring request.
11-24 09:02:43.673 2821 2974 D LightsService: Excessive delay setting light: 53ms