Problems with alsactl and via VT8235
Hi
I am working on a Motherboard with a via VT8235 south bridge, over a Red Hat 8.0 Linux.
I have installed the Alsa drivers for this AC97 compliant sound device and everything was really perfect, except for recording. After many experiments, I realize that the problem was in the last lines of the modules.conf file, with the pre-remove and post-install. The original lines are :
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L
Quoted 1 line
/dev/null2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S
Quoted 1 line
/dev/null2>&1 || :
By Removing those lines, sound recording began to work really fine. But every time I reboot, I had everything mutted ( I know this is the expected behavior ).
I then changed the lines to:
post-install snd-pcm-oss /bin/alsactl restore >/dev/null 2>/dev/null
pre-remove snd-pcm-oss /bin/alsactl store >/dev/null 2>/dev/null
I am using alsactl as I have read on this mailing list that this the only safe way to save and restore status.
This approach works, but restores the last state I manually saved some time, not the state just before shutdown.
Why is this happening ? If I try "alsactl store" manually, the recording does not work any longer until the driver are unloaded and reloaded again.
Why the original lines from the RedHat installation work for restoring the Level of all the channels, but breaks the capture functionality ?
Guillermo
-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge
Quoted 7 lines · Guillermo Keil
post-install snd-pcm-oss
/bin/alsactlrestore >/dev/null 2>/dev/null
pre-remove snd-pcm-oss/bin/alsactlstore >/dev/null 2>/dev/nullThis approach works, but restores the last state I manually saved some time, not the state just before shutdown.
Why is this happening ?
The second line above tells Linux to save the state when the snd-pcm-oss module gets unloaded. Either this module isn't unloaded when shutting down, or your sound card driver is already unloaded at that point.
Try replacing snd-pcm-oss with snd-card-0.
HTH
Clemens
-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge