All of lore.kernel.org
 help / color / mirror / Atom feed
* how to define a 2-index control element?
@ 2002-05-04 12:45 Paul Davis
  2002-05-04 13:18 ` Abramo Bagnara
  0 siblings, 1 reply; 20+ messages in thread
From: Paul Davis @ 2002-05-04 12:45 UTC (permalink / raw)
  To: alsa-devel

i'm looking at the control API, and i can't see how to define a
control that requires 2 values in order to read or write the control. 

there seems to be an assumption that a control element maps 1:1 onto a
hardware entity. i want (need) to create a control element that is
more flexible than that. the basic idea is:

         control->value.integer.value[0] = source;
         control->value.integer.value[1] = destination;
	 
	 snd_ctl_read (...)

or:

         control->value.integer.value[0] = source;
         control->value.integer.value[1] = destination;
         control->value.integer.value[3] = gain;

	 snd_ctl_write (...)

am i missing something really simple?

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net

^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <20020508000005.EB5AC59D35D@kerberos.suse.cz>]

end of thread, other threads:[~2002-05-08  9:52 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-04 12:45 how to define a 2-index control element? Paul Davis
2002-05-04 13:18 ` Abramo Bagnara
2002-05-05 13:48   ` Paul Davis
2002-05-05 15:50     ` Jaroslav Kysela
2002-05-06  1:32       ` Paul Davis
2002-05-06  6:46         ` Jaroslav Kysela
2002-05-06 11:22           ` Paul Davis
2002-05-06 11:44             ` Jaroslav Kysela
2002-05-06 12:03         ` Takashi Iwai
2002-05-06 12:19           ` Abramo Bagnara
2002-05-06 12:53             ` Takashi Iwai
2002-05-06 19:11               ` Abramo Bagnara
2002-05-07  9:29                 ` Takashi Iwai
2002-05-07  9:55                   ` Jaroslav Kysela
2002-05-07 10:34                     ` Takashi Iwai
2002-05-07 17:17                       ` Paul Davis
2002-05-07 22:06                         ` Abramo Bagnara
2002-05-08  0:00                           ` Paul Davis
     [not found] <20020508000005.EB5AC59D35D@kerberos.suse.cz>
2002-05-08  7:52 ` Jaroslav Kysela
2002-05-08  9:52   ` Takashi Iwai

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.