A problem I have been encountering is with digital audio output, specifically AC3 and DTS passthru.
XBMC (well actually ALSA) insists that it is an iec958 when it really is a Realtek ALC889.
AC3 and DTS capable receiver is connected via coax.
[CMD=]sysctl hw.snd.default_unit=2[/CMD]
[CMD=]sysctl dev.pcm.2.play.vchanformat=s16le:5.1[/CMD]
[CMD=]sysctl dev.pcm.2.play.vchanmode=adaptive[/CMD]
[CMD=]cat /dev/sndstat[/cmd]
Code:
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: <HDA Realtek ALC885 PCM #0 Analog> (play/rec)
pcm1: <HDA Realtek ALC885 PCM #1 Analog> (play/rec)
pcm2: <HDA Realtek ALC885 PCM #2 Digital> (play/rec) default
In XBMC audio hardware settings i selected the digital interface for 5.1 output, enabled DTS and AC3. per default iec958 is selected as both the "normal" and passthru interface. Since it didn't work like that I set "normal" to default and manually entered ALC885 for passthru, resulting in this error:
Code:
ERROR: Initialize - failed to open custom device iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2
(error:Invalid argument), retry with default iec958
If i leave it at the default iec958 , the custom part goes away, but still no sound.
Any ideas?
This is on:
[CMD=]uname -rip[/cmd]
So the previous problems with snd_hda should not be the culprit.