Disable HDMI OUT audio

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
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

Hi,you mean when pulgin headset ,set HDMI audio volume to 0?

and we don’t support the command “pactl list” , do we need install some tools?

No,. these two are totally different things.

I don’t think “disabling the volume” would give you switch to your headset. Please clarify what is your exact request here?

Do you want to switch the audio sink or just adjust the volume?

we want to swith audio channel. if plugin headset or loudspeaker box , hdmi audio disable, if no headset or loudspeaker box,hdmi audo enable.

Hi rd1,

You might need to add/modify udev rules to implement desired audio routing policy. (Help for writing udev rules shall be available on internet)

Current udev rules(/etc/udev/rules.d/92-hdmi-audio-tegra.rules and /etc/udev/rules.d/90-alsa-asound-tegra.rules) set the default alsa audio device as

  1. HDMI when both HDMI and Analog are connected
  2. HDMI when HDMI alone is connected
  3. Analog when HDMI is disconnected

Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.