mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
spa-acp-tool: fix set-volume vol argument parse
This commit is contained in:
parent
5f66650f7c
commit
09a690b123
1 changed files with 1 additions and 1 deletions
|
|
@ -406,7 +406,7 @@ static int cmd_set_volume(struct data *data, const struct command *cmd, int argc
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
dev_id = atoi(argv[1]);
|
dev_id = atoi(argv[1]);
|
||||||
vol = atof(argv[1]);
|
vol = atof(argv[2]);
|
||||||
|
|
||||||
if (dev_id >= card->n_devices)
|
if (dev_id >= card->n_devices)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue