Update of /cvsroot/alsa/alsa-lib/include/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv20736/include/sound

Modified Files:
        asound.h 
Log Message:
Added snd_ctl_elem_info_get_dimensions() and snd_ctl_elem_info_get_dimension() 
functions.


Index: asound.h
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/include/sound/asound.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- asound.h    2 Mar 2003 19:28:48 -0000       1.5
+++ asound.h    1 Apr 2003 13:58:11 -0000       1.6
@@ -574,7 +574,7 @@
        int card;                       /* card number */
        unsigned char id[64];           /* timer identification */
        unsigned char name[80];         /* timer name */
-       unsigned long ticks;            /* maximum ticks between interrupts */
+       unsigned long reserved0;        /* reserved for future use */
        unsigned long resolution;       /* average period resolution in ns */
        unsigned long resolution_min;   /* minimal period resolution in ns */
        unsigned long resolution_max;   /* maximal period resolution in ns */
@@ -584,9 +584,8 @@
 
 struct sndrv_timer_gparams {
        struct sndrv_timer_id tid;      /* requested timer ID */
-       unsigned long period;           /* requested minimal period in ns */
-       unsigned long period_num;       /* requested precise period resolution (in 
seconds) - numerator */
-       unsigned long period_den;       /* requested precise period resolution (in 
seconds) - denominator */
+       unsigned long period_num;       /* requested precise period duration (in 
seconds) - numerator */
+       unsigned long period_den;       /* requested precise period duration (in 
seconds) - denominator */
        unsigned char reserved[32];
 };
 
@@ -608,7 +607,7 @@
        int card;                       /* card number */
        unsigned char id[64];           /* timer identificator */
        unsigned char name[80];         /* timer name */
-       unsigned long ticks;            /* maximum ticks between interrupts */
+       unsigned long reserved0;        /* reserved for future use */
        unsigned long resolution;       /* average period resolution in ns */
        unsigned char reserved[64];     /* reserved */
 };
@@ -682,7 +681,7 @@
  *                                                                          *
  ****************************************************************************/
 
-#define SNDRV_CTL_VERSION              SNDRV_PROTOCOL_VERSION(2, 0, 1)
+#define SNDRV_CTL_VERSION              SNDRV_PROTOCOL_VERSION(2, 0, 2)
 
 struct sndrv_ctl_card_info {
        int card;                       /* card number */
@@ -727,7 +726,8 @@
 #define SNDRV_CTL_ELEM_ACCESS_INACTIVE         (1<<8)  /* control does actually 
nothing, but may be updated */
 #define SNDRV_CTL_ELEM_ACCESS_LOCK             (1<<9)  /* write lock */
 #define SNDRV_CTL_ELEM_ACCESS_OWNER            (1<<10) /* write lock owner */
-#define SNDRV_CTL_ELEM_ACCESS_INDIRECT         (1<<31) /* indirect access */
+#define SNDRV_CTL_ELEM_ACCESS_DINDIRECT                (1<<30) /* indirect access for 
matrix dimensions in the info structure */
+#define SNDRV_CTL_ELEM_ACCESS_INDIRECT         (1<<31) /* indirect access for element 
value in the value structure */
 
 /* for further details see the ACPI and PCI power management specification */
 #define SNDRV_CTL_POWER_D0             0x0000  /* full On */
@@ -779,7 +779,11 @@
                } enumerated;
                unsigned char reserved[128];
        } value;
-       unsigned char reserved[64];
+       union {
+               unsigned short d[4];            /* dimensions */
+               unsigned short *d_ptr;          /* indirect */
+       } dimen;
+       unsigned char reserved[64-4*sizeof(unsigned short)];
 };
 
 struct sndrv_ctl_elem_value {



-------------------------------------------------------
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/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to