All of lore.kernel.org
 help / color / mirror / Atom feed
* distinguish events based on input ports
@ 2009-07-19 21:50 Lieven Moors
  2009-07-21 13:36 ` Clemens Ladisch
  0 siblings, 1 reply; 3+ messages in thread
From: Lieven Moors @ 2009-07-19 21:50 UTC (permalink / raw)
  To: alsa-devel


Hi everybody,

I've just started writing my first little program with alsa,
and I had a question regarding the use of input(read) ports.
What I want to do is distinguish events based on the input port
they came through. Since the destination of the event is mostly
set to 'broadcast', I cannot extract this information from the event
itself. I would like to know if there is another way to do this, or if
it is simply impossible.

Thanks for your help,

Greetings,

Lieven

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: distinguish events based on input ports
  2009-07-19 21:50 distinguish events based on input ports Lieven Moors
@ 2009-07-21 13:36 ` Clemens Ladisch
  0 siblings, 0 replies; 3+ messages in thread
From: Clemens Ladisch @ 2009-07-21 13:36 UTC (permalink / raw)
  To: Lieven Moors; +Cc: alsa-devel

Lieven Moors wrote:
> I had a question regarding the use of input(read) ports.
> What I want to do is distinguish events based on the input port
> they came through. Since the destination of the event is mostly
> set to 'broadcast', I cannot extract this information from the event
> itself.

Yes you can; when delivering broadcast or to-all-subscribers events,
ALSA sets the event's destination field to the actual destination.


HTH
Clemens

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: distinguish events based on input ports
@ 2009-07-22 15:56 Lieven Moors
  0 siblings, 0 replies; 3+ messages in thread
From: Lieven Moors @ 2009-07-22 15:56 UTC (permalink / raw)
  To: alsa-devel


Clemens Ladisch wrote:
> Lieven Moors wrote:
>   
>> I had a question regarding the use of input(read) ports.
>> What I want to do is distinguish events based on the input port
>> they came through. Since the destination of the event is mostly
>> set to 'broadcast', I cannot extract this information from the event
>> itself.
>>     
>
> Yes you can; when delivering broadcast or to-all-subscribers events,
> ALSA sets the event's destination field to the actual destination.
>
>
> HTH
> Clemens
>
>   
Thanks for confirming that. it was my own silly mistake, because i had
used snd_seq_ev_set_subs before trying to filter...

Sorry for that...

greets,

Lieven

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-22 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-19 21:50 distinguish events based on input ports Lieven Moors
2009-07-21 13:36 ` Clemens Ladisch
  -- strict thread matches above, loose matches on Subject: below --
2009-07-22 15:56 Lieven Moors

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.