mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 05:35:43 +01:00
alsactl: update debug prints in state.c
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
412cb29b58
commit
f0658f37dc
1 changed files with 3 additions and 3 deletions
|
@ -1415,6 +1415,7 @@ static int set_controls(int card, snd_config_t *top, int doit)
|
||||||
goto _close;
|
goto _close;
|
||||||
}
|
}
|
||||||
id = snd_ctl_card_info_get_id(info);
|
id = snd_ctl_card_info_get_id(info);
|
||||||
|
dbg("card-info-id: '%s'", id);
|
||||||
err = snd_config_searchv(top, &control, "state", id, "control", 0);
|
err = snd_config_searchv(top, &control, "state", id, "control", 0);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
if (force_restore) {
|
if (force_restore) {
|
||||||
|
@ -1440,19 +1441,18 @@ static int set_controls(int card, snd_config_t *top, int doit)
|
||||||
goto _close;
|
goto _close;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dbg("maxnumid=%i", maxnumid);
|
||||||
/* check if we have additional controls in driver */
|
/* check if we have additional controls in driver */
|
||||||
/* in this case we should go through init procedure */
|
/* in this case we should go through init procedure */
|
||||||
if (!doit && maxnumid >= 0) {
|
if (!doit && maxnumid >= 0) {
|
||||||
snd_ctl_elem_id_t *id;
|
|
||||||
snd_ctl_elem_info_t *info;
|
snd_ctl_elem_info_t *info;
|
||||||
snd_ctl_elem_id_alloca(&id);
|
|
||||||
snd_ctl_elem_info_alloca(&info);
|
snd_ctl_elem_info_alloca(&info);
|
||||||
snd_ctl_elem_info_set_numid(info, maxnumid+1);
|
snd_ctl_elem_info_set_numid(info, maxnumid+1);
|
||||||
if (snd_ctl_elem_info(handle, info) == 0) {
|
if (snd_ctl_elem_info(handle, info) == 0) {
|
||||||
/* not very informative */
|
/* not very informative */
|
||||||
/* but value is used for check only */
|
/* but value is used for check only */
|
||||||
err = -EAGAIN;
|
err = -EAGAIN;
|
||||||
dbg("maxnumid=%i: more controls?", maxnumid);
|
dbg("more controls than maxnumid?");
|
||||||
goto _close;
|
goto _close;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue