From: Giuliano Pochini <pochini@shiny.it>
To: alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: .dimen ?
Date: 18 May 2003 17:05:33 +0000 [thread overview]
Message-ID: <1053277534.1358.7.camel@Jay> (raw)
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
In struct sndrv_ctl_elem_info what is the union .dimen for ? 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).
Bye.
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 570 bytes --]
--- ./src/control/control.c.old Sun May 18 16:53:36 2003
+++ ./src/control/control.c Sun May 18 16:55:59 2003
@@ -1699,10 +1699,10 @@
assert(obj);
if (obj->access & SNDRV_CTL_ELEM_ACCESS_DINDIRECT)
return 0; /* FIXME: implement indirect access as well */
- for (i = 3; i >= 0; i++)
- if (obj->dimen.d[0])
- break;
- return i >= 0 ? i + 1 : 0;
+ for (i = 3; i >= 0; i--)
+ if (obj->dimen.d[i])
+ return(i+1);
+ return 0;
}
use_default_symbol_version(__snd_ctl_elem_info_get_dimensions, snd_ctl_elem_info_get_dimensions, ALSA_0.9.3);
next reply other threads:[~2003-05-18 17:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-18 17:05 Giuliano Pochini [this message]
2003-05-20 8:51 ` .dimen ? Takashi Iwai
2003-05-20 9:58 ` Giuliano Pochini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1053277534.1358.7.camel@Jay \
--to=pochini@shiny.it \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.