From 201f28a008179e774a355f2f9e7cdadfe09fd63f Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 11 Apr 2013 13:36:56 +0200 Subject: [PATCH] control: enhance doc for snd_ctl_ascii_value_parse() function Signed-off-by: Jaroslav Kysela --- src/control/ctlparse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/control/ctlparse.c b/src/control/ctlparse.c index c442c44c..978977db 100644 --- a/src/control/ctlparse.c +++ b/src/control/ctlparse.c @@ -302,6 +302,9 @@ static int get_ctl_enum_item_index(snd_ctl_t *handle, * \param info CTL element info structure * \param value source ASCII string * \return zero on success, otherwise a negative error code + * + * Note: For toggle command, the dst must contain previous (current) + * state (do the #snd_ctl_elem_read call to obtain it). */ int snd_ctl_ascii_value_parse(snd_ctl_t *handle, snd_ctl_elem_value_t *dst, -- 2.47.1