If your system keeps on using the wrong device (HDMI instead of PCH or vica versa, or some other problem), then use one of the following two methods to identify the device's number & then instruct your system to use that number/device:
Run alsamixer - if you have it installed, just enter:
Code: Select all
alsamixer
In alsamixer hit the F6 function key, then you'll see the devices listed in a little box, with their numbers in front of them.
OR
Enter the following into a terminal:
Code: Select all
cat /proc/asound/cards
Choose the number of the sound device that you want to use.
Then using your text editor of choice, put the following into /etc/asound.conf (You will most likely have to create /etc/asound.conf ).
Code: Select all
defaults.pcm.card 1
defaults.ctl.card 1
Save the file & play a movie or listen to a tune.
I can imagine that if you had need to change between two sound devices from time to time, you could write a simple script that quickly swapped from one /etc/asound.conf file to another. All it would have to do is change/swap the file extensions from asound.conf.bak to asound.conf & visa versa when desired.
The core information in this page came from the ALSA Project:
https://www.alsa-project.org/main/index.php/Main_Page
For those that need a fix for the same problem & they are running Pulseaudio, this page has a solution:
https://forum.manjaro.org/t/pulseaudio- ... vice/36562