From: "Ronald S. Bultje" <rbultje@ronald.bitfreak.net>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: why do elements disappear?
Date: Thu, 03 Mar 2005 09:57:45 +0100 [thread overview]
Message-ID: <1109840265.2840.45.camel@tux.lan> (raw)
In-Reply-To: <s5hll9obxar.wl@alsa2.suse.de>
Hi Takashi,
I tried playing with what you said but must have misunderstood.
On Wed, 2005-02-16 at 11:42, Takashi Iwai wrote:
> At Tue, 15 Feb 2005 22:12:53 +0100,
> Ronald S. Bultje wrote:
> > It appears that alsa removes the EMU10K1 PCM elements when I call
> > snd_mixer_handle_events(). Why does it do that, how do I make it stop
> > doing it and/or how do I handle this?
>
> EMU10K1 PCM control is dynamically added/removed when the
> corresponding PCM is opened/closed (more precisely, INACTIVE flag is
> removed/added at each open/close).
>
> If the app is programmed in a passive manner, it will receive the ADD
> and REMOVE events when new controls are created/deleted. Then the app
> has to take the corresponding action.
I'm probably hitting a wall here, because I cannot really find any
sample code (google) or API docs (alsa website) on this. I tried setting
a snd_mixer_set_callback() [that's the right function, right?], and I
get a bunch of 'event number 4' when I start the mixer (did I mention
that the masks are undocumented? :) ). But nothing more. And a crash at
the end, still. What other function should I use to listen for
removed/added elements? Is there working sample code?
Honestly, at this point, I don't mind a quick hack (to do the right
thing later) if there is one and it's simpler.
Thanks,
Ronald
--
Ronald S. Bultje <rbultje@ronald.bitfreak.net>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
next prev parent reply other threads:[~2005-03-03 8:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-15 21:12 why do elements disappear? Ronald S. Bultje
2005-02-16 10:42 ` Takashi Iwai
[not found] ` <m2r7jgpvw9.fsf@vador.mandrakesoft.com>
2005-02-16 11:52 ` Takashi Iwai
2005-02-16 12:14 ` Thierry Vignaud
2005-02-16 12:12 ` Takashi Iwai
2005-02-16 12:31 ` Thierry Vignaud
2005-03-03 8:57 ` Ronald S. Bultje [this message]
2005-03-03 9:17 ` Jaroslav Kysela
2005-03-03 12:25 ` Ronald S. Bultje
2005-03-04 9:15 ` Giuliano Pochini
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=1109840265.2840.45.camel@tux.lan \
--to=rbultje@ronald.bitfreak.net \
--cc=alsa-devel@lists.sourceforge.net \
--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.