mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 03:25:43 +01:00
Also the switch name is shown..
This commit is contained in:
parent
5571280c06
commit
f9d81448d8
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ static int determine_switches(void *handle, struct ctl_switch **csw, int interfa
|
||||||
bzero(&sw, sizeof(sw));
|
bzero(&sw, sizeof(sw));
|
||||||
strncpy(sw.name, item->name, sizeof(sw.name));
|
strncpy(sw.name, item->name, sizeof(sw.name));
|
||||||
if ((err = switch_read(handle, &sw, interface, device)) < 0) {
|
if ((err = switch_read(handle, &sw, interface, device)) < 0) {
|
||||||
error("Cannot read switch for interface %i and device %i: %s", interface, device, snd_strerror(err));
|
error("Cannot read switch '%s' for interface %i and device %i: %s", sw.name, interface, device, snd_strerror(err));
|
||||||
free(list.pswitches);
|
free(list.pswitches);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue