-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to determine which files were read/parsed #345
Comments
Btw I was able to merge card 1 device 0 : speakers + headphones with card 2 device 3: monitor speakers, but the problem was that I still had to switch between card 1 and 2 in alsamixer to change audio. As of know my desired setup would be just one card with 3 sliders Headpohnes, Speakers(aka Front, but ironically it is in the back of my PC) and Monitor. Here is my setup, but it currently doesn't use combined pcm device.
It worked ok, but I've noticed some issues:
|
I think your main issue is you should use a sound server, such as pulseaudio or Pipewire, which is how sound devices are accessed by several applications on most modern Linux desktop environments. This is usually how it is setup by default on most distributions I know of. Regarding your initial question, this is most of the files involved, though again the paths might vary according to your distribution. UCM profiles might be involved, too. https://www.alsa-project.org/alsa-doc/alsa-lib/group__ucm__conf.html That said, a sound server really is best in your case, instead of accessing alsa directly. |
I would like to know which files were read by alsa doing
alsactl restore
oralsactl init
.So far I know that there is a folder
/usr/share/alsa
and it hasinit/00main
, and this is probably read first, because when I deleted whole alsa dir I got error about this file, then I don't know what is read. Also there is a file/var/lib/alsa/asound.state
which from my understanding contains values for different controls that are visible in alsamixer. There is also "user" config file in/etc/asound.conf
and optionally any user can create~/.asound.conf
. Am I missing any other files?getting the list of files in order they are read for each card or all cards would be helpfull in debugging.
For example by default I found out that my card HDA Intel PCH has two devices ALC1150 Analog and ALC1150 Digital. Digital is probably one of the six jacks in the back of my PC that are unplugged so I don't care about them right now. However Analog in my PC is connected to speakers and also from motherboard comes another cable to front jack panel that I plugged my headphones. I have a few problems with the default configuration:
Correct me if I'm wrong, but from my understanding you have to connect different devices to be able to dynamically switch between them, because normally every process, e.g browser connects to a pcm device at startup and you can't change it later. So the actual audio switching is unmuting one thing and muting rest of them. All "things" are connected to one pcm, right?
Please correct me if I'm wrong or use wrong terminology.
The text was updated successfully, but these errors were encountered: