Hi,
Could somebody help me sort out audio configuration.
My problem is described at second part of this post.
INTRO (might be useful for somebody trying to set up Dolby Digital via SPDIF):
Yesterday I’ve been battling whole day to set up A52 (Dolby Digital) via SPDIF (TOSSLINK if that matters) to send to my AVR. Finaly I’ve sort of got this working, but I am not sure what did the trick.
Roughly:
- added this to my ~/.asoundrc
# Use DCA Plug In
#
<confdir:pcm/dca.conf>
#####
# Description: This will make it possible to use a52 with PulseAudio out of
# the box. It may be useful for other use cases. Just include
# this in your ~/.asoundrc .
pcm.a52 {
@args [ CARD ]
@args.CARD {
type string
default 0
}
type rate
slave {
pcm {
type a52
channels 6
bitrate 448 # default 448
card $CARD
}
# Convert to S16 bit format, per SPDIF spec
# format S16_LE # Required for current S/PDIF spec
rate 48000
}
}
- Installed libdca from AUR
- Installed pavucontrol
- Set Phonon to use SPDIF Digital Stereo
- Via pavucontrol in Configuration chose Profile for my card as Digital Stereo (IEC958)
- In Output Devices (pavucontrol) near my cards digital output was able to click Advanced and select A52
- In pavucontrol Configuration there appeared an option to select Profile “Digital Surround 5.1 (IEC958/AC3)”, which I Did
- Set Phonon to prefer Digital Surround 5.1
Not sure if the order is correct, with loads of reboots/logouts and “killall pulseaudio” in between.
Anyway, sounds started coming from my speakers hooked up to AVR and Dolby Digital sign has lit up on it’s panel.
Now I was trying to play some 5.1 FLACS I have. But:
PROBLEM: 5.1 FLACS (and all stereo recordings, also KDE notification sounds) play simultaneously via all 5 speakers using some kind of up-mix (I’ve tried clementine and JuK for playback), except VLC media player plays 5.1 flacs correctly (Distinct traacks for distinct speakers), while stereo is still upmixed to all 5 channels.
More problems: speaker-test hangs on trying to play, sometimes sound just dissapears until reboot, AC3 files are not played at all even through VLC.
My alsa and pulse fu is not very good, so I’m not sure what I’m doing, it’s living hell all this linux audio stuff. Please if somebody could lend me a hand sorting this out.
My prefered Phonon backend is GStreamer, but I did install VLC backend jut to test, which led to even more audio weirdiness.
Thanks