Re: [LAU] RME HDSP: X11-less mixer state restoring

From: Paul Davis <paul@email-addr-hidden>
Date: Sun Apr 03 2011 - 19:28:19 EEST

On Sun, Apr 3, 2011 at 12:21 PM, Andrew Gaydenko <a@email-addr-hidden> wrote:
> On Sunday 03 April 2011 19:59:30 Paul Davis wrote:
>> On Sun, Apr 3, 2011 at 11:51 AM, Andrew Gaydenko <a@email-addr-hidden> wrote:
>> > How to?
>>
>> example script below. its not commented or explained, because i wrote
>> it for me alone.
>
> Paul, thanks! I'm not bash guru at all, but will try to dig in your script. In
> fact, if I understand correctly, it isn't a restoring (to restore we must at
> first save a state, and it is impossible to read current state), but it is a
> setting.

store the state of the n'th card (starting from zero) in a file called
foobar: alsactl -f foobar store N
restore the state of the nth card (starting from zero) from a file
called foobar: alsactl -f foobar restore N

a properly configured system does this for all cards at system
shutdown and at boot time.

my script allows more specific kinds of setup to be done without any
reference to any existing state.

--p
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Sun Apr 3 20:15:05 2011

This archive was generated by hypermail 2.1.8 : Sun Apr 03 2011 - 20:15:05 EEST