Removing ODROIDHDMI sound device

Post Reply
Sebas_Ledesma
Posts: 104
Joined: Thu Jun 08, 2017 2:49 am
languages_spoken: english
ODROIDs: c2
Has thanked: 4 times
Been thanked: 3 times
Contact:

Removing ODROIDHDMI sound device

Unread post by Sebas_Ledesma » Thu Dec 05, 2019 5:45 am

Hi:

I'm trying to remove the ODROID HDMI sound device.
I've tried editing the /media/boot/boot.ini
and assigned
setenv display_autodetect "true"
setenv vout "dvi"
setenv hpd "false"
setenv disable_vu7 "true"

I have no HDMI connected at all, but when I do:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ODROIDHDMI [ODROID-HDMI], device 0: I2S dit-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: CODEC [USB AUDIO CODEC], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
and arecord -l
odroid@mx2200:~/pjproject-2.9/pjsip-apps/bin$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: ODROIDHDMI [ODROID-HDMI], device 0: I2S dit-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: CODEC [USB AUDIO CODEC], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
odroid@mx2200:~/pjproject-2.9/pjsip-apps/bin$
uname -a
Linux myOdroid 3.16.75-47 #1 SMP PREEMPT Sat Oct 19 14:21:52 -03 2019 aarch64 aarch64 aarch64 GNU/Linux
I'm running Ubuntu 18.04

$ lsmod
Module Size Used by
spi_gpio 6543 0
spi_bitbang 4039 1 spi_gpio
spidev 6675 2
fuse 90956 3
squashfs 32435 0
snd_usb_audio 134655 1
snd_hwdep 8171 1 snd_usb_audio
snd_seq_dummy 1332 0
snd_usbmidi_lib 22635 1 snd_usb_audio
snd_seq_oss 37028 0
snd_seq_midi 5562 0
snd_seq_midi_event 6376 2 snd_seq_oss,snd_seq_midi
snd_seq 60246 6 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy,snd_seq_midi
snd_rawmidi 23154 2 snd_usbmidi_lib,snd_seq_midi
snd_seq_device 7162 5 snd_seq,snd_rawmidi,snd_seq_oss,snd_seq_dummy,snd_seq_midi
w1_gpio 3801 0
wire 28614 1 w1_gpio
gxbb_wdt 3395 0
meson_gpiomem 4040 0
sch_fq_codel 7827 2
ip_tables 17220 0
ipv6 387445 38
autofs4 27592 2
How can I dissable the HDMI audio device?
Thanks in advance,
Sebas.

User avatar
cdu13a
Posts: 202
Joined: Tue Jan 20, 2015 3:33 pm
languages_spoken: english
ODROIDs: C1, C2, XU4, HC1, N2
Has thanked: 0
Been thanked: 20 times
Contact:

Re: Removing ODROIDHDMI sound device

Unread post by cdu13a » Thu Dec 05, 2019 6:03 am

Is there a reason you would like to remove the onboard audio device? Knowing why may help somebody suggest a better solution to your problem.

Sebas_Ledesma
Posts: 104
Joined: Thu Jun 08, 2017 2:49 am
languages_spoken: english
ODROIDs: c2
Has thanked: 4 times
Been thanked: 3 times
Contact:

Re: Removing ODROIDHDMI sound device

Unread post by Sebas_Ledesma » Thu Dec 05, 2019 10:37 pm

My system will not use HDMI at all, no even text console. It will use a SPI OLED display, so nothing will be connected to the HDMI output.
And I'm want to use some apps that play / record from the default audio device (I have an USB audio device that I want to used instead of the onboard device).
Also I want to minimze the boot time (as I dont have display to provide a feedback for the user until the main app shows in the OLED spi display), so I want to remove unnecesary drivers, packages and others.

Sebas

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Removing ODROIDHDMI sound device

Unread post by tobetter » Thu Dec 05, 2019 11:37 pm

Sebas_Ledesma wrote:
Thu Dec 05, 2019 10:37 pm
My system will not use HDMI at all, no even text console. It will use a SPI OLED display, so nothing will be connected to the HDMI output.
And I'm want to use some apps that play / record from the default audio device (I have an USB audio device that I want to used instead of the onboard device).
Also I want to minimze the boot time (as I dont have display to provide a feedback for the user until the main app shows in the OLED spi display), so I want to remove unnecesary drivers, packages and others.

Sebas
I have not tried it.
If you have something like this in boot.ini, you could set the value nographics as 1 such than display relative nodes can be removed in DTB file. But I am not sure if you can remove the line for /meson-fb since you will use OLED SPI display.

Code: Select all

if test "${nographics}" = "1"; then fdt rm /reserved-memory; fdt rm /aocec; fi
if test "${nographics}" = "1"; then fdt rm /meson-fb; fdt rm /amhdmitx; fdt rm /picdec; fdt rm /ppmgr; fi
if test "${nographics}" = "1"; then fdt rm /meson-vout; fdt rm /mesonstream; fdt rm /meson-fb; fi
if test "${nographics}" = "1"; then fdt rm /deinterlace; fdt rm /codec_mm; fi

Sebas_Ledesma
Posts: 104
Joined: Thu Jun 08, 2017 2:49 am
languages_spoken: english
ODROIDs: c2
Has thanked: 4 times
Been thanked: 3 times
Contact:

Re: Removing ODROIDHDMI sound device

Unread post by Sebas_Ledesma » Fri Dec 06, 2019 12:29 am

I've enabled the 'nographics' variable.
I've commented the line
if test "${nographics}" = "1"; then fdt rm /meson-fb; fdt rm /amhdmitx; fdt rm /picdec; fdt rm /ppmgr; fi
by putting a # at the begin of the line
and after that I saved it, finallyI've executed:
sudo bootini
sudo reboot


The C2 no longer boots :(

Sebas

Sebas_Ledesma
Posts: 104
Joined: Thu Jun 08, 2017 2:49 am
languages_spoken: english
ODROIDs: c2
Has thanked: 4 times
Been thanked: 3 times
Contact:

Re: Removing ODROIDHDMI sound device

Unread post by Sebas_Ledesma » Fri Dec 06, 2019 12:38 am

I've unplugged the eMMC , inserted into a eMMC reader and from windows re-edited the boot.ini to the previous values.
The C2 booted normally.

Sebas

Sebas_Ledesma
Posts: 104
Joined: Thu Jun 08, 2017 2:49 am
languages_spoken: english
ODROIDs: c2
Has thanked: 4 times
Been thanked: 3 times
Contact:

Re: Removing ODROIDHDMI sound device

Unread post by Sebas_Ledesma » Sat Dec 07, 2019 1:39 am

As workaround I've used:

pactl set-default-sink alsa_output.myCard...
pactl set-default-source alsa_input.myCard...


Sebas
These users thanked the author Sebas_Ledesma for the post:
odroid (Mon Dec 09, 2019 11:29 am)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 0 guests