From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: .dimen ? Date: Tue, 20 May 2003 10:51:13 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <1053277534.1358.7.camel@Jay> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1053277534.1358.7.camel@Jay> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Giuliano Pochini Cc: alsa-devel List-Id: alsa-devel@alsa-project.org At 18 May 2003 17:05:33 +0000, Giuliano Pochini wrote: > > [1 ] > > > In struct sndrv_ctl_elem_info what is the union .dimen for ? it was introduced to describe the size of matrix controls. basically the control API accepts the linear index, so user (or alsa-lib) needs to map the multi-dimensional array to the linear index. the dimen field specifies the number of elements in each dimension. (up to 4 dimensions are supposed.) so far, no driver supports this feature yet, though... > A grep(1) > in all sources show that it's referenced only in > snd_ctl_elem_info_get_dimension() and > snd_ctl_elem_info_get_dimensions(). The latter seems quite buggy (patch > against 0.9.3 is attached). thanks, patch is applied to cvs. ciao, Takashi ------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge