how can I enable SPDIF in Debian (Martin Wild XBMC Image).

1,050 views
Skip to first unread message

aps...@hotmail.com

unread,
Feb 5, 2013, 9:51:28 AM2/5/13
to cubie...@googlegroups.com
Hi.
my cubie SD-CARD is Martin Wild's Debian image .
I Don't know How to enable SPDIF.
 
I Set the value "spdif_used" 0 to 1  In script file.
 
[spdif_para]
spdif_used = 1
spdif_mclk =
spdif_dout = port:PB13<4><1><default><default>
spdif_din =
 
the I tested SPDIF is OK in NAND Android mode.
my DAC accepted the signal  well.
 
but It  recognize only HDMI, and analog Out.
 
root@debian:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sun4icodec [sun4i-CODEC], device 0: M1 PCM [sun4i PCM]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sun4isndhdmi [sun4i-sndhdmi], device 0: SUN4I-HDMIAUDIO sndhdmi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@debian:/#
 
Somebody help~~me ~~~
 
Regards,
Kangsik Choi

von fritz

unread,
Feb 5, 2013, 12:38:12 PM2/5/13
to cubie...@googlegroups.com


Il giorno martedì 5 febbraio 2013 15:51:28 UTC+1, aps...@hotmail.com ha scritto:
Hi.
my cubie SD-CARD is Martin Wild's Debian image .
I Don't know How to enable SPDIF.
 
I Set the value "spdif_used" 0 to 1  In script file.
 
[spdif_para]
spdif_used = 1
spdif_mclk =
spdif_dout = port:PB13<4><1><default><default>
spdif_din =
 
the I tested SPDIF is OK in NAND Android mode.
my DAC accepted the signal  well.
 
but It  recognize only HDMI, and analog Out.
 
ro...@debian:/# aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: sun4icodec [sun4i-CODEC], device 0: M1 PCM [sun4i PCM]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sun4isndhdmi [sun4i-sndhdmi], device 0: SUN4I-HDMIAUDIO sndhdmi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 
Somebody help~~me ~~~
 
Regards,
Kangsik Choi
 you should load the required modules.



[root@mele fritz]# modprobe sun4i-spdif
[root@mele fritz]# modprobe sun4i-spdma
[root@mele fritz]# modprobe sun4i-sndspdif
[root@mele fritz]# modprobe sndspdif
[root@mele fritz]# aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: sun4icodec [sun4i-CODEC], device 0: M1 PCM [sun4i PCM]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sun4isndhdmi [sun4i-sndhdmi], device 0: SUN4I-HDMIAUDIO sndhdmi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: sun4isndspdif [sun4i-sndspdif], device 0: SUN4I-SPDIF sndspdif-0 []

  Subdevices: 1/1
  Subdevice #0: subdevice #0
[root@mele fritz]#

respect order, for me it segfaulted if i loaded first sndspdif.

ciao

kyet

unread,
Apr 2, 2013, 6:41:10 AM4/2/13
to cubie...@googlegroups.com
many thanks !

in addition (for newbie),

I Set the value "spdif_used" 0 to 1  In script file. 
script file is in /boot/script.bin 
to edit, you need to download and compile sunxi utils
use bin2fex and fex2bin utils (fex is readable format)
# bin2fex script.bin > script.fex
(obviously, you need to re-convert to bin after editing)

ro...@debian:/# aplay -l
if you don't have "aplay", 
# apt-get install alsa-utils 

- loading modules on boot (modprobe is not permanent)
edit "/etc/modules"
just write module name for each line (do not write "modprobe")

- using s/pdif in xbmc
setting-audio output-Audio output device and Passthrough output device

Sebastian Muñiz

unread,
Apr 5, 2013, 11:44:43 PM4/5/13
to cubie...@googlegroups.com
Hello,
I do have the required modules compiled on the kernel, and I can see and use spdif/toslink
However I can't use volume output on it.
Are you able?
Thanks
Sebastian

kyet

unread,
Apr 22, 2013, 12:40:15 AM4/22/13
to cubie...@googlegroups.com
you don't need to compile. 

compiled modules are in hwpack. http://linux-sunxi.org/Hwpack 

but problem is.. it supports only 2ch spdif. no passthrough. 

kyet

unread,
Apr 23, 2013, 4:34:25 AM4/23/13
to cubie...@googlegroups.com
i successfully played ac3 5.1ch surround on linaro alip ( http://dl.cubieboard.org/software/ubuntu/cb-sdcard-1.1-linaro-quantal-alip-20130227-290.img.tgz )

this distribution includes GUI. see my configurations (attached files). 

i tested on VLC and MPlayer (not yet tested on xbmc.. maybe it has no pass-through)

it's obvious that you need to edit script.bin and load modules




1mplayer.JPG
1vlc1.JPG
1vlc2.JPG
Reply all
Reply to author
Forward
0 new messages