From: Aldrin Martoq <amartoq@dcc.uchile.cl>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] SND_SEQ_BLOCK and SND_SEQ_PORT_CAP_NONE defines
Date: Tue, 05 Feb 2008 02:55:45 -0300 [thread overview]
Message-ID: <1202190945.6081.6.camel@localhost> (raw)
In-Reply-To: <s5h63x83l7w.wl%tiwai@suse.de>
On Fri, 2008-02-01 at 13:38 +0100, Takashi Iwai wrote:
> At Thu, 31 Jan 2008 14:42:42 -0300,
> Aldrin Martoq wrote:
> > Hey hackers,
> > While developing pyalsa sequencer API, I found that sometimes 0 is
> > used instead of a #defined value or constant.
> > In my opinion, given that the alsa API is opaque (hides internal
> > structure and provides methods for accessing them), we should define
> > those missing "constants" for being consistent. So far I found:
> > SND_SEQ_BLOCK 0 (blocking mode)
> > SND_SEQ_PORT_CAP_NONE (the port defines no access capabilites)
> Well, I myself don't mind to add such defintions, but remember that
> these flags are no enum but bits. When you see BLOCK and NONBLOCK
> definitions, you'll likely think these are exclusive. However,
> (BLOCK|NONBLOCK) or (NONE|READ) can be passed without problems.
I'm sorry, you are right and I was absolutely wrong. I thought mode is
something like an enumeration rather than a flag (I think still there is
a problem, for example there is no "change mode" api function, instead
there is a snd_seq_nonblock function ?!); the port cap type was clearly
a mistake.
I will correct this in the python version (remove this non-meaning
constants) and please forget my patch. Thanks,
--
Aldrin Martoq <amartoq@dcc.uchile.cl>
next prev parent reply other threads:[~2008-02-05 5:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-31 17:42 [PATCH] SND_SEQ_BLOCK and SND_SEQ_PORT_CAP_NONE defines Aldrin Martoq
2008-02-01 12:38 ` Takashi Iwai
2008-02-05 5:55 ` Aldrin Martoq [this message]
2008-02-06 9:51 ` Jaroslav Kysela
2008-02-07 22:19 ` Aldrin Martoq
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1202190945.6081.6.camel@localhost \
--to=amartoq@dcc.uchile.cl \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.