10-20-2023, 10:19 PM
Hi,
I was testing some 5.1 multichannel audio the other day and noticed that the channel mapping created by ALSA does not seem to be correct. The sources are 6 channel (5.1) but my AVR indicates it's receiving 8 channels and there is no sound from the rear L/R surrounds.
Sources:
1. Soma FM - Groove Salad Test Streams
https://hls.somafm.com/
HLS format containing 6 channels (5.1) encoded at 320K AAC
https://hls.somafm.com/hls/gs-surround/program.m3u8
2. Test track from @Nutul
FLAC format containing 6 channels (5.1)
Screen shots
ALSA speaker-test output
## 6 channels
pi@sig:~ $ sudo speaker-test -c 6 -t wav -l 1
speaker-test 1.2.4
Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 480 to 10922
Period size range from 480 to 10920
Using max buffer size 10920
Periods = 4
was set period_size = 2184
was set buffer_size = 10920
0 - Front Left OK
4 - Center OK
1 - Front Right OK
3 - Rear Right No sound
2 - Rear Left No sound
5 - LFE
## 8 channels
pi@sig:~ $ sudo speaker-test -c 8 -t wav -l 1
speaker-test 1.2.4
Playback device is default
Stream parameters are 48000Hz, S16_LE, 8 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 480 to 8192
Period size range from 480 to 8192
Using max buffer size 8192
Periods = 4
was set period_size = 2048
was set buffer_size = 8192
0 - Front Left OK
4 - Center OK
1 - Front Right OK
7 - Side Right OK - actual output is Rear Right
3 - Rear Right No sound
2 - Rear Left No sound
6 - Side Left OK - actual output is Rear Left
5 - LFE
Maybe the HDMI implementation in new RaspiOS Bookworm fixes this but it would be interesting to see if there is some sort of config on Bullseye that would work.
I was testing some 5.1 multichannel audio the other day and noticed that the channel mapping created by ALSA does not seem to be correct. The sources are 6 channel (5.1) but my AVR indicates it's receiving 8 channels and there is no sound from the rear L/R surrounds.
Sources:
1. Soma FM - Groove Salad Test Streams
https://hls.somafm.com/
HLS format containing 6 channels (5.1) encoded at 320K AAC
https://hls.somafm.com/hls/gs-surround/program.m3u8
2. Test track from @Nutul
FLAC format containing 6 channels (5.1)
Screen shots
ALSA speaker-test output
## 6 channels
pi@sig:~ $ sudo speaker-test -c 6 -t wav -l 1
speaker-test 1.2.4
Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 480 to 10922
Period size range from 480 to 10920
Using max buffer size 10920
Periods = 4
was set period_size = 2184
was set buffer_size = 10920
0 - Front Left OK
4 - Center OK
1 - Front Right OK
3 - Rear Right No sound
2 - Rear Left No sound
5 - LFE
## 8 channels
pi@sig:~ $ sudo speaker-test -c 8 -t wav -l 1
speaker-test 1.2.4
Playback device is default
Stream parameters are 48000Hz, S16_LE, 8 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 480 to 8192
Period size range from 480 to 8192
Using max buffer size 8192
Periods = 4
was set period_size = 2048
was set buffer_size = 8192
0 - Front Left OK
4 - Center OK
1 - Front Right OK
7 - Side Right OK - actual output is Rear Right
3 - Rear Right No sound
2 - Rear Left No sound
6 - Side Left OK - actual output is Rear Left
5 - LFE
Maybe the HDMI implementation in new RaspiOS Bookworm fixes this but it would be interesting to see if there is some sort of config on Bullseye that would work.