enabling the audio jack on the 20-04 mate with kernel 4.9

Post Reply
odroidn2user
Posts: 303
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 80 times
Been thanked: 78 times
Contact:

enabling the audio jack on the 20-04 mate with kernel 4.9

Post by odroidn2user »

Anyone found out yet how to get the audio jack to work on the N2 (or N2Plus) using the Hardkernel 20-04 Mate image using kernel 4.9?
There is only one audio device available, audio over HDMI. My monitor doesn't have audio, so... no audio for me.

Anyone figure this out already?

I'd love to plug in some headphones / speakers and get some audio out over the audio jack.

The 20-04 Mate image is pretty sweet, by the way.
(Just don't watch any video files, the default setup is not that smooth.)

I used the download link from:
http://de.eu.odroid.in/ubuntu_20.04lts/n2/

User avatar
odroid
Site Admin
Posts: 34906
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 954 times
Been thanked: 772 times
Contact:

Re: enabling the audio jack on the 20-04 mate with kernel 4.9

Post by odroid »

Kernel 4.9.230 seems to have an issue in sound drivers.
We will look into that early next week.
These users thanked the author odroid for the post:
odroidn2user (Sat Jul 25, 2020 6:47 pm)

cap00k
Posts: 96
Joined: Tue May 21, 2013 10:46 am
languages_spoken: english
ODROIDs: ODROID
Has thanked: 0
Been thanked: 10 times
Contact:

Re: enabling the audio jack on the 20-04 mate with kernel 4.9

Post by cap00k »

When checking a sound card with the aplay command, if it comes out as below, you need to edit the /etc/pulse/default.pa file.

Code: Select all

odroid@odroid:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: AMLAUGESOUND [AML-AUGESOUND], device 0: SPDIF-B-dit-hifi dit-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 1: TDM-C-T9015-audio-hifi T9015-audio-hifi-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 2: SPDIF-dit-hifi dit-hifi-2 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Please check the attached file.
After unzip and replace the /etc/pulse/default.pa file and rebooting, you can select "Audio Jack" in "sound preferences".

I added 3 lines below for attachments.

Code: Select all

load-module module-alsa-sink device="hw:0,0" sink_name=hdmi_out sink_properties="device.description='HDMI Out' device.icon_name='video-display'"
load-module module-alsa-sink device="hw:0,1" sink_name=line_out sink_properties="device.description='Audio Jack' device.icon_name='audio-headphones'"
load-module module-alsa-sink device="hw:0,2" sink_name=spdif_out sink_properties="device.description='SPDIF Out' device.icon_name='audio-speakers'"
Attachments
default.zip
(2.17 KiB) Downloaded 14 times

User avatar
meveric
Posts: 11119
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4
Has thanked: 43 times
Been thanked: 388 times
Contact:

Re: enabling the audio jack on the 20-04 mate with kernel 4.9

Post by meveric »

odroid wrote:
Sat Jul 25, 2020 11:39 am
Kernel 4.9.230 seems to have an issue in sound drivers.
We will look into that early next week.
The current github repo is still on Kernel 4.9.219, but I can see that for download Kernel 4.9.230 is already available.
Can you please update the github sources, so we can build new Kernels as well?
Same goes for the other Kernels, or was the github repo moved to another location?
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
tobetter
Posts: 5518
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: 221 times
Been thanked: 648 times
Contact:

Re: enabling the audio jack on the 20-04 mate with kernel 4.9

Post by tobetter »

meveric wrote:
Tue Jul 28, 2020 11:05 pm
odroid wrote:
Sat Jul 25, 2020 11:39 am
Kernel 4.9.230 seems to have an issue in sound drivers.
We will look into that early next week.
The current github repo is still on Kernel 4.9.219, but I can see that for download Kernel 4.9.230 is already available.
Can you please update the github sources, so we can build new Kernels as well?
Same goes for the other Kernels, or was the github repo moved to another location?
It's already there but the default branch was not changed.
https://github.com/hardkernel/linux/tre ... dg12-4.9.y

User avatar
meveric
Posts: 11119
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4
Has thanked: 43 times
Been thanked: 388 times
Contact:

Re: enabling the audio jack on the 20-04 mate with kernel 4.9

Post by meveric »

so you're using odroidg12-4.9.y for both the N2 and C4 now, instead of the odroidn2-4.9.y branch.
That's good to know, thanks.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
tobetter
Posts: 5518
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: 221 times
Been thanked: 648 times
Contact:

Re: enabling the audio jack on the 20-04 mate with kernel 4.9

Post by tobetter »

meveric wrote:
Fri Jul 31, 2020 2:17 pm
so you're using odroidg12-4.9.y for both the N2 and C4 now, instead of the odroidn2-4.9.y branch.
That's good to know, thanks.
Yes, it is. You can build the kernel image with odroidg12_defconfig, this will make you have the universal Image.gz and each board will run with their own device tree file. The branch odroidn2-4.9.y branch is note removed for back up, but not going to be used.
These users thanked the author tobetter for the post:
meveric (Sat Aug 01, 2020 3:02 pm)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest