Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728108 - media-sound/alsa-utils: 'cards_limit=1' does not seem a good default for modern systems
Summary: media-sound/alsa-utils: 'cards_limit=1' does not seem a good default for mode...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-13 06:22 UTC by Michał Górny
Modified: 2022-12-23 10:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ubuntu-alsa.conf (Documento sin título 1,2.45 KB, text/plain)
2022-12-15 10:38 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-06-13 06:22:46 UTC
The default module config has:

+options snd cards_limit=1

I have no clue why we need to set limit by default but 1 seems a bit small for modern desktop systems.  Here I do have 2 cards because of HDMI output on video card, and I think other desktops with real video card have the same.
Comment 1 Pacho Ramos gentoo-dev 2022-12-10 15:54:54 UTC
I couldn't find an equivalent file in the packages for other distributions... I neither known where the original file comes from... maybe from an "alsaconf" run with default parameters :/

But I don't know how the other distros are handling the OSS compatibility... as the other parts are likely obsolete
Comment 2 Pacho Ramos gentoo-dev 2022-12-15 10:38:06 UTC
Created attachment 842859 [details]
ubuntu-alsa.conf

I have been reviewing the config files on an Ubuntu 20.04 installation and it seems that, even if they also use a modprobe.d file, they specify completely different settings aiming to workaround some bugs.  

I think then that dropping the cards limit line could be safe (and probably dropping most of the lines too)
Comment 3 Pacho Ramos gentoo-dev 2022-12-19 16:55:35 UTC
I am running for some days without any alsa.conf file and for now it works... I would drop it then and, if we need to add lines in the future, add them with the proper references as done in Ubuntu
Comment 4 Larry the Git Cow gentoo-dev 2022-12-23 10:15:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cf2e5bbd380f6b695bcef9752c55f082ce5a759

commit 6cf2e5bbd380f6b695bcef9752c55f082ce5a759
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2022-12-23 10:11:51 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2022-12-23 10:14:26 +0000

    media-sound/alsa-utils: Stop providing obsolete modprobe.d file
    
    The file only contains obsolete entries that are not needed with current
    systems. If some lines need to be added to workaround other issues, please
    open a bug report per issue to properly track them in the future.
    
    Also drop unneeded .la files.
    
    Closes: https://bugs.gentoo.org/713732
    Closes: https://bugs.gentoo.org/728108
    Closes: https://bugs.gentoo.org/849014
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 media-sound/alsa-utils/alsa-utils-1.2.8-r1.ebuild | 92 +++++++++++++++++++++++
 1 file changed, 92 insertions(+)