Skip to contentSkip to conversation

.dimen order ?

DISCUSSION Giuliano Pochini 2 participants 4 messages Nov 24, 2003 – Nov 26, 2003

lore
Share & tools
lore
#0 lore raw

snd_ctl_elem_info_t.dimen contains the dimensions of the array of controls. AFAIK there are no drivers which use that feature (but mine) to look for examples. We have to agree about the order of them:

Array[d0][d1][d2][d3]

or

Array[d3][d2][d1][d0]

I used the first one. Is it ok ?

--
Giuliano.

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/

#1 lore raw
Quoted 11 lines · Giuliano Pochini

snd_ctl_elem_info_t.dimen contains the dimensions of the array of controls. AFAIK there are no drivers which use that feature (but mine) to look for examples. We have to agree about the order of them:

Array[d0][d1][d2][d3]

or

Array[d3][d2][d1][d0]

I used the first one. Is it ok ?

It doesn't matter. We need to define the meaning of dimensions at a higher level anyway.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/

#2 lore raw
Quoted 8 lines · On Mon, 24 Nov 2003 21:25:00 +0100 (CET) Jaroslav Kysela <[email protected]> wrote:
Quoted 6 lines · Giuliano Pochini

snd_ctl_elem_info_t.dimen contains the dimensions of the array of controls. AFAIK there are no drivers which use that feature (but mine) to look for examples. We have to agree about the order of them:

Array[d0][d1][d2][d3]

Quoted 8 lines
Quoted 5 lines

or

Array[d3][d2][d1][d0]

I used the first one. Is it ok ?

It doesn't matter. We need to define the meaning of dimensions at a higher level anyway.

Yes, of course, it's just what I was asking for. Since AFAIK I'm the first one that use that feature, I announced my choice. But if you think it's wrong for any reason please tell me now. If it's ok, other people may take this mail for reference until someone writes the documentation.

--
Giuliano.

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/

#3 lore raw
Quoted 17 lines · Giuliano Pochini
Quoted 14 lines · On Mon, 24 Nov 2003 21:25:00 +0100 (CET) Jaroslav Kysela <[email protected]> wrote:
Quoted 11 lines · Giuliano Pochini

snd_ctl_elem_info_t.dimen contains the dimensions of the array of controls. AFAIK there are no drivers which use that feature (but mine) to look for examples. We have to agree about the order of them:

Array[d0][d1][d2][d3]

or

Array[d3][d2][d1][d0]

I used the first one. Is it ok ?

Quoted 7 lines
Quoted 2 lines

It doesn't matter. We need to define the meaning of dimensions at a higher level anyway.

Yes, of course, it's just what I was asking for. Since AFAIK I'm the first one that use that feature, I announced my choice. But if you think it's wrong for any reason please tell me now. If it's ok, other people may take this mail for reference until someone writes the documentation.

No objections so far.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/