Regards,
Quote
The audio plot thickens! ![]()
My physical setup is 5.1 loudspeakers on the AVR. The AVR does a perfect job of mapping 7.0/7.1 channels and extended objects in DolbyAtmos/DTS-X to the correct loudspeakers as all the tests I made demonstrate using all possible formats. For the record, I owned Yamaha/Onkyo/Denon AVRs and never faced a single case of bad mapping with any format whatsoever on any AVR.
Iāve done some extensive tests and the results are a bit surprising. The tests were:
- Convert quad and 5.x AudioLayout-*.flac files (with
-sidelayout variants) to AC3 with FFMPEG (which preserves the channel layout) in order to confirm that when these files are played in passthrough mode, everything works as expected. Works perfectly in all cases! - Boot my NUC PC (old i5-8250U) using LibreELEC 12.0.2, connected through the same AVR, to test all FLAC files and confirm that they sound as they should. Works perfectly in all cases!
- Get kodi debug logs in both cases to pinpoint differences. The logs output follows.
The first noticeable thing in the CE-NO debug logs is that the channel count and selected layout seems to always be correctā¦
But⦠the channel content (PCM data) sent on the wire is wrong or absent in quad, 5.0 and 7.0 layouts for anything outside FrontRight and FrontLeft!
Notable differences between CE-NO and LE-x86:
- CE-NO always sends AE_FMT_S24NE4 sample format when LE-x86 sends AE_FMT_S32NE probably because of
Your hardware does not support AE_FMT_FLOAT, trying other formats - In 5.1 and 7.1 layout, the LFE and FC (FrontCenter) are always swapped between CE-NO and LE-x86, yet the sound output is always from the correct loudspeaker in both systems. In 7.1 SL/SR and BL/BR are also swapped. According to the norm, LE-x86 is correct to send FC,LFE in that order.
- In 5.0 and 7.0 LE-x86 always sends 6 and 8 channels (with an UNKNOWN1 id) instead of 5 and 7 but apparently, the AVR is not fooled as it correctly detects the absence of the LFE channel as the on-screen info panel shows
My conclusion is that CE-NO sends the correct layout but not the correct PCM content in the wire. That explains why the AVR shows the correct layout in the on-screen info panel but the sound output from the speakers is wrong in quad/5.0/7.0 layouts.
Debug log from CE-NO playing the FLAC files
For readability, Iāve narrowed the data to the relevant parts and separated each played file with = lines
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-quad.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: SeekTime - seek ended up on time 0
debug <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:surround71:CARD=AMLAUGESOUND,DEV=0
info <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
info <general>: CAESinkALSA - Use card "hw:0" and set codec format "8 CH PCM"
info <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif_b"
info <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
info <general>: CAESinkALSA - Set codec for "Audio I2S to HDMITX Format"
info <general>: CAESinkALSA - Set codec for "Audio spdif format"
info <general>: CAESinkALSA::Initialize - Attempting to open device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 4 Output Channel Count: 4
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, BL, BR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, BL, BR (ALSA: FL FR RL RR)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : AML-AUGESOUND
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S24NE4
debug <general>: Channel Count : 4
debug <general>: Channel Layout: FL, FR, BL, BR
debug <general>: Frames : 2400
debug <general>: Frame Size : 16
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-quad-side.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: unrecognized XipComment name: WAVEFORMATEXTENSIBLE_CHANNEL_MASK
debug <general>: SeekTime - seek ended up on time 0
debug <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:surround71:CARD=AMLAUGESOUND,DEV=0
info <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
info <general>: CAESinkALSA - Use card "hw:0" and set codec format "8 CH PCM"
info <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif_b"
info <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
info <general>: CAESinkALSA - Set codec for "Audio I2S to HDMITX Format"
info <general>: CAESinkALSA - Set codec for "Audio spdif format"
info <general>: CAESinkALSA::Initialize - Attempting to open device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 4 Output Channel Count: 4
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, SL, SR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, SL, SR (ALSA: FL FR RL RR)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : AML-AUGESOUND
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S24NE4
debug <general>: Channel Count : 4
debug <general>: Channel Layout: FL, FR, SL, SR
debug <general>: Frames : 2400
debug <general>: Frame Size : 16
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-5.0.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: unrecognized XipComment name: WAVEFORMATEXTENSIBLE_CHANNEL_MASK
debug <general>: SeekTime - seek ended up on time 0
debug <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:surround71:CARD=AMLAUGESOUND,DEV=0
info <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
info <general>: CAESinkALSA - Use card "hw:0" and set codec format "8 CH PCM"
info <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif_b"
info <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
info <general>: CAESinkALSA - Set codec for "Audio I2S to HDMITX Format"
info <general>: CAESinkALSA - Set codec for "Audio spdif format"
info <general>: CAESinkALSA::Initialize - Attempting to open device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 5 Output Channel Count: 5
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, FC, BL, BR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, FC, BL, BR (ALSA: FL FR FC RL RR)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : AML-AUGESOUND
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S24NE4
debug <general>: Channel Count : 5
debug <general>: Channel Layout: FL, FR, FC, BL, BR
debug <general>: Frames : 2400
debug <general>: Frame Size : 20
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-5.0-side.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: SeekTime - seek ended up on time 0
debug <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:surround71:CARD=AMLAUGESOUND,DEV=0
info <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
info <general>: CAESinkALSA - Use card "hw:0" and set codec format "8 CH PCM"
info <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif_b"
info <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
info <general>: CAESinkALSA - Set codec for "Audio I2S to HDMITX Format"
info <general>: CAESinkALSA - Set codec for "Audio spdif format"
info <general>: CAESinkALSA::Initialize - Attempting to open device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 5 Output Channel Count: 5
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, FC, SL, SR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, FC, SL, SR (ALSA: FL FR FC RL RR)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : AML-AUGESOUND
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S24NE4
debug <general>: Channel Count : 5
debug <general>: Channel Layout: FL, FR, FC, SL, SR
debug <general>: Frames : 2400
debug <general>: Frame Size : 20
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-5.1.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: unrecognized XipComment name: WAVEFORMATEXTENSIBLE_CHANNEL_MASK
debug <general>: SeekTime - seek ended up on time 0
debug <general>: SeekTime - seek ended up on time 0
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:surround71:CARD=AMLAUGESOUND,DEV=0
info <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
info <general>: CAESinkALSA - Use card "hw:0" and set codec format "8 CH PCM"
info <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif_b"
info <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
info <general>: CAESinkALSA - Set codec for "Audio I2S to HDMITX Format"
info <general>: CAESinkALSA - Set codec for "Audio spdif format"
info <general>: CAESinkALSA::Initialize - Attempting to open device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 6 Output Channel Count: 6
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, FC, LFE, BL, BR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, LFE, FC, BL, BR (ALSA: FL FR LFE FC RL RR)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : AML-AUGESOUND
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S24NE4
debug <general>: Channel Count : 6
debug <general>: Channel Layout: FL, FR, LFE, FC, BL, BR
debug <general>: Frames : 2400
debug <general>: Frame Size : 24
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-5.1-side.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: SeekTime - seek ended up on time 0
debug <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CMusicGUIInfo::InitCurrentItem([REDACTED]/AudioDemos/AudioLayout-5.1-side.flac)
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:surround71:CARD=AMLAUGESOUND,DEV=0
info <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
info <general>: CAESinkALSA - Use card "hw:0" and set codec format "8 CH PCM"
info <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif_b"
info <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
info <general>: CAESinkALSA - Set codec for "Audio I2S to HDMITX Format"
info <general>: CAESinkALSA - Set codec for "Audio spdif format"
info <general>: CAESinkALSA::Initialize - Attempting to open device "surround71:CARD=AMLAUGESOUND,DEV=0"
debug <general>: bool CFileItem::LoadMusicTag(): Loading tag information for file: [REDACTED]/AudioDemos/AudioLayout-5.1-side.flac
debug <general>: unrecognized XipComment name: ENCODER
info <general>: CAESinkALSA::Initialize - Opened device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: Loading additional tag info for file [REDACTED]/AudioDemos/AudioLayout-5.1-side.flac
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: CPlayerGUIInfo::InitCurrentItem([REDACTED]/AudioDemos/AudioLayout-5.1-side.flac)
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 6 Output Channel Count: 6
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, FC, LFE, SL, SR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, LFE, FC, SL, SR (ALSA: FL FR LFE FC RL RR)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : AML-AUGESOUND
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S24NE4
debug <general>: Channel Count : 6
debug <general>: Channel Layout: FL, FR, LFE, FC, SL, SR
debug <general>: Frames : 2400
debug <general>: Frame Size : 24
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-7.0.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: unrecognized XipComment name: WAVEFORMATEXTENSIBLE_CHANNEL_MASK
debug <general>: SeekTime - seek ended up on time 0
debug <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:surround71:CARD=AMLAUGESOUND,DEV=0
info <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
info <general>: CAESinkALSA - Use card "hw:0" and set codec format "8 CH PCM"
info <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif_b"
info <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
info <general>: CAESinkALSA - Set codec for "Audio I2S to HDMITX Format"
info <general>: CAESinkALSA - Set codec for "Audio spdif format"
info <general>: CAESinkALSA::Initialize - Attempting to open device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 7 Output Channel Count: 7
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, FC, BL, BR, SL, SR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, FC, SL, SR, BL, BR (ALSA: FL FR FC RL RR RLC RRC)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : AML-AUGESOUND
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S24NE4
debug <general>: Channel Count : 7
debug <general>: Channel Layout: FL, FR, FC, SL, SR, BL, BR
debug <general>: Frames : 2400
debug <general>: Frame Size : 28
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-7.1.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: SeekTime - seek ended up on time 0
debug <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:surround71:CARD=AMLAUGESOUND,DEV=0
info <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
info <general>: CAESinkALSA - Use card "hw:0" and set codec format "8 CH PCM"
info <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif_b"
info <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
info <general>: CAESinkALSA - Set codec for "Audio I2S to HDMITX Format"
info <general>: CAESinkALSA - Set codec for "Audio spdif format"
info <general>: CAESinkALSA::Initialize - Attempting to open device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "surround71:CARD=AMLAUGESOUND,DEV=0"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 8 Output Channel Count: 8
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, FC, LFE, BL, BR, SL, SR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, LFE, FC, SL, SR, BL, BR (ALSA: FL FR LFE FC RL RR RLC RRC)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : AML-AUGESOUND
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S24NE4
debug <general>: Channel Count : 8
debug <general>: Channel Layout: FL, FR, LFE, FC, SL, SR, BL, BR
debug <general>: Frames : 2400
debug <general>: Frame Size : 32
Debug log from LE-x86 playing the FLAC files
In case it could be useful
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-quad.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: SeekTime - seek ended up on time 0
info <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=PCH,DEV=0
info <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=PCH,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=PCH,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x02"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 4 Output Channel Count: 4
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, BL, BR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, BL, BR (ALSA: FL FR RL RR)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : HDA Intel PCH
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S32NE
debug <general>: Channel Count : 4
debug <general>: Channel Layout: FL, FR, BL, BR
debug <general>: Frames : 2400
debug <general>: Frame Size : 16
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-quad-side.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: unrecognized XipComment name: WAVEFORMATEXTENSIBLE_CHANNEL_MASK
debug <general>: SeekTime - seek ended up on time 0
info <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=PCH,DEV=0
info <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=PCH,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=PCH,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x02"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 4 Output Channel Count: 4
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, SL, SR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, SL, SR (ALSA: FL FR RL RR)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : HDA Intel PCH
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S32NE
debug <general>: Channel Count : 4
debug <general>: Channel Layout: FL, FR, SL, SR
debug <general>: Frames : 2400
debug <general>: Frame Size : 16
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-5.0.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: unrecognized XipComment name: WAVEFORMATEXTENSIBLE_CHANNEL_MASK
debug <general>: SeekTime - seek ended up on time 0
info <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=PCH,DEV=0
info <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=PCH,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=PCH,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x02"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 5 Output Channel Count: 6
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, FC, BL, BR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, FC, BL, BR, UNKNOWN1 (ALSA: FL FR FC RL RR UNKNOWN)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : HDA Intel PCH
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S32NE
debug <general>: Channel Count : 6
debug <general>: Channel Layout: FL, FR, FC, BL, BR, UNKNOWN1
debug <general>: Frames : 2400
debug <general>: Frame Size : 24
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-5.0-side.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: SeekTime - seek ended up on time 0
info <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=PCH,DEV=0
info <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=PCH,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=PCH,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x02"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 5 Output Channel Count: 6
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, FC, SL, SR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, FC, SL, SR, UNKNOWN1 (ALSA: FL FR FC RL RR UNKNOWN)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : HDA Intel PCH
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S32NE
debug <general>: Channel Count : 6
debug <general>: Channel Layout: FL, FR, FC, SL, SR, UNKNOWN1
debug <general>: Frames : 2400
debug <general>: Frame Size : 24
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-5.1.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: unrecognized XipComment name: WAVEFORMATEXTENSIBLE_CHANNEL_MASK
debug <general>: SeekTime - seek ended up on time 0
info <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=PCH,DEV=0
info <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=PCH,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=PCH,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x02"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 6 Output Channel Count: 6
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, FC, LFE, BL, BR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, FC, LFE, BL, BR (ALSA: FL FR FC LFE RL RR)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : HDA Intel PCH
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S32NE
debug <general>: Channel Count : 6
debug <general>: Channel Layout: FL, FR, FC, LFE, BL, BR
debug <general>: Frames : 2400
debug <general>: Frame Size : 24
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-5.1-side.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: SeekTime - seek ended up on time 0
info <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=PCH,DEV=0
info <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=PCH,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=PCH,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x02"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 6 Output Channel Count: 6
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, FC, LFE, SL, SR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, FC, LFE, SL, SR (ALSA: FL FR FC LFE RL RR)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : HDA Intel PCH
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S32NE
debug <general>: Channel Count : 6
debug <general>: Channel Layout: FL, FR, FC, LFE, SL, SR
debug <general>: Frames : 2400
debug <general>: Frame Size : 24
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-7.0.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: unrecognized XipComment name: WAVEFORMATEXTENSIBLE_CHANNEL_MASK
debug <general>: SeekTime - seek ended up on time 0
info <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=PCH,DEV=0
info <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=PCH,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=PCH,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x02"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 7 Output Channel Count: 8
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, FC, BL, BR, SL, SR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, FC, BL, BR, SL, SR, UNKNOWN1 (ALSA: FL FR FC RLC RRC RL RR UNKNOWN)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : HDA Intel PCH
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S32NE
debug <general>: Channel Count : 8
debug <general>: Channel Layout: FL, FR, FC, BL, BR, SL, SR, UNKNOWN1
debug <general>: Frames : 2400
debug <general>: Frame Size : 32
===================================
debug <general>: CPlayerCoreFactory::GetPlayers([REDACTED]/AudioDemos/AudioLayout-7.1.flac)
debug <general>: Open - probing detected format [flac]
debug <general>: Open - avformat_find_stream_info starting
debug <general>: Open - av_find_stream_info finished
debug <general>: CDVDDemuxFFmpeg::AddStream ID: 0
info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder flac
debug <general>: unrecognized XipComment name: ENCODER
debug <general>: SeekTime - seek ended up on time 0
info <general>: Skipped 1 duplicate messages..
info <general>: AudioDecoder: File is queued
info <general>: CActiveAESink::OpenSink - initialize sink
debug <general>: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=PCH,DEV=0
info <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=PCH,DEV=0"
info <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=PCH,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x02"
info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
debug <general>: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Got: periodSize 2400, bufferSize 9600
debug <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
debug <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 8 Output Channel Count: 8
debug <general>: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR, FC, LFE, BL, BR, SL, SR
debug <general>: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR, FC, LFE, BL, BR, SL, SR (ALSA: FL FR FC LFE RLC RRC RL RR)
debug <general>: CActiveAESink::OpenSink - ALSA Initialized:
debug <general>: Output Device : HDA Intel PCH
debug <general>: Sample Rate : 48000
debug <general>: Sample Format : AE_FMT_S32NE
debug <general>: Channel Count : 8
debug <general>: Channel Layout: FL, FR, FC, LFE, BL, BR, SL, SR
debug <general>: Frames : 2400
debug <general>: Frame Size : 32
Very interesting!
Did you perform an update or a fresh install?
In case of updates, did you update with each release or made big jumps?
I intend to spend some time testing this. Thank you for the useful info.
Only full logs are accepted.
This is current used channel mapping:
OK, here they are, I only removed the timestamps when I posted the previous message earlier but no line is missing besides that. I donāt have the timestamps anymore.
CE-NO 20250625 https://paste.coreelec.org/BoilerLegal
LE-x86 12.0.2 https://paste.coreelec.org/MerchantAttached
Interesting. I see that on line 1939 the struct members are iterated in sequence to search for a match and I suspect this could be the source of the mapping problem unless I missed something. The thing is that most of these channel layouts are extremely rare and probably never used at all in the wild.
Currently, all the mapping problems I encountered as well as Joe_90 are mappings without LFE. If you look at the struct members from top to bottom, youāll see that the first 4ch layout is AE_CH_LAYOUT_3_1, the first 5ch is 4.1 and the first 7ch is 6.1 which all have a very different mapping from actual 4ch/5ch/7ch found in real usage.
I wonder what would happen if the struct members were reordered like this
static struct channel_speaker_allocation channel_allocations[] = {
// channel: 7, 6, 5, 4, 3, 2, 1, 0
// => Most common layouts
{ .channels = 2, .speakers = { FR, FL } }, // AE_CH_LAYOUT_2_0 0x00
{ .channels = 3, .speakers = { LFE, FR, FL } }, // AE_CH_LAYOUT_2_1 0x01
{ .channels = 4, .speakers = { RR, RL, FR, FL } }, // AE_CH_LAYOUT_4_0 0x08
{ .channels = 5, .speakers = { RR, RL, FC, FR, FL } }, // AE_CH_LAYOUT_5_0 0x0a
{ .channels = 6, .speakers = { RR, RL, FC, LFE, FR, FL } }, // AE_CH_LAYOUT_5_1 0x0b
{ .channels = 7, .speakers = { RRC, RLC, RR, RL, FC, FR, FL } }, // AE_CH_LAYOUT_7_0 0x12
{ .channels = 8, .speakers = { RRC, RLC, RR, RL, FC, LFE, FR, FL } }, // AE_CH_LAYOUT_7_1 0x13
// => Rarities
{ .channels = 3, .speakers = { FC, FR, FL } }, // AE_CH_LAYOUT_3_0 0x02
{ .channels = 4, .speakers = { FC, LFE, FR, FL } }, // AE_CH_LAYOUT_3_1 0x03
{ .channels = 3, .speakers = { RC, FR, FL } }, // 3.0 0x04
{ .channels = 4, .speakers = { RC, LFE, FR, FL } }, // 3.1 0x05
{ .channels = 4, .speakers = { RC, FC, FR, FL } }, // 4.0 0x06
{ .channels = 5, .speakers = { RC, FC, LFE, FR, FL } }, // 4.1 0x07
{ .channels = 5, .speakers = { RR, RL, LFE, FR, FL } }, // AE_CH_LAYOUT_4_1 0x09
{ .channels = 5, .speakers = { RC, RR, RL, FR, FL } }, // 5.0 0x0c
{ .channels = 6, .speakers = { RC, RR, RL, LFE, FR, FL } }, // 5.1 0x0d
{ .channels = 6, .speakers = { RC, RR, RL, FC, FR, FL } }, // 6.0 0x0e
{ .channels = 7, .speakers = { RC, RR, RL, FC, LFE, FR, FL } }, // 6.1 0x0f
{ .channels = 6, .speakers = { RRC, RLC, RR, RL, FR, FL } }, // 6.0 0x10
{ .channels = 7, .speakers = { RRC, RLC, RR, RL, LFE, FR, FL } }, // 6.1 0x11
{ .channels = 4, .speakers = { FRC, FLC, FR, FL } }, // 4.0 0x14
{ .channels = 5, .speakers = { FRC, FLC, LFE, FR, FL } }, // 4.1 0x15
{ .channels = 5, .speakers = { FRC, FLC, FC, FR, FL } }, // 5.0 0x16
{ .channels = 6, .speakers = { FRC, FLC, FC, LFE, FR, FL } }, // 5.1 0x17
{ .channels = 5, .speakers = { FRC, FLC, RC, FR, FL } }, // 5.0 0x18
{ .channels = 6, .speakers = { FRC, FLC, RC, LFE, FR, FL } }, // 5.1 0x19
{ .channels = 6, .speakers = { FRC, FLC, RC, FC, FR, FL } }, // 6.0 0x1A
{ .channels = 7, .speakers = { FRC, FLC, RC, FC, LFE, FR, FL } }, // 6.1 0x1B
{ .channels = 6, .speakers = { FRC, FLC, RR, RL, FR, FL } }, // 6.0 0x1C
{ .channels = 7, .speakers = { FRC, FLC, RR, RL, LFE, FR, FL } }, // 6.1 0x1D
{ .channels = 7, .speakers = { FRC, FLC, RR, RL, FC, FR, FL } }, // 7.0 0x1E
{ .channels = 8, .speakers = { FRC, FLC, RR, RL, FC, LFE, FR, FL } }, // 7.1 0x1F
};
Am I wrong to think that?
I was using a test USB stick I have, I donāt remember if updated or did a fresh install. I was using it to check on some other things, and only tried the s905x4 atv11 device when you mentioned video playback problems. Burn a second USB stick with 20250717 to test on your box.
I found the problem and Iām now running CE-NO 20250717 just fine
This was hard to find and took me a hell of time to pinpoint. I started with CE-NO 20250704 on a fresh install and slowly āimportedā the settings from my backups, one by one. It took a large chunk of time to work it out.
I couldnāt believe it, a very old setting I used for ages: Settings > System > Display > Delay after change of refresh rate!
Mine was set to 3.0s for convenience so the video and audio start at the same time without interference like the small delay implied by the AVR (which must detect the video/audio formats and send it to the TV which in turn must resync) and also the info popup on TV telling the resolution, HDR mode, refresh rate, etc. With the 3.0s delay, the video would start with a pure black screen.
There must be a race condition somewhere or some incompatibility because 20250625 (and any release since I bought the Boxr) worked fine and starting from 20250704, there would be no video/audio display of any kind if the delay is >= 0.5s ! From 0.1s to 0.4s it still works.
Iām glad I find out so I set the delay to off and everything seems to work fine again.
Using CE proves to be an intense adventure, all in all very interesting despite a few issues here and there throughout history
The benefits largely outweighs the issues, thank you CE team ![]()
Iām still getting the warning about kernel needing to be 5.15.137. I have tried copying the dovi.ko to each of these locations and rebooting but still get the warning. The box is a TOX3 s905x4 4gb 64g with 1g lan. I have a different s905x4 box where copying the file to /storage/.config/ works (that is a G7 max from magicsee).
Any ideas as to why it wonāt work on TOX3?? Thx. Kodi log is attached but could not find anything in there.
kodi.log (52.7 KB)
EDIT: Just went to the box that does not get the warning (G7 max) and renamed dovi.ko to dovi.koz and rebooted expecting the warning, but I did not get a warning??!! Both boxes are running latest CE-22 NO and have the exact same contents (full CoreELEC backup from one box was restored to other box).
EDIT2:
I have uploaded latest Kodi log and configs to paste.coreelec.org/CouldnDitching and configs and other debug info without logs to paste.coreelec.org/ReservedPleading
Found this in one of the logs:-
Jun 25 13:37:07 CoreELEC dovi-loader[1182]: loading dovi module from ce partition
Jun 25 13:37:07 CoreELEC dovi-loader[1183]: filename: /storage/.config/dovi.ko
Jun 25 13:37:07 CoreELEC dovi-loader[1183]: description: Amlogic Dolby Vision Driver
Jun 25 13:37:07 CoreELEC dovi-loader[1183]: license: AML
Jun 25 13:37:07 CoreELEC dovi-loader[1183]: vermagic: 5.15.137-android14-11-maybe-dirty SMP preempt mod_unload modversions aarch64
Jun 25 13:37:07 CoreELEC dovi-loader[1183]: name: dovi_gen_5_15_stb26
Jun 25 13:37:07 CoreELEC dovi-loader[1183]: depends:
Jun 25 13:37:07 CoreELEC dovi-loader[1184]: insmod: ERROR: could not insert module /storage/.config/dovi.ko: Operation not permitted
Jun 25 13:37:07 CoreELEC dovi-loader[1192]: modinfo: ERROR: could not get modinfo from ādoviā: Exec format error
Jun 25 13:37:07 CoreELEC dovi-loader[1192]: filename: /android/odm/lib/modules/dovi.ko
Jun 25 13:37:07 CoreELEC dovi-loader[1194]: modinfo: ERROR: could not get modinfo from ādoviā: Exec format error
Jun 25 13:37:07 CoreELEC systemd[1]: Finished opentee_linuxdriver.service.
Seems to suggest a problem with the dovi.ko file?? Still confused as to why the G7 max s905x4 box does not show the warning but the TOX3 s905x4 box does. They are running same version of CE-22 NO and are using the same CE backup.
I have uploaded latest Kodi log and configs to paste.coreelec.org/CouldnDitching and configs and other debug info without logs to paste.coreelec.org/ReservedPleading
Found this in one of the logs:
Jun 25 13:37:07 CoreELEC dovi-loader[1182]: loading dovi module from ce partition
Jun 25 13:37:07 CoreELEC dovi-loader[1183]: filename: /storage/.config/dovi.ko
Jun 25 13:37:07 CoreELEC dovi-loader[1183]: description: Amlogic Dolby Vision Driver
Jun 25 13:37:07 CoreELEC dovi-loader[1183]: license: AML
Jun 25 13:37:07 CoreELEC dovi-loader[1183]: vermagic: 5.15.137-android14-11-maybe-dirty SMP preempt mod_unload modversions aarch64
Jun 25 13:37:07 CoreELEC dovi-loader[1183]: name: dovi_gen_5_15_stb26
Jun 25 13:37:07 CoreELEC dovi-loader[1183]: depends:
Jun 25 13:37:07 CoreELEC dovi-loader[1184]: insmod: ERROR: could not insert module /storage/.config/dovi.ko: Operation not permitted
Jun 25 13:37:07 CoreELEC dovi-loader[1192]: modinfo: ERROR: could not get modinfo from 'dovi': Exec format error
Jun 25 13:37:07 CoreELEC dovi-loader[1192]: filename: /android/odm/lib/modules/dovi.ko
Jun 25 13:37:07 CoreELEC dovi-loader[1194]: modinfo: ERROR: could not get modinfo from 'dovi': Exec format error
Jun 25 13:37:07 CoreELEC systemd[1]: Finished opentee_linuxdriver.service.
Seems to suggest a problem with the dovi.ko file??
For ce 22 no you must use 64bit dovi with size about cca 840 kb, if i well remember.
Iām using this one which is 430kb on an X96 X10.
ERROR: could not get modinfo from 'dovi': Exec format error
Looks like you did not sync after file copy and itās damaged now. Make a hash check on origin file and your file on the device. I am sure itās different.
Make new clean install and/or try to copy it again.
So I had my X96 X10 rescanning movie files today.
After working on wifi for half the day, I noticed that it dropped off the network, and when I checked, kodi was frozen.
After a power cycle, it seems to not know it has wifi at all.
Iāve plugged it into ethernet, but thereās no mention of wifi at all in the CoreElec menu.
ifconfig and ls /sys/class/net only list eth0 and lo.
dmesg | grep -i wifi
[ 0.000000] Kernel command line: systemd.show_status=auto init=/init console=ttyS0,921600 no_console_suspend earlycon=aml-uart,0xfe078000 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 loop.max_part=4 scramble_reg=0xfe02e030 otg_device=0 logo=osd0,loaded,0x3e800000 vout=2160p60hz,enable panel_type=lcd_1 hdmitx=,420,10bit hdmimode=none hdmichecksum=0x7ace0000 dolby_vision_on=0 hdr_policy=1 hdr_priority=1 frac_rate_policy=1 hdmi_read_edid=1 cvbsmode=576cvbs osd_reverse=0 video_reverse=0 irq_check_en=0 androidboot.selinux=permissive androidboot.firstboot=0 jtag=disable disable_ir=0 androidboot.bootloader=01.01.240507.121107 androidboot.hardware=amlogic mac=90:0E:B3:B0:71:E9 androidboot.mac=90:0E:B3:B0:71:E9 androidboot.wificountrycode=US androidboot.serialno=tyson8096601107210e0a BOOT_IMAGE=kernel.img boot=LABEL=COREELEC disk=LABEL=STORAGE console=tty0 no_console_suspend keymap=us hdmitx=cec7f remotewakeup=0xffffffff decode_type=0 remotewakeupmask=0xffffffff
[ 1.334784] [wifi_dev_probe] buf_level is :2
[ 4.770667] wifi_dummy: loading out-of-tree module taints kernel.
[ 4.771173] wifi_dummy: Triggered SDIO/PCIe WiFi power on and bus rescan
[ 4.771237] wifi_dummy: found disabled sdio@fe088000
[ 4.771257] wifi_dummy: found enabled pcie@e0000000
[ 4.771396] wifi_dummy: SDIO disabled, PCIe enabled
It seems the wifi device has disappeared.
I think the āloading out-of-tree module taints kernel.ā sounds like something important, but Iām not experienced enough to know how to fix it.
How can I troubleshoot the lack of wifi?
This dmesg snipped will not tell much.
Reboot and will come back.
I did reboot a few times and it didnāt resolve, but I just rebooted from emmc and toggled the wifi back on (it was off).
I checked the checkbox a few times (it kept disabling the checkbox when I reentered the menu). Then I chose to restart and it hung on boot, but then after a power cycle the wifi has returned!
Tried with a fresh install. Same results. I used WinSCP to copy dovi.ko file to ābadā s905x4 (TOX3) and WinSCP has a hash check tool. Hash check shows file to be same on PC and s905x4.
The log links are here - s905x4 - warning is shown:-
[https://paste.coreelec.org/SquaresManning]
[https://paste.coreelec.org/NinnyExtreme]
Looks like same error as in previous post.
I then went back to the s905x4 box that does not give the warning, (and has the same dovi.ko file), (magicsee G7 max) and here are the same logs from that box - warning is NOT shown:-
[https://paste.coreelec.org/ErasingRebadow]
[https://paste.coreelec.org/GovernPoses]
This also gives āinsmodā error in log but no warning comes up about android kernel level. This is using same dovi.ko file (430k)
Does @YadaYada have any ideas??
EDIT:- The box without the warning shows this in one of the logs -
Jun 25 13:37:07 CoreELEC dovi-loader[1172]: insmod: ERROR: could not insert module /storage/.config/dovi.ko: Operation not permitted
Jun 25 13:37:07 CoreELEC dovi-loader[1186]: umount: /android/vendor: target is busy.
Jun 25 13:37:07 CoreELEC systemd[1]: Finished opentee_linuxdriver.service.
Talks about ātarget is busyā. Maybe because it canāt actually verify dovi.ko because android is in use, it does not display the warning about android kernel level?
The box that shows the warning in its log says:-
Jun 25 13:37:08 CoreELEC dovi-loader[1185]: insmod: ERROR: could not insert module /storage/.config/dovi.ko: Operation not permitted
Jun 25 13:37:08 CoreELEC dovi-loader[1193]: modinfo: ERROR: could not get modinfo from ādoviā: Exec format error
Jun 25 13:37:08 CoreELEC dovi-loader[1193]: filename: /android/odm/lib/modules/dovi.ko
Jun 25 13:37:08 CoreELEC dovi-loader[1195]: modinfo: ERROR: could not get modinfo from ādoviā: Exec format error
Jun 25 13:37:08 CoreELEC systemd[1]: Finished opentee_linuxdriver.service.
This checks ā/android/odm/lib/modules/dovi.koā and errors out. As a complete novice on this, just looks like the ādovi.koā file is the incorrect file for my S905x4 boxes. Yet this is the file that is supposed to be for the s905x4.
I donāt know why module is loaded twice: first from /storage/.config/dovi.ko which succeed (I think), and then also from /android/odm/lib/modules/dovi.ko (which failed because it is not compatible with kernel (I assume).
This line indicates that dovi is active I think: kernel: [dovi_gen_5_15_stb26]: *** amlogic_dolby_vision_init dv: gen ***
Could you enable terminal sharing so I could look around to see why it loads twice?
https://wiki.coreelec.org/coreelec:term_share
Hi,
I think itās set up. Do I need to do anything else?
This is a fresh install.
Both boxes fail with insmod of /storage/.config/dovi.ko