]> git.alsa-project.org Git - alsa-utils.git/commit
alsactl init - restore calls also init on failure
authorJaroslav Kysela <perex@perex.cz>
Thu, 14 Aug 2008 14:46:27 +0000 (16:46 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 14 Aug 2008 14:46:27 +0000 (16:46 +0200)
commitb8560a6bbbf4d5b2eea20eac52e953dcbe786868
treec5fb3c0e85bbac174e843dc9772553073d03323d
parentec73719ec6a7d4ccdd71c32de585217f31a99fb3
alsactl init - restore calls also init on failure

The initialization procedure consist from default initialization and
state restoration. When restore fails for a reason or the config file
contains inaccurate information, then init is called.

Also, if something fails (init or restore), a file specified using -r
option can be created with description what failed. It can be useful
when user space decides to notify user to set the sound driver properly.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/alsactl.c
alsactl/alsactl.h
alsactl/init_parse.c
alsactl/state.c
alsactl/utils.c