-
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.
![image](https://private-user-images.githubusercontent.com/57236506/261877210-2d73bb21-e9ee-4172-8e8e-04785cf0a887.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5Nzg3MTksIm5iZiI6MTcyMzk3ODQxOSwicGF0aCI6Ii81NzIzNjUwNi8yNjE4NzcyMTAtMmQ3M2JiMjEtZTllZS00MTcyLThlOGUtMDQ3ODVjZjBhODg3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDEwNTMzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTViMmM4ZjhhMWZlZThjM2Y3ZTc5OTk0NGRkZjIzY2VmZmJkNGNiY2I3ZDVkNTQ0MzkyZTkwMmQxNTMyNGNkMmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yYsEVvj4rsRkW76IcHjQsWOa9sALqAkXwTX57Yc4pbw)
The text was updated successfully, but these errors were encountered: