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));
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),