No sound mp3 file from my speaker while HDMI cable connected

Is there anyone who knows to enable my speaker while an HDMI cable is connected?

I’m using I2S4 signals to play audio. And I could play an audio file by setting some amixer configs and aplay.
Using these commands, the sound is playing on my speaker always even if an HDMI cable connected.

alsactl init tegrasndt210ref
amixer -c tegrasndt210ref cset name='I2S4 Mux' MVC1
amixer -c tegrasndt210ref cset name='MVC1 Mux' ADMAIF1
amixer -c tegrasndt210ref cset name='MVC1 Vol' 10000
sudo aplay -D hw:tegrasndt210ref,0 StarWars3.wav

And Jetson doesn’t make a sound from an mp3 file when an HDMI cable is connected. But without an HDMI connection, Jetson makes sounds well.
I used these commands for playing an mp3 file.

alsactl init tegrasndt210ref
amixer -c tegrasndt210ref cset name='I2S4 Mux' MVC1
amixer -c tegrasndt210ref cset name='MVC1 Mux' ADMAIF1
amixer -c tegrasndt210ref cset name='MVC1 Vol' 10000
sudo mpg123 mp3file.mp3

Could you check the audio setting in GUI and see if you can change the audio sink?

Hi WayneWWW

Thanks for your reply.

I’m not sure you mean this. And I think there is no selection on sound config.

I’m here again. I succeeded by editing one rules file of udev rules.

#/etc/udev/rules.d/90-alsa-asound-tegra.rules
-TEST=="/sys/class/switch/hdmi_audio", GOTO="sound_end"
+#TEST=="/sys/class/switch/hdmi_audio", GOTO="sound_end"

I hope you guys can be helped by this method

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