mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:05:42 +01:00
alsactl - fix double entry of comment.tlv
The entry comment.tlv can be doubly written via alsactl store, and this results in an error. I forgot to remove the old code...
This commit is contained in:
parent
1e6f486623
commit
6f05fd4db2
1 changed files with 0 additions and 16 deletions
|
@ -330,22 +330,6 @@ static int get_control(snd_ctl_t *handle, snd_ctl_elem_id_t *id, snd_config_t *t
|
|||
if (err < 0)
|
||||
return err;
|
||||
}
|
||||
if (snd_ctl_elem_info_is_tlv_readable(info)) {
|
||||
unsigned int tlv[MAX_USER_TLV_SIZE];
|
||||
err = snd_ctl_elem_tlv_read(handle, id, tlv, sizeof(tlv));
|
||||
if (err >= 0) {
|
||||
char *s = tlv_to_str(tlv);
|
||||
if (s) {
|
||||
err = snd_config_string_add(comment, "tlv", s);
|
||||
if (err < 0) {
|
||||
error("snd_config_string_add: %s", snd_strerror(err));
|
||||
return err;
|
||||
}
|
||||
free(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case SND_CTL_ELEM_TYPE_INTEGER64:
|
||||
|
|
Loading…
Reference in a new issue