Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enable SpDIF-output (some soldering required)
#1
I activated SPDIF-output:
bin2fex /boot/script.bin > ~/script.fex
edit script.fex:
[spdif0]
spdif_used = 1
spdif_dout = portTongueA17<2><1><default><default>
[audiohub]
hub_used = 0
codec_used = 1
spdif_used = 1
hdmi_used = 1
sudo mv /boot/script.bin /boot/script.bin.bak
sudo fex2bin script.fex /boot/script.bin
/etc/modules:
sunxi_spdif
sunxi_spdma
sunxi_sndspdif
sndspdif
(you can also modprobe modules directly, so you don't have to reboot)
dmesg says:
[ 9.869689] asoc: sndspdif <-> spdif0 mapping ok
/proc/asound/cards:
pi@RetrOrangePi:~$ cat /proc/asound/cards
0 [audiocodec ]: audiocodec - audiocodec
audiocodec
1 [sndhdmi ]: sndhdmi - sndhdmi
sndhdmi
2 [sndspdif ]: sndspdif - sndspdif
sndspdif
Tiny problem though... Where is easiest way to make connection to PA17? Is it even possible?
Edit:
PA17 is pin 4 in camera connector. Soldering is not easy, but possible. It would be possible to do SPDIF-adaptor for camera-connector.
I soldered cable to pin 4 and took GND from GPIO-header. Audio works. Also passthrough DD and DTS works.

 I used very cheap USB solderin iron. My only iron with very sharp tip:
react-text: 818

/react-text I tested with DD and DTS passthrough and as suspected, it works.
I tested with mplayer and VLC:

cvlc --alsa-audio-device hw:2,0 --spdif "Bjorn_Lynne-Voyager_(surround).ac3"

mplayer -ao alsa:device=hw=2.0 -ac hwac3 "Bjorn_Lynne-Voyager_(surround).ac3"

cvlc --alsa-audio-device hw:2,0 --spdif --novideo dtspiano.vob

mplayer -ao alsa:device=hw=2.0 -ac hwdts -vo null dtspiano.vob

   
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)