mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 18:06:30 +01:00
alsactl: indirect removal; amixer - fixed typos
This commit is contained in:
parent
537a149da2
commit
c8965f5622
2 changed files with 4 additions and 4 deletions
|
@ -218,8 +218,8 @@ static int get_control(snd_ctl_t *handle, snd_ctl_elem_id_t *id, snd_config_t *t
|
|||
strcat(buf, " volatile");
|
||||
if (snd_ctl_elem_info_is_locked(info))
|
||||
strcat(buf, " locked");
|
||||
if (snd_ctl_elem_info_is_indirect(info))
|
||||
strcat(buf, " indirect");
|
||||
if (snd_ctl_elem_info_is_first(info))
|
||||
strcat(buf, " first");
|
||||
err = snd_config_string_add(comment, "access", buf + 1);
|
||||
if (err < 0) {
|
||||
error("snd_config_string_add: %s", snd_strerror(err));
|
||||
|
|
|
@ -92,12 +92,12 @@ static int info(void)
|
|||
snd_ctl_elem_list_alloca(&clist);
|
||||
|
||||
if ((err = snd_ctl_open(&handle, card, 0)) < 0) {
|
||||
error("Control device %i open error: %s", card, snd_strerror(err));
|
||||
error("Control device %s open error: %s", card, snd_strerror(err));
|
||||
return err;
|
||||
}
|
||||
|
||||
if ((err = snd_ctl_card_info(handle, info)) < 0) {
|
||||
error("Control device %i hw info error: %s", card, snd_strerror(err));
|
||||
error("Control device %s hw info error: %s", card, snd_strerror(err));
|
||||
return err;
|
||||
}
|
||||
printf("Card %s '%s'/'%s'\n", card, snd_ctl_card_info_get_id(info),
|
||||
|
|
Loading…
Reference in a new issue