* About the matrix control...
@ 2003-04-06 22:35 Giuliano Pochini
2003-04-08 15:47 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Giuliano Pochini @ 2003-04-06 22:35 UTC (permalink / raw)
To: alsa-devel
About the matrix control, what did you decide ?
Bye.
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: About the matrix control...
2003-04-06 22:35 About the matrix control Giuliano Pochini
@ 2003-04-08 15:47 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2003-04-08 15:47 UTC (permalink / raw)
To: Giuliano Pochini; +Cc: alsa-devel
At 06 Apr 2003 22:35:56 +0000,
Giuliano Pochini wrote:
>
>
> About the matrix control, what did you decide ?
it's accessed via normal control API.
you can create "duplicated" entries by specifying the count field for
snd_kcontrol_new_t. for each duplicated entry, only the volatile part
is created uniquely, which is accessed via ctl->vd[index].
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: About the matrix control...
@ 2003-04-10 21:30 Giuliano Pochini
2003-04-10 19:42 ` Jaroslav Kysela
0 siblings, 1 reply; 4+ messages in thread
From: Giuliano Pochini @ 2003-04-10 21:30 UTC (permalink / raw)
To: tiwai; +Cc: alsa-devel
>> About the matrix control, what did you decide ?
> it's accessed via normal control API.
> you can create "duplicated" entries by specifying the count field for
> snd_kcontrol_new_t. for each duplicated entry, only the volatile part
> is created uniquely, which is accessed via ctl->vd[index].
I can't think of any use of ->vd... Inside callbacks do I get the
control number by kcontrol->index ? Ok, but why ? It was much simpler
to make struct sndrv_ctl_elem_value.value.integer.value[] larger or put
data in .value_ptr-> . What am I missing ?
Bye.
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: About the matrix control...
2003-04-10 21:30 Giuliano Pochini
@ 2003-04-10 19:42 ` Jaroslav Kysela
0 siblings, 0 replies; 4+ messages in thread
From: Jaroslav Kysela @ 2003-04-10 19:42 UTC (permalink / raw)
To: Giuliano Pochini; +Cc: tiwai@suse.de, alsa-devel
On 10 Apr 2003, Giuliano Pochini wrote:
>
> >> About the matrix control, what did you decide ?
> > it's accessed via normal control API.
> > you can create "duplicated" entries by specifying the count field for
> > snd_kcontrol_new_t. for each duplicated entry, only the volatile part
> > is created uniquely, which is accessed via ctl->vd[index].
>
> I can't think of any use of ->vd... Inside callbacks do I get the
> control number by kcontrol->index ? Ok, but why ? It was much simpler
> to make struct sndrv_ctl_elem_value.value.integer.value[] larger or put
> data in .value_ptr-> . What am I missing ?
Please, reread the thread. It's better to lock only one element than
whole row (one dimension) in the matrix. Imagine applications sharing only
a part of matrix.
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-04-10 21:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-06 22:35 About the matrix control Giuliano Pochini
2003-04-08 15:47 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2003-04-10 21:30 Giuliano Pochini
2003-04-10 19:42 ` Jaroslav Kysela
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.