SPDIF output

Post Reply
benwillcox
Posts: 161
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+
C2
Location: United Kingdom
Has thanked: 5 times
Been thanked: 6 times
Contact:

SPDIF output

Unread post by benwillcox » Sat May 25, 2019 6:42 am

Has anyone actually got SPDIF working on Android?
Pin 2 of J7 has no output nor does pin 7 on the GPIO. The fdtget commands in the thread viewtopic.php?f=181&t=34528 do not work on Android.

Thanks,
Ben

User avatar
tobetter
Posts: 3688
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 116 times
Contact:

Re: SPDIF output

Unread post by tobetter » Mon May 27, 2019 4:19 pm

benwillcox wrote:
Sat May 25, 2019 6:42 am
Has anyone actually got SPDIF working on Android?
Pin 2 of J7 has no output nor does pin 7 on the GPIO. The fdtget commands in the thread viewtopic.php?f=181&t=34528 do not work on Android.

Thanks,
Ben
Hi, the Android is not ready to use SPDIF on J7 yet and will need some change to make the work other than the device tree. Internally, we are having the discussion if it can be supported and the audio output device can be selectable by the user.

benwillcox
Posts: 161
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+
C2
Location: United Kingdom
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: SPDIF output

Unread post by benwillcox » Thu May 30, 2019 4:39 am

tobetter wrote:
Mon May 27, 2019 4:19 pm
Hi, the Android is not ready to use SPDIF on J7 yet and will need some change to make the work other than the device tree. Internally, we are having the discussion if it can be supported and the audio output device can be selectable by the user.
Thanks for the reply, that's a bit disappointing to hear as I've not seen anything in the documentation to say SPDIF is not available on Android, and the sales information advertises SPDIF output but also doesn't state any condition on the OS used. But, glad to hear you are working on it and hopefully it will be available before too long!

Ben

User avatar
tobetter
Posts: 3688
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 116 times
Contact:

Re: SPDIF output

Unread post by tobetter » Thu May 30, 2019 8:29 am

benwillcox wrote:
tobetter wrote:
Mon May 27, 2019 4:19 pm
Hi, the Android is not ready to use SPDIF on J7 yet and will need some change to make the work other than the device tree. Internally, we are having the discussion if it can be supported and the audio output device can be selectable by the user.
Thanks for the reply, that's a bit disappointing to hear as I've not seen anything in the documentation to say SPDIF is not available on Android, and the sales information advertises SPDIF output but also doesn't state any condition on the OS used. But, glad to hear you are working on it and hopefully it will be available before too long!

Ben
Thanks, let us update you the possibility to have SPDIF and PassThrough.

"Tapatalk wishes you to have fun with ODROID"


that_kid
Posts: 8
Joined: Wed Sep 21, 2016 4:36 am
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: SPDIF output

Unread post by that_kid » Thu May 30, 2019 10:26 pm

I'm glad I saw this thread. I was planning on using SPDIF on Android as well. Saved me hours of hair pulling. Hopefully a solution will be found.

out4zero
Posts: 2
Joined: Sat Jun 01, 2019 10:50 pm
languages_spoken: english
ODROIDs: N2 XU4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: SPDIF output

Unread post by out4zero » Sun Jun 09, 2019 12:14 am

I'm using one of these: https://www.amazon.co.uk/Neoteck-Extrac ... 36&sr=8-14

It goes HDMI from N2 to HDMI in (convertor) - HDMI out (convertor) to monitor (or tv).
The spdif can then be used for whatever you like, in my case I've got it going into a surround sound set-up (haven't checked it's 5.1 channel but only needed it for basic speaker set-up - optical headphones work too)
Oh and the 5v input isn't actually needed, it works fine without it.
These users thanked the author out4zero for the post:
benwillcox (Thu Jun 13, 2019 5:22 am)

User avatar
codewalker
Posts: 650
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 26 times
Been thanked: 18 times
Contact:

Re: SPDIF output

Unread post by codewalker » Wed Jun 12, 2019 10:13 pm

These users thanked the author codewalker for the post (total 3):
joerg (Thu Jun 13, 2019 2:03 am) • that_kid (Thu Jun 13, 2019 2:22 am) • benwillcox (Thu Jun 13, 2019 5:22 am)

InspecteurGadget
Posts: 94
Joined: Thu Apr 27, 2017 3:33 am
languages_spoken: French, English
ODROIDs: Odroid C2
USB GPS, Bluetooth, Wifi
Emmc 8g Android M
Rtc modue
Has thanked: 0
Been thanked: 1 time
Contact:

Re: SPDIF output

Unread post by InspecteurGadget » Thu Jun 13, 2019 3:02 pm

Hi the spdif output is 3.3v?
And it work with any audio app ?

benwillcox
Posts: 161
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+
C2
Location: United Kingdom
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: SPDIF output

Unread post by benwillcox » Sun Jun 16, 2019 1:14 am

Hi,

Just updated to the latest version and unfortunately it's still not working me - no output on pin 2 of J7 or Pin 7 of the GPIO, either in Kodi or any other application.
Does it need to be enabled somehow?

Ben

User avatar
tobetter
Posts: 3688
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 116 times
Contact:

Re: SPDIF output

Unread post by tobetter » Sun Jun 16, 2019 4:45 am

benwillcox wrote:
Sun Jun 16, 2019 1:14 am
Hi,

Just updated to the latest version and unfortunately it's still not working me - no output on pin 2 of J7 or Pin 7 of the GPIO, either in Kodi or any other application.
Does it need to be enabled somehow?

Ben
SPDIF output on J7 is not fully tested yet, let us try J7 next week and let you know if it works or not.

benwillcox
Posts: 161
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+
C2
Location: United Kingdom
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: SPDIF output

Unread post by benwillcox » Sun Jun 16, 2019 4:56 am

OK thanks, so it has been tested with Pin 7 of the GPIO? As that doesn't work for me either.

Ben.

benwillcox
Posts: 161
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+
C2
Location: United Kingdom
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: SPDIF output

Unread post by benwillcox » Tue Jun 25, 2019 5:44 am

Hi is there any update on this?
I tried the latest Kodi version as mentioned in the release notes, but for some reason the passthru options don't appear for me. However, it really needs to work in all applications rather than just Kodi anyway. My DAC won't sync on pin 7 of the GPIO, and 'scoping the pin shows there is no output.

Ben

User avatar
tobetter
Posts: 3688
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 116 times
Contact:

Re: SPDIF output

Unread post by tobetter » Tue Jun 25, 2019 12:55 pm

benwillcox wrote:
Tue Jun 25, 2019 5:44 am
Hi is there any update on this?
I tried the latest Kodi version as mentioned in the release notes, but for some reason the passthru options don't appear for me. However, it really needs to work in all applications rather than just Kodi anyway. My DAC won't sync on pin 7 of the GPIO, and 'scoping the pin shows there is no output.

Ben
Sorry, Ben. We have no success on Android yet.
Does the Kodi what you are saying is Android version?
Can I know how you connected with your DAC?

joerg
Posts: 889
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2
Location: Germany
Has thanked: 5 times
Been thanked: 13 times
Contact:

Re: SPDIF output

Unread post by joerg » Mon Jul 01, 2019 7:52 pm

Hi, same problem for me. Details you find in my thread: viewtopic.php?f=178&t=34159#p260910.
I tried without Kodi, only klicks an popps. But I see red light at the spdif transmitter.
I tried with Kodi 18.3, no red light, only for a short moment after boot. No passthrough options.

User avatar
tobetter
Posts: 3688
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 116 times
Contact:

Re: SPDIF output

Unread post by tobetter » Mon Jul 01, 2019 8:03 pm

Update for SPDIF output on Android, the Android has a solid framework design and sound framework is the same. Technically SPDIF can be selectable in Linux system. For Android, we've found many places to modify in order to route the audio path rather than HDMI due to the limited flexibility. So we would more time if we decide to change the Android in order to make the audio path to SPDIF on GPIO header, which is not decided yet...still looking into the possibility.

benwillcox
Posts: 161
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+
C2
Location: United Kingdom
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: SPDIF output

Unread post by benwillcox » Tue Jul 02, 2019 5:08 am

Ok thanks. It sounded like from this post: viewtopic.php?f=178&t=33856#p259290 that it was working on Android.

Ben

User avatar
tobetter
Posts: 3688
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 116 times
Contact:

Re: SPDIF output

Unread post by tobetter » Tue Jul 02, 2019 5:56 am

benwillcox wrote:
Tue Jul 02, 2019 5:08 am
Ok thanks. It sounded like from this post: viewtopic.php?f=178&t=33856#p259290 that it was working on Android.

Ben
Yes, currently it's been enabled on HDMI port only and for the same feature to play on the GPIO pin header is a bit different story which requires more work. The simplest way would be to set the audio path from HDMI to GPIO pin header by a command line which is not flexible, still looking into a chance to modify and easily support.

User avatar
tobetter
Posts: 3688
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 116 times
Contact:

Re: SPDIF output

Unread post by tobetter » Tue Jul 02, 2019 1:25 pm

@Ben @Joerg, wondering for SPDIF on GPIO header...are you willing to make a sound on the pin header and keep as it not switching between the pin and HDMI once you have set up?

joerg
Posts: 889
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2
Location: Germany
Has thanked: 5 times
Been thanked: 13 times
Contact:

Re: SPDIF output

Unread post by joerg » Tue Jul 02, 2019 3:14 pm

@tobetter, for me this doesn‘t matter as I am only testing funtionally. I havn't decided yet what to do with the N2 laying on my table...
But others may have use cases where they need both.

benwillcox
Posts: 161
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+
C2
Location: United Kingdom
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: SPDIF output

Unread post by benwillcox » Tue Jul 02, 2019 8:47 pm

tobetter wrote:
Tue Jul 02, 2019 5:56 am
Yes, currently it's been enabled on HDMI port only and for the same feature to play on the GPIO pin header is a bit different story which requires more work. The simplest way would be to set the audio path from HDMI to GPIO pin header by a command line which is not flexible, still looking into a chance to modify and easily support.

@Ben @Joerg, wondering for SPDIF on GPIO header...are you willing to make a sound on the pin header and keep as it not switching between the pin and HDMI once you have set up?
Ah apologies I misunderstood, I had assumed that the HDMI audio output was already working and the update was to enable the separate SPDIF output, now I get it.
For me, once its setup then I wouldn't need to keep changing it, presumably it's not possible to enable both at the same time like it works on the C2? If not, is it feasible to have an option in Odroid Settings to switch between outputs? Even if a reboot is required after changing it then that would be ok for me.

Ben

User avatar
tobetter
Posts: 3688
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 116 times
Contact:

Re: SPDIF output

Unread post by tobetter » Wed Jul 03, 2019 3:03 pm

benwillcox wrote:
Tue Jul 02, 2019 8:47 pm
tobetter wrote:
Tue Jul 02, 2019 5:56 am
Yes, currently it's been enabled on HDMI port only and for the same feature to play on the GPIO pin header is a bit different story which requires more work. The simplest way would be to set the audio path from HDMI to GPIO pin header by a command line which is not flexible, still looking into a chance to modify and easily support.

@Ben @Joerg, wondering for SPDIF on GPIO header...are you willing to make a sound on the pin header and keep as it not switching between the pin and HDMI once you have set up?
Ah apologies I misunderstood, I had assumed that the HDMI audio output was already working and the update was to enable the separate SPDIF output, now I get it.
For me, once its setup then I wouldn't need to keep changing it, presumably it's not possible to enable both at the same time like it works on the C2? If not, is it feasible to have an option in Odroid Settings to switch between outputs? Even if a reboot is required after changing it then that would be ok for me.

Ben
Making sound on both is some huge work and if the setting won't be changed once setup, it would be possible to do changing DTS only. If this success then can try to support on ODROID Settings and apply after rebooting. Let me talk with a person who can do this...I am not. :)

User avatar
codewalker
Posts: 650
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 26 times
Been thanked: 18 times
Contact:

Re: SPDIF output

Unread post by codewalker » Mon Jul 15, 2019 4:04 pm

I fixed to enable using pass-through via optical cable.
IMG_20190715_155322.jpg
IMG_20190715_155322.jpg (446.83 KiB) Viewed 184 times
make receiver file on /odm/receiver.
for example.

Code: Select all

CodingType MaxChannels SamplingFreq SampleSize
PCM, 2 ch, 32/44.1/48/88.2/96/176.4/192 kHz, 16/20/24 bit
PCM, 8 ch, 32/44.1/48/88.2/96/176.4/192 kHz, 16/20/24 bit
AC-3, 8 ch, 32/44.1/48 kHz,  bit
DTS, 8 ch, 44.1/48 kHz,  bit
OneBitAudio, 2 ch, 44.1 kHz,  bit
Dobly_Digital+, 8 ch, 44.1/48 kHz, 16 bit
DTS-HD, 8 ch, 44.1/48/88.2/96/176.4/192 kHz, 16 bit
MAT, 8 ch, 32/44.1/48/88.2/96/176.4/192 kHz, 16 bit
If the file exists in "/odm/receiver", the KODI will recognize it as connected to the pass-through device.
However, other sounds are output via HDMI or LINEOUT.

https://dn.odroid.com/S922X/ODROID-N2/A ... signed.zip

benwillcox
Posts: 161
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+
C2
Location: United Kingdom
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: SPDIF output

Unread post by benwillcox » Tue Jul 16, 2019 6:33 am

Thank you codewalker.
Is the output available if not using a hi-fi shield, on the GPIO?

I'm not entirely clear, but is the SPDIF output active for all audio? Or does this only work in Kodi (which I don't use)?

Thanks,
Ben

User avatar
tobetter
Posts: 3688
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 116 times
Contact:

Re: SPDIF output

Unread post by tobetter » Tue Jul 16, 2019 12:05 pm

benwillcox wrote:
Tue Jul 16, 2019 6:33 am
Thank you codewalker.
Is the output available if not using a hi-fi shield, on the GPIO?

I'm not entirely clear, but is the SPDIF output active for all audio? Or does this only work in Kodi (which I don't use)?

Thanks,
Ben
The changes by @codewalker are to enable SPDIF output on the GPIO header and Hifi shield is just hardware to connect the optical cable.
Currently, the tested audio stream is passthrough from Kodi and it can play a sound through an AVR connected through optical cable whilst PCM stream cannot. Currently, audio output to HDMI cannot be copied to SPDIF on the GPIO yet.

benwillcox
Posts: 161
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+
C2
Location: United Kingdom
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: SPDIF output

Unread post by benwillcox » Tue Jul 16, 2019 6:43 pm

Thank you tobetter for the explanation.
Unfortunately it sounds like this isn't the solution for me then as I don't use Kodi, I need it really to work for all apps. When you say 'yet' does this mean a solution for all audio output is being worked on?
Alternatively does the HDMI output include all audio, so that I could use an HDMI->SPDIF extractor?

Thanks,
Ben

benwillcox
Posts: 161
Joined: Wed Oct 05, 2016 6:34 pm
languages_spoken: english
ODROIDs: C1+
C2
Location: United Kingdom
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: SPDIF output

Unread post by benwillcox » Tue Jul 16, 2019 6:45 pm

out4zero wrote:
Sun Jun 09, 2019 12:14 am
I'm using one of these: https://www.amazon.co.uk/Neoteck-Extrac ... 36&sr=8-14

It goes HDMI from N2 to HDMI in (convertor) - HDMI out (convertor) to monitor (or tv).
The spdif can then be used for whatever you like, in my case I've got it going into a surround sound set-up (haven't checked it's 5.1 channel but only needed it for basic speaker set-up - optical headphones work too)
Oh and the 5v input isn't actually needed, it works fine without it.
Maybe this is the solution for me too. Trouble is most of these boxes have optical SPDIF but I need Co-ax, and I'm trying to minimise the number of external conversion boxes.

Thanks,
Ben

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 4 guests