Commit graph

18 commits

Author SHA1 Message Date
Clemens Ladisch
b4ff58b685 Revert wrong parts of "alsactl: use snd_config_imake* functions"
This reverts the parts of commit e509df69a5
that accidentally reverted a bunch of earlier commits.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2010-05-26 10:37:58 +02:00
Clemens Ladisch
e509df69a5 alsactl: use snd_config_imake* functions
To save a call to snd_config_set_xxx, replace the calls to
snd_config_make_xxx with snd_config_imake_xxx.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2010-05-26 10:07:47 +02:00
Jaroslav Kysela
5c35aa8b69 alsactl: improve -d to get warnings and store exitcode to runstate file
Also, make the initialization & restore logic for one card similar to
multiple card initialization & restore.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2010-02-25 09:22:26 +01:00
Takashi Iwai
1797b2c290 Add -I option to alsactl
Add -I option to alsactl to take back the old restore behavior without
initialization.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-11-13 09:28:43 +01:00
Jaroslav Kysela
f63ff476f3 alsactl: Add -g,--ignore option to ignore 'No soundcards found' error
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-09-18 09:40:02 +02:00
Jaroslav Kysela
b8560a6bbb 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>
2008-08-14 16:46:27 +02:00
Jaroslav Kysela
b402cf543a Initial 'alsactl init' implementation
See 'man 7 alsactl_init' for more details.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-07-31 15:45:08 +02:00
Jaroslav Kysela
31efc323b1 split source per command and added command 'names'
- sources are splitted to separate files
- added initial code for 'names' command
2005-05-10 10:55:24 +00:00
Abramo Bagnara
8c4e1aa769 Rewritten alsactl 2000-08-25 14:34:26 +00:00
Jaroslav Kysela
9d5b8f205d Changes reflecting the new control API and kernel mixer API removal. 2000-07-15 10:21:59 +00:00
Jaroslav Kysela
2e02eadd72 Mixer v2.0 merged to the main CVS tree... 1999-05-02 16:21:40 +00:00
Jaroslav Kysela
daab0cd6d0 New universal switch v2.0 interface. 1999-03-27 19:45:01 +00:00
Jaroslav Kysela
4db1fd02ce Merged new-mixer branch... 1999-03-08 16:51:53 +00:00
Jaroslav Kysela
88cdd83d0f Changes for record volume... 1999-02-15 15:42:34 +00:00
Jaroslav Kysela
fbbaa7239e Coding style... 1998-11-27 15:13:57 +00:00
Jaroslav Kysela
18fa888b68 Now is alsactl restore <card> hhandled ok when configuration file doesn't exist... 1998-11-20 20:02:51 +00:00
Jaroslav Kysela
ec275f84ed Changed version... 1998-10-31 19:50:16 +00:00
Jaroslav Kysela
72ff837506 Initial version of alsactl... 1998-10-29 22:45:59 +00:00