Mixer
sudo alsamixer
Sound settings
sudo nano /etc/asound.conf
Modify /etc/asound.cnf
pcm.!default {
type hw
card 0 //If you want to set HDMI as output ,turn 0 to 1.
device 0
}
ctl.!default {
type hw
card 0 //If you want to set HDMI as output ,turn 0 to 1.
}
Test the sound
speaker-test -twav -c2