I have followed all the other posts, I could find through some searching.
Installed alsa-utils, tried to change to Analogue output (there are only 2 HDMI outputs)
I have run $this->bbcode_second_pass_code('', 'amixer -q cset numid=3 1')
and receive the following error:
$this->bbcode_second_pass_code('', 'amixer: Control default element write error: Operation not permitted')
I receive that error whether I use the command as sudo or not.
Any idea what might be causing this?