Bug 104441 - media-sound/alsa-utils: init script should save/restore the 'oss' file
Bug#: 104441 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: alsa-bugs@gentoo.org Reported By: vapier@gentoo.org
Component: Applications
URL: 
Summary: media-sound/alsa-utils: init script should save/restore the 'oss' file
Keywords:  
Status Whiteboard: 
Opened: 2005-08-31 19:21 0000
Description:   Opened: 2005-08-31 19:21 0000
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 From Sulla Felix 2005-09-07 11:53:42 0000 -------
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 From SpanKY 2005-09-07 15:22:22 0000 -------
i already am, but that doesnt exactly help general users

------- Comment #3 From Diego E. 'Flameeyes' Pettenò 2005-12-17 03:48:51 0000 -------
Mike do you have an idea how to achieve this? If not, I'll see to take a look
next week.

------- Comment #4 From SpanKY 2005-12-17 09:35:50 0000 -------
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 From Diego E. 'Flameeyes' Pettenò 2007-02-18 02:09:05 0000 -------
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.