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
#2
hello.I am a newbie.I use orange pi lite with retroorangepi.Where do i write the code.I have soldered red led+(status led) PA17/SPDIF_OUT AND pin 6 GND.But i don't know where to write the code.
Reply
#3
convert boot script file: "sudo bin2fex /boot/script.bin ~/script.fex"
edit file: sudo nano ~/script.fex
convert back: sudo fex2bin ~/script.fex /boot/script.bin
Reply
#4
??? Is it done by some program??? I am good at hardware not with software.Can you explain with more details.Thanks in advance.
Reply
#5
Some reading is required then:
http://linux-sunxi.org/Fex_Guide

the boot script is edited exactly as instructed above
and i'm not good at hardware, so it's up to you now :p
Reply
#6
I can't do it.I upload the script file.Can anyone do this for me.

Why I can't upload the file .I tryed as zip too..???
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)