bitlisz Wrote:But as I said no problem with any 7.1...
The problem only with:
Dolby Digital TrueHD 5.1 and AAC5.1 (swaping channels)
DTS from wav
Dolby Digital Plus (audio dropouts/lots of hdmi reconnects)
[/url]
OK, i got both samples, DDTrueHD51.m2ts and 8_Channel_ID.flac
So, what a have in system and in xbmc.
1.
speaker-test -Dhdmi -c6 -r192000 -FS32_LE
speaker-test 1.0.22
Playback device is hdmi
Stream parameters are 192000Hz, S32_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 192000Hz (requested 192000Hz)
Buffer size range from 32 to 2720
Period size range from 16 to 1360
Using max buffer size 2720
Periods = 4
was set period_size = 544
was set buffer_size = 2720
0 - Front Left
4 - Center
1 - Front Right
3 - Rear Right
2 - Rear Left
5 - LFE
channel mapping right receiver show 6ch PCM
2.
speaker-test -Dhdmi -c8 -r192000 -FS32_LE
speaker-test 1.0.22
Playback device is hdmi
Stream parameters are 192000Hz, S32_LE, 8 channels
Using 16 octaves of pink noise
Rate set to 192000Hz (requested 192000Hz)
Buffer size range from 8 to 2048
Period size range from 4 to 1024
Using max buffer size 2048
Periods = 4
was set period_size = 512
was set buffer_size = 2048
0 - Front Left
4 - Center
1 - Front Right
7 - Side Right
3 - Rear Right
2 - Rear Left
6 - Side Left
5 - LFE
channel mapping right receiver show 8ch PCM
So, system alsa mapping seems to be correct.
Now try to play samples, first - DDTrueHD51.m2ts
xbmc.log:
19:14:29 T:3086329824 M:3431227392 DEBUG: GetMusicVideoId (/storage/tmp/samples/11/DDTrueHD51.m2ts)
, query = select idMVideo from musicvideo where idFile=1167
19:14:29 T:2916088688 M:3431227392 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(33344.000000, 1
)
19:14:29 T:2916088688 M:3431227392 NOTICE: Creating audio device with codec id: 86064, channels: 6,
sample rate: 48000, no pass-through
19:14:29 T:2916088688 M:3431227392 DEBUG: CALSADirectSound::CALSADirectSound - Channels: 6 - Sample
Rate: 48000 - SampleBit: 16 - Resample false - Codec PCM - IsMusic false - IsPassthrough false - audi
oDevice: plug:hdmi
19:14:29 T:2916088688 M:3431227392 DEBUG: RemoveActiveDevice - Removing device 1
19:14:29 T:2916088688 M:3431227392 DEBUG: SetActiveDevice - SetActiveDevice from 0 to 2
19:14:29 T:2916088688 M:3431227392 DEBUG: RemoveActiveDevice - Removing device 0
19:14:29 T:2939661168 M:3431227392 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
19:14:29 T:2939661168 M:3431227392 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(0.000000, 0)
19:14:29 T:2916088688 M:3431227392 DEBUG: Initialize - using alsa device xbmc_win51:'plug:hdmi'
On receiver - 6ch PCM, channel mapping right !
Last line from log shows xbmc_win51 mapping, which i do not touch at all,
so, this work correctly without my patch.
Now flac (play with DVDPlayer):
19:15:57 T:3086329824 M:3430141952 DEBUG: CGUIInfoManager::SetCurrentSong(/storage/tmp/samples/11/8
_Channel_ID.flac)
19:15:57 T:3086329824 M:3430141952 DEBUG: LoadMusicTag: loading tag information for file: /storage/
tmp/samples/11/8_Channel_ID.flac
19:15:57 T:2968849264 M:3430141952 NOTICE: running thread: CDVDPlayerAudio:
rocess()
19:15:57 T:2968849264 M:3430141952 NOTICE: Creating audio device with codec id: 86031, channels: 8,
sample rate: 48000, no pass-through
19:15:57 T:2968849264 M:3430141952 DEBUG: CALSADirectSound::CALSADirectSound - Channels: 8 - Sample
Rate: 48000 - SampleBit: 16 - Resample false - Codec PCM - IsMusic false - IsPassthrough false - audi
oDevice: plug:hdmi
19:15:57 T:2968849264 M:3430141952 DEBUG: RemoveActiveDevice - Removing device 1
19:15:57 T:2968849264 M:3430141952 DEBUG: SetActiveDevice - SetActiveDevice from 0 to 2
19:15:57 T:2968849264 M:3430141952 DEBUG: RemoveActiveDevice - Removing device 0
19:15:57 T:3086329824 M:3430141952 DEBUG: Loading additional tag info for file /storage/tmp/samples
/11/8_Channel_ID.flac
19:15:57 T:2968849264 M:3430141952 DEBUG: Initialize - using alsa device xbmc_win71:'plug:hdmi'
receiver show 8ch PCM, channel mapping right.
From last line we see xbmc_win71 mapping which is my
Try please speaker-test as above, to check correct system channel mapping.
And now AAC, i have only one such movie. First i have convert audio track
from AAC to AC3 with mplayer and use pass-through when play in xbmc
to check that channel mapping in original movie is correct, then play original AAC:
19:53:08 T:2895108976 M:3426988032 DEBUG: CALSADirectSound::CALSADirectSound - Channels: 6 - SampleRate: 48000 - SampleBit: 16 - Resample false - Codec AAC - IsMusic false - IsPassthrough false - audioDevice: plug:hdmi
19:53:08 T:2895108976 M:3426988032 DEBUG: RemoveActiveDevice - Removing device 1
19:53:08 T:2895108976 M:3426988032 DEBUG: SetActiveDevice - SetActiveDevice from 0 to 2
19:53:08 T:2895108976 M:3426988032 DEBUG: RemoveActiveDevice - Removing device 0
9:53:08 T:2895108976 M:3426902016 DEBUG: Initialize - using alsa device xbmc_aac51:'plug:hdmi'
xbmc_aac51 - is my, from above post. Receiver show 6ch PCM, all channel mapping correct. AAC and AC3 souns identical.