Using a rpi-5,
The PI is connected to my TV via HDMI, sound works fine. However I have a need to be able to switch Audio output from the HDMI over to the Audio output jack when I run a certain program, then switch it back to the HDMI port when done...without rebooting.
Does anyone know if this is possible, and if so how (or a pointer to a clue) ?
Regards,
Jim
Sounds unlikely to me.
Can you describe the "Audio output jack" on your RPi[5] board?
For an RPi model on which a hardware audio port exists you could use the appropriate option in the raspi-config utility from the shell in non-interactive mode.
Ref: https://www.raspberrypi.com/documentati ... config-cli
and specifically -
https://www.raspberrypi.com/documentati ... ml#audio-2
Specify the audio output destination.
sudo raspi-config nonint do_audio <N>
On Raspberry Pi 4B, you can use the following options:
0: bcm2835 headphone jack
1: vc4-hdmi-0
2: vc4-hdmi-1
For a full list of possible <N> values, see the numbers used in the interactive raspi-config version of this option.
Statistics: Posted by B.Goode — Mon Jul 22, 2024 10:38 am