Disable HDMI OUT audio

We are box product, We want disable HDMI OUT audio when used box speaker or box sound device.
What should we do?

I remember that though the HDMI audio is supported, the default setting was on Analog but not on HDMI.

You can firstly try to use the GUI → settings-> Sound and see what is the default one on your side.

Our GUI doesn’t have settings-> Sound UI, could I insatll it?

You changed the GUI from our default gnome desktop?

yes , we used nodm, our customer required.

please remove the hdmi audio from “/usr/share/alsa/cards/tegra-hda.conf” and HDMI audio should be diasbled.

Hi ,I remove the file, but the HDMI audio not diasbled

please share the dmesg.

dmesg_log.txt (73.8 KB)

What is your test method to know the hdmi audio is still there?

You directly play a audio?

Please remember that you need to reboot the device if you remove components from tegra-hda.conf.

yes,I reboot to test, I used web browser to play a video.

please remove hda3 device from /etc/asound.conf.

scala@localhost:/etc$ cat /proc/asound/cards
0 [tegrahda ]: tegra-hda - tegra-hda
tegra-hda at 0x70038000 irq 82
1 [tegrasndt210ref]: tegra-snd-t210r - tegra-snd-t210ref-mobile-rt565x

cat asound.conf
pcm.both {
type route
slave.pcm {
type multi
slaves.a.pcm ‘plughw:0,3’
slaves.a.channels 2
slaves.b.pcm ‘plughw:1,0’
slaves.b.channels 2
slaves.c.pcm ‘plughw:1,1’
slaves.c.channels 2
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
bindings.4.slave c
bindings.4.channel 0
bindings.5.slave c
bindings.5.channel 1
ttable.0.0 1
ttable.0.2 1
ttable.0.4 1
ttable.1.1 1
ttable.1.3 1
ttable.1.5 1

pcm.softv {
type softvol
slave.pcm both
control.name “Playback Volume”
min_dB -45.0
max_dB 0.0
resolution 100

pcm.!default {
type plug
slave.pcm softv
ctl.!default {
type hw
card 0

Hi ,How to dynamic select voice-grade channel by hw detect such as headset plugin

Is it still for HDMI?

if headset plugin, the audio select headset, hdmi audio disable, if plugput headset, hdmi audio is enable.

Do you want to permanently disable the HDMI audio?

no, we want dynamic select voice-grade channel by hw irq

please refer to