Audio issue Ubuntu 22.04.3 LTS Mate 1.26.0

Post Reply
knutzone
Posts: 67
Joined: Fri Jan 17, 2020 11:18 pm
languages_spoken: german, english
ODROIDs: Odroid N2+ 4GB
Odroid N2+ 4GB with broken GPU
Odroid N2 4GB with broken GPU
Has thanked: 6 times
Been thanked: 1 time
Contact:

Audio issue Ubuntu 22.04.3 LTS Mate 1.26.0

Post by knutzone »

Hello,

I'm wondering why there's no S/PDIF output shown in the audio settings. My default audio on my N2+ is normally (e.g. CoreElec, EmuElec and even also previous Ubuntu releases) the S/PDIF port on the GPIO, but in the Mate audio settings panel I only see The HDMI out...
Is there any solution to make the S/PDIF out working? Would be great!
Thanks!

Regards,

knutzone

User avatar
odroid
Site Admin
Posts: 42177
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3609 times
Been thanked: 2004 times
Contact:

Re: Audio issue Ubuntu 22.04.3 LTS Mate 1.26.0

Post by odroid »

What is your kernel version?
Show us uname -a and aplay -l outputs.

knutzone
Posts: 67
Joined: Fri Jan 17, 2020 11:18 pm
languages_spoken: german, english
ODROIDs: Odroid N2+ 4GB
Odroid N2+ 4GB with broken GPU
Odroid N2 4GB with broken GPU
Has thanked: 6 times
Been thanked: 1 time
Contact:

Re: Audio issue Ubuntu 22.04.3 LTS Mate 1.26.0

Post by knutzone »

Ok., here's uname -a:

Code: Select all

Linux Enterprise 5.15.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.15.145-202401081659~jammy (2024-01-08) aarch64 aarch64 aarch64 GNU/Linux
and this is shown by aplay -l:

Code: Select all

**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: G12BODROIDN2 [G12B-ODROID-N2], Gerät 0: fe.dai-link-0 (*) []
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: G12BODROIDN2 [G12B-ODROID-N2], Gerät 1: fe.dai-link-1 (*) []
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: G12BODROIDN2 [G12B-ODROID-N2], Gerät 2: fe.dai-link-2 (*) []
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0

User avatar
odroid
Site Admin
Posts: 42177
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3609 times
Been thanked: 2004 times
Contact:

Re: Audio issue Ubuntu 22.04.3 LTS Mate 1.26.0

Post by odroid »

As far as I recall, the SPIDF output from J7 7pin connector worked out of the box on the legacy Kernel 4.9 only.
https://wiki.odroid.com/odroid-n2/appli ... lsa_driver

Where did you download the OS image?

knutzone
Posts: 67
Joined: Fri Jan 17, 2020 11:18 pm
languages_spoken: german, english
ODROIDs: Odroid N2+ 4GB
Odroid N2+ 4GB with broken GPU
Odroid N2 4GB with broken GPU
Has thanked: 6 times
Been thanked: 1 time
Contact:

Re: Audio issue Ubuntu 22.04.3 LTS Mate 1.26.0

Post by knutzone »

It's the netboot version, taken out of Petitboot.
The 7pin connector doesn't exist at the N2+. It's a 40pin GPIO connectior, but it's pin number 7.
I tried several sytems, sometimes the S/PDIF appeared with stereo out only and sometimes not at all. Why is there such a big difference to the 4.9 Kernel? I know that this Kernel is used by CoreElec and there everything works perfectly, but it would be nice to have the full skills in video (e.g. Vulkan) AND audio (all three outputs (HDMI, Analog and S/PDIF) supported and multichannel output on HDMI and S/PDIF).
Could this work in a newer Kernel version in the future? The N2+ is such a great machine, but it's not very comfortable to always change the operating system because of a missing hardware feature. I've heard that the 6.6 Kernel will have a 3 years LTS support. This would be a good point to include the full board support here instead of develop constantly to the next Kernel version before the previous was full adjusted. I know to do this is a lot of work, but it would be absolutely great to havre a full functional machine in every situation.

User avatar
odroid
Site Admin
Posts: 42177
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3609 times
Been thanked: 2004 times
Contact:

Re: Audio issue Ubuntu 22.04.3 LTS Mate 1.26.0

Post by odroid »

Both N2 and N2+ have 7-pin headers. However, both boards doesn't populate the header pins, so users must solder it.
Check the N2+ schematics : https://wiki.odroid.com/odroid-n2/hardw ... _datasheet
Screenshot from 2024-01-31 09-22-52.png
Screenshot from 2024-01-31 09-22-52.png (9.53 KiB) Viewed 272 times
Anyway, it will not be difficult to utilize the SPDIF function by modifying the device tree and adding the corresponding driver.
However, implementing multi-channel output functions other than stereo seems to be an area beyond our capabilities.

knutzone
Posts: 67
Joined: Fri Jan 17, 2020 11:18 pm
languages_spoken: german, english
ODROIDs: Odroid N2+ 4GB
Odroid N2+ 4GB with broken GPU
Odroid N2 4GB with broken GPU
Has thanked: 6 times
Been thanked: 1 time
Contact:

Re: Audio issue Ubuntu 22.04.3 LTS Mate 1.26.0

Post by knutzone »

Ok., at first: I have a (normally) functional S/PDIF output on my N2+ on the 40-pin GPIO header. I soldered an optical TOT- Interface like this one: https://www.datasheets.com/de/part-deta ... 2#overview to it and with CoreElec it works fine. So that's not my problem...

For a multichannel output it isn't necessary to decode it inside the N2 or N2+, it's normally used by a simple passthrough to an external decoder like an a/v-receiver or a special decoder (I use Teufel Decoderstation 3 here). The only problem seems to be inside the audio driver, alsa or pulse inside Ubuntu, which don't forward the signal to the header, because the hardware of the N2/N2+ is fully capable of it.
So why it works with Kernel 4.9 and not with any later Kernel? Couldn't it be possible to modify the audio handling permanently to later Kernel versions?

User avatar
odroid
Site Admin
Posts: 42177
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3609 times
Been thanked: 2004 times
Contact:

Re: Audio issue Ubuntu 22.04.3 LTS Mate 1.26.0

Post by odroid »

I have no idea. I just hope that other experts who are familiar with the layers and passthrough of Linux audio drivers can give you some advice.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests