Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43394 - Portage should check /usr/src/linux for MAX ALSA version upgrades
Summary: Portage should check /usr/src/linux for MAX ALSA version upgrades
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-01 10:30 UTC by Greg Watson (linuxkrn)
Modified: 2004-03-01 22:58 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Watson (linuxkrn) 2004-03-01 10:30:08 UTC
When upgrading, emerge -uUD world, portage should check the file
/usr/src/linux/include/sound/version.h for ALSA version in the kernel and NOT try to upgrade alsa-* (utils,libs,tools,etc) past that version.

contents of file look like:
/* include/version.h.  Generated by configure.  */
#define CONFIG_SND_VERSION "1.0.2c"
#define CONFIG_SND_DATE ""

The only current fix would be to continue to mask packages above that number manually in /etc/portage/package.mask.
Comment 1 SpanKY gentoo-dev 2004-03-01 10:42:28 UTC
*shrug* i used the 1.0.x series in userland while kernel was still 0.9.x and i never had any problems ;)
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-01 10:49:49 UTC
The version of alsa provided by the kernel has no baring on what version will actually work with the kernel.
Comment 3 Greg Watson (linuxkrn) 2004-03-01 11:58:53 UTC
That is not always true.  You are too quick to jump a resolved.  In fact, many things break when kernel driver and alsa-lib are not the same.  You may not notice them if you don't use advanced things such a surround sound or AC3 passthrough but they DO BREAK.

I've done development work with ALSA and can tell you that the kernel driver and libs should match.  Furthermore, some tools such as amixer, alsamixer(gui) will also have issues if you run unmatched versions.  

Again, just because simple functions work DOES NOT mean everything is fine.
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-03-01 22:58:51 UTC
a) I do use AC3 passthrough on 2 separate systems.
b) We are recommending that users use media-sound/alsa-driver over the in-kernel drivers unless the external packages do not compile (still an issue for some people).  This way, the versions stay in-sync.
c) If they use media-sound/alsa-driver, then checking /usr/src/linux/include/version.h is not a valid solution.