Before getting into detail
on how the sound works perfectly or no sound at all,
first we should examine the system wide setting,
that is provided by the operating system.
The Hardware Information
I always use lspci as my starting point.
Well, I’m not an expert. I could be wrong.
Other people mught have different starting point.
Now that we have this 00:1b.0,
we can have a more verbose information.
It is crazy. This command know that I have realtek ALC887.
Note with this suspicious access denied message,
my sound card still works perfectly.
Now, how about lsmod.
Boot Messages
Simply issue dmesg (display message) command.
And filter it with grep looking for text contining snd.
Or you can issue a more specific filter.
But this is useless.
I mean, please be careful on filtering.
You might lose important message that you are searching for.
Device
Device is listed on /dev/snd.
Process
The /dev/snd directory is not the only place to go.
How about /proc/asound ?
We can use this later to get the codec.
User and Group
One said that most the important aspect is the permission.
2: The Audio Part
Now it is depend on the driver and audio handler in your system.
Mine could be difference with yours.
Pulseaudio
My openSUSE as pulseaudio set by default.
aplay: List Devices
You must have been heard about this aplay tool.
Consider issue aplay -l command.
However, be aware of lowercase argument.
Now it is time to test if the audio works.
You should hear something from your speaker by now.
aplay: List PCM
Consider issue aplay -L command.
However, be aware of uppercase argument.
PCM: Pulse Code Modulation
alsamixer
Now you can djust volume by issue alsamixer command.
And press ESC to quit.
xfce4-mixer
If you wish for GUI, you can use xfce4-mixer as well.
pavucontrol
Or more eleganly for pulseaudio, you can use pavucontrol.
3: Miscellanous
Volume Control: amixer
Volume Control: pactl
pactl and pacmd.
Information: pactl
Conclusion
That’s not all. Not at all.
There are still a lot of things to explore with audio sound.
But I have only limited knowledge.