odroid-c4:application_note:external_connector:lineout

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
odroid-c4:application_note:external_connector:lineout [2020/08/25 15:14]
ck.kim created
odroid-c4:application_note:external_connector:lineout [2020/09/07 12:20] (current)
ck.kim [Enable line-out device tree overlay]
Line 1: Line 1:
 ====== Lineout Audio (J4) ====== ====== Lineout Audio (J4) ======
 +
 +<WRAP round important>
 +This functionality is available on Ubuntu.
 +  * Linux kernel version should be 4.9.230-35 (Aug 27, 2020) or higher.
 +  * The Linux kernel must support Device Tree overlays. That has been supported since linux 4.9.230-35.
 +</WRAP>
 +
 +==== Hardware connection ====
 +{{:odroid-c4:application_note:external_connector:odroid-c4wj4pic.jpg?600|}}
 +
 +=== Connection Diagram ===
 +{{:odroid-c4:application_note:external_connector:odroid-c4wj4.jpg?600|}}
 +==== Enable line-out device tree overlay ====
 +When the hardware is ready, you need to enable the device tree by editing the config.ini file.\\
 +Check the link below for the description of Device Tree Overlay in ODROID-C4.\\
 +[[common:application_note:software:device_tree_overlay|Device Tree Overlay]]
 +
 +== Edit config.ini file ==
 +This is the DTBO part of the config.ini file of Odroid-C4.
 +<code ini>
 +; Device Tree Overlay
 +overlay_resize=16384
 +overlay_profile=
 +overlays="spi0 i2c0 i2c1 uart0"
 +
 +[overlay_custom]
 +overlays="i2c0 i2c1"
 +
 +[overlay_hktft32]
 +overlays="hktft32"
 +
 +[overlay_hktft35]
 +overlays="hktft35"
 +</code>
 +
 +Add a lineout profile and put the profile name (lineout) in the overlay_profile variable.
 +<code ini>
 +; Device Tree Overlay
 +overlay_resize=16384
 +overlay_profile=lineout
 +overlays="spi0 i2c0 i2c1 uart0"
 +
 +[overlay_custom]
 +overlays="i2c0 i2c1"
 +
 +[overlay_hktft32]
 +overlays="hktft32"
 +
 +[overlay_hktft35]
 +overlays="hktft35"
 +
 +[overlay_lineout]
 +overlays="lineout"
 +</code>
 +
 +Save the config.ini file and reboot.
 +<code bash target>
 +root@odroid:~# reboot
 +</code>
 +
 +You can see that the sound card is enabled.
 +<code bash target>
 +root@odroid:~# aplay -l
 +**** List of PLAYBACK Hardware Devices ****
 +card 0: ODROIDHDMI [ODROID-HDMI], device 0: SPDIF-dit-hifi dit-hifi-0 []
 +  Subdevices: 1/1
 +  Subdevice #0: subdevice #0
 +card 1: ODROIDLINEOUT [ODROID-LINEOUT], device 0: TDM-C-T9015-audio-hifi T9015-audio-hifi-0 []
 +  Subdevices: 1/1
 +  Subdevice #0: subdevice #0
 +root@odroid:~#
 +</code>
  
  • odroid-c4/application_note/external_connector/lineout.1598336067.txt.gz
  • Last modified: 2020/08/25 15:14
  • by ck.kim