]> git.alsa-project.org Git - alsa-lib.git/commit
control: Allow cset'ing specific values in the multi-value case
authorTakashi Iwai <tiwai@suse.de>
Wed, 10 Jun 2015 09:56:23 +0000 (11:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 10 Jun 2015 09:56:23 +0000 (11:56 +0200)
commit2fd098b587e8e5137c05ea6248c2aa87294e13c2
treef887b05d48bc0ca5c14d91cdb531460c57ad433d
parent18ce3ec9caa266086c5f364a2bdbab27a8db9d77
control: Allow cset'ing specific values in the multi-value case

Improve the parser to allow empty elements followed by a comma.
Now amixer works like below for setting only the third element.
  % amixer cset 'IIR1 Band1' ,,200

Reported-and-tested-by: Arun Raghavan <arun@accosted.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/control/ctlparse.c