vol=75
chan=`amixer controls | grep Volume | head -n1 | cut -f1 -d',' | cut -f2 -d'='`
amixer cset numid=$chan -- ${vol}% > /dev/null
Plugging the 3.5mm jack into the HDMI display.
Note that there might need to be some further setup to get things working consistently.
Maybe this in /boot/config.txt?
hdmi_drive=2