Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104441 - media-sound/alsa-utils: init script should save/restore the 'oss' file
Summary: media-sound/alsa-utils: init script should save/restore the 'oss' file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-31 19:21 UTC by SpanKY
Modified: 2007-02-18 02:09 UTC (History)
1 user (show)

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 SpanKY gentoo-dev 2005-08-31 19:21:16 UTC
the alsa init script should save and restore the oss files:
/proc/asound/*/pcm??/oss

that way people dont have to keep doing this everytime they reboot:
echo quake3.x86 0 0 direct > /proc/asound/card0/pcm0p/oss
Comment 1 Sulla Felix 2005-09-07 11:53:42 UTC
Maybe it could be done in alsa init script in the meantime, you can
always use your /etc/conf.d/local.start script.
Comment 2 SpanKY gentoo-dev 2005-09-07 15:22:22 UTC
i already am, but that doesnt exactly help general users
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-17 03:48:51 UTC
Mike do you have an idea how to achieve this? If not, I'll see to take a look next week.
Comment 4 SpanKY gentoo-dev 2005-12-17 09:35:50 UTC
start():
iterate over the /proc/asound/*/pcm??/oss files and cat them into a local cache

stop():
iterate over the files in the cache and cat them into the /proc oss files
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-02-18 02:09:05 UTC
AAAAAAND finally it's fixed. I've added support for saving and restoring the oss files, together with the move of asound.state in /var/lib/alsa, where there's space to save the oss files.

Sorry if it took a helluva lot of time.