About the matrix control...
Quoted 11 lines · Giuliano Pochini
Quoted 6 lines
Quoted 2 lines
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 forsnd_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 <[email protected]>
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
Quoted 6 lines
Quoted 2 lines
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 forsnd_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