mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 05:26:30 +01:00
Clemens Ladisch <clemens@ladisch.de>
fix error messages for snd_mixer_load
This commit is contained in:
parent
1ae3fa8532
commit
7759ed8617
1 changed files with 3 additions and 3 deletions
|
@ -774,7 +774,7 @@ static int selems(int level)
|
||||||
}
|
}
|
||||||
err = snd_mixer_load(handle);
|
err = snd_mixer_load(handle);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
error("Mixer load error: %s", card, snd_strerror(err));
|
error("Mixer %s load error: %s", card, snd_strerror(err));
|
||||||
snd_mixer_close(handle);
|
snd_mixer_close(handle);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
@ -1145,7 +1145,7 @@ static int sset(unsigned int argc, char *argv[], int roflag)
|
||||||
}
|
}
|
||||||
err = snd_mixer_load(handle);
|
err = snd_mixer_load(handle);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
error("Mixer load error: %s", card, snd_strerror(err));
|
error("Mixer %s load error: %s", card, snd_strerror(err));
|
||||||
snd_mixer_close(handle);
|
snd_mixer_close(handle);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
@ -1427,7 +1427,7 @@ static int sevents(int argc ATTRIBUTE_UNUSED, char *argv[] ATTRIBUTE_UNUSED)
|
||||||
snd_mixer_set_callback(handle, mixer_event);
|
snd_mixer_set_callback(handle, mixer_event);
|
||||||
err = snd_mixer_load(handle);
|
err = snd_mixer_load(handle);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
error("Mixer load error: %s", card, snd_strerror(err));
|
error("Mixer %s load error: %s", card, snd_strerror(err));
|
||||||
snd_mixer_close(handle);
|
snd_mixer_close(handle);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue