You are not logged in.
Good evening, I recently compiled firefox-beta from AUR using the --enable-alsa flag, prudently getting rid of everyone else that would mean JACK or PulseAudio support.
Ultimately, I did not get what I wanted - ALSA does not work.
I would like to note that alsa.conf and .asoundrc are configured correctly, which is why they interact correctly with all other applications.
Perhaps I'm wrong that I was going to return ALSA support through PKGBUILD and this method is no longer relevant. If so, please sanctify at least one of the available methods. Of course, resorting to the help of apulse or libpulse is not permissible.
I apologize in advance, if due to the fault of my carelessness, topics with the same topic have not been noticed.
Offline
Mod note: moving to AUR Issues
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
https://aur.archlinux.org/packages/firefox-beta/ does enable alsa support, did you change the PKGBUILD ?
If so, please post the PKGBUILD you used.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
How "correctly" are your ALSA configs configured? Firefox's ALSA support hardcodes on a properly defined ALSA default device, where "properly defined" means that you have to make it listable on PCM listings with a
hint {
show on
description "My ALSA default device "
}
Offline
hint { show on description "My ALSA default device " }
I'm sorry, but I do not quite understand why need the syntax printed by you. Be that as it may, I find it necessary to share the configuration. So my asoundrc:
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
Offline
Run
aplay -L
you won't see a default option, add my section to your pcm override rerun that same command, you will see a default option. Retry in firefox, sound should work.
That said, this config as posted breaks dmix and you will only be able to play from a single audio application at a time (unless you have one of the few cards still having multiple hardware mixer pcms) a better config to the same effect would be
defaults.pcm.card 1
defaults.ctl.card 1
even better would be using string identifiers to accurately access the correct card (or ensuring index order with modprobe.d)
Offline
Run
aplay -L
you won't see a default option, add my section to your pcm override rerun that same command, you will see a default option. Retry in firefox, sound should work.
That said, this config as posted breaks dmix and you will only be able to play from a single audio application at a time (unless you have one of the few cards still having multiple hardware mixer pcms) a better config to the same effect would be
defaults.pcm.card 1 defaults.ctl.card 1
even better would be using string identifiers to accurately access the correct card (or ensuring index order with modprobe.d)
Indicate explicitly where it is appropriate to use your code? If it was supposed that I should strictly define the default values based on aplay -L at the beginning of the ~/.asoundrc file, I did this. All the same. No effect. I can share the exhaust of Firefox itself when I try to play the audio track, but I think this is pointless.
P.S Now that I have analyzed the corresponding page in ArchWiki, I understand what you mean /etc/asound.conf. There is no effect... But... This fixed the sound in another application - the second after Firefox, with which I had problems.
Last edited by ArchLinuxSU (2019-12-08 12:42:47)
Offline
If you want to go with the hints method, add it to your !default override so
pcm.!default {
type hw
card 1
hint {
show on
description "My ALSA default device "
}
}
if want to go with the defaults method those two lines are all you should have present. If this still doesn't work I'd suggest you try with the normal firefox package since there we know that there shouldn't be an issue with the build, or indeed post firefoxes output (or at least a dump of about:support and
sudo fuser -v /dev/snd/*
during attempted playback)
Offline
If you want to go with the hints method, add it to your !default override so
pcm.!default { type hw card 1 hint { show on description "My ALSA default device " } }
if want to go with the defaults method those two lines are all you should have present. If this still doesn't work I'd suggest you try with the normal firefox package since there we know that there shouldn't be an issue with the build, or indeed post firefoxes output (or at least a dump of about:support and
sudo fuser -v /dev/snd/*
during attempted playback)
Tomorrow I will definitely try! But while you are in touch, I’ll ask a couple of ridiculous questions about the syntax: in your case, “hint” is not in the body of the method or is it a typo? Does “Description” have to be verbatim as you indicated, or is this a fickle argument?
Offline
hint is the actual option (like type and hw) to tell it that the enclosing PCM (i.e. default) should have a hint , the others are options/parameters to hint; show on tells it to display that hint, description can be whatever.
Last edited by V1del (2019-12-08 18:10:07)
Offline
hint is the actual option (like type and hw) to tell it that the enclosing PCM (i.e. default) should have a hint , the others are options/parameters to hint; show on tells it to display that hint, description can be whatever.
I would like to apologize for the delay. I had some business. + An additional incident that prevented me from leaving tty yesterday. Perhaps soon I will raise a discussion on this subject, and finally deal with my specific xorg-server.
So, I did everything as you said and it helped in the case of a different application, but not with Firefox. Perhaps the reason for this is blocking the cache entry in the client settings. (via about: config) If I share my console output while playing through the audio track, can this help the case?
I feel that it turns out to be extremely unproductive, and that it will end soon. Nevertheless, I sincerely thank you for your patience.
Offline
a better config to the same effect would be
defaults.pcm.card 1 defaults.ctl.card 1
Thank you! I've got sound after this change (Firefox 76)
Offline