alsactl: indirect removal; amixer - fixed typos

This commit is contained in:
Jaroslav Kysela 2003-04-01 14:09:09 +00:00
parent 537a149da2
commit c8965f5622
2 changed files with 4 additions and 4 deletions

View file

@ -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"); strcat(buf, " volatile");
if (snd_ctl_elem_info_is_locked(info)) if (snd_ctl_elem_info_is_locked(info))
strcat(buf, " locked"); strcat(buf, " locked");
if (snd_ctl_elem_info_is_indirect(info)) if (snd_ctl_elem_info_is_first(info))
strcat(buf, " indirect"); strcat(buf, " first");
err = snd_config_string_add(comment, "access", buf + 1); err = snd_config_string_add(comment, "access", buf + 1);
if (err < 0) { if (err < 0) {
error("snd_config_string_add: %s", snd_strerror(err)); error("snd_config_string_add: %s", snd_strerror(err));

View file

@ -92,12 +92,12 @@ static int info(void)
snd_ctl_elem_list_alloca(&clist); snd_ctl_elem_list_alloca(&clist);
if ((err = snd_ctl_open(&handle, card, 0)) < 0) { 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; return err;
} }
if ((err = snd_ctl_card_info(handle, info)) < 0) { 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; return err;
} }
printf("Card %s '%s'/'%s'\n", card, snd_ctl_card_info_get_id(info), printf("Card %s '%s'/'%s'\n", card, snd_ctl_card_info_get_id(info),