From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH v2] control: complement comment for subscribe API Date: Mon, 09 Feb 2015 16:35:50 +0100 Message-ID: References: <1423495122-24893-1-git-send-email-o-takashi@sakamocchi.jp> <1423495639-25249-1-git-send-email-o-takashi@sakamocchi.jp> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 9CEE6260506 for ; Mon, 9 Feb 2015 16:35:50 +0100 (CET) In-Reply-To: <1423495639-25249-1-git-send-email-o-takashi@sakamocchi.jp> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Takashi Sakamoto Cc: alsa-devel@alsa-project.org, clemens@ladisch.de List-Id: alsa-devel@alsa-project.org At Tue, 10 Feb 2015 00:27:19 +0900, Takashi Sakamoto wrote: > > When minus value is given as a parameter, the API returns whether > the caller has already subscribed or not. > > This commit adds a comment about this so as better documentation. > > Signed-off-by: Takashi Sakamoto Applied, thanks. Takashi > --- > src/control/control.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/control/control.c b/src/control/control.c > index dd428a1..4a28cf6 100644 > --- a/src/control/control.c > +++ b/src/control/control.c > @@ -213,7 +213,7 @@ int snd_ctl_poll_descriptors_revents(snd_ctl_t *ctl, struct pollfd *pfds, unsign > /** > * \brief Ask to be informed about events (poll, #snd_async_add_ctl_handler, #snd_ctl_read) > * \param ctl CTL handle > - * \param subscribe 0 = unsubscribe, 1 = subscribe > + * \param subscribe 0 = unsubscribe, 1 = subscribe, -1 = check subscribe or not > * \return 0 on success otherwise a negative error code > */ > int snd_ctl_subscribe_events(snd_ctl_t *ctl, int subscribe) > -- > 2.1.0 >