]> git.hungrycats.org Git - linux/commitdiff
Fix up signed one-bit bitfields in core sound code
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 6 Oct 2004 02:46:49 +0000 (19:46 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 6 Oct 2004 02:46:49 +0000 (19:46 -0700)
include/sound/asequencer.h
include/sound/pcm.h
include/sound/pcm_oss.h
include/sound/seq_kernel.h
sound/pci/intel8x0.c

index 01772ddb6f092fc3d24e15f66ad03235af9b1f93..728efd504262a427affbbb6479ea26ad3ab93afe 100644 (file)
@@ -640,7 +640,7 @@ struct sndrv_seq_queue_info {
         *  etc. if the queue is locked for other clients
         */
        int owner;              /* client id for owner of the queue */
-       int locked:1;           /* timing queue locked for other queues */
+       unsigned locked:1;      /* timing queue locked for other queues */
        char name[64];          /* name of this queue */
        unsigned int flags;     /* flags */
        char reserved[60];      /* for future use */
index bb7b0c20f35e70bbef4e76cecc8294e082af9532..c780e101383adc6eef3464e52252bc0945bdbcdd 100644 (file)
@@ -384,7 +384,7 @@ struct _snd_pcm_substream {
        snd_pcm_runtime_t *runtime;
         /* -- timer section -- */
        snd_timer_t *timer;             /* timer */
-       int timer_running: 1;           /* time is running */
+       unsigned timer_running: 1;      /* time is running */
        spinlock_t timer_lock;
        /* -- next substream -- */
        snd_pcm_substream_t *next;
index 096d975de7b99b0a02f37c92ed5d799b96c84b94..518728536bc6e644c8935288a929ae89f0ae2052 100644 (file)
@@ -39,10 +39,10 @@ struct _snd_pcm_oss_setup {
 };
 
 typedef struct _snd_pcm_oss_runtime {
-       int params: 1,                          /* format/parameter change */
-            prepare: 1,                                /* need to prepare the operation */
-            trigger: 1,                                /* trigger flag */
-            sync_trigger: 1;                   /* sync trigger flag */
+       unsigned params: 1,                     /* format/parameter change */
+                prepare: 1,                    /* need to prepare the operation */
+                trigger: 1,                    /* trigger flag */
+                sync_trigger: 1;               /* sync trigger flag */
        int rate;                               /* requested rate */
        int format;                             /* requested OSS format */
        unsigned int channels;                  /* requested channels */
@@ -68,7 +68,7 @@ typedef struct _snd_pcm_oss_file {
 } snd_pcm_oss_file_t;
 
 typedef struct _snd_pcm_oss_substream {
-       int oss: 1;                             /* oss mode */
+       unsigned oss: 1;                        /* oss mode */
        snd_pcm_oss_setup_t *setup;             /* active setup */
        snd_pcm_oss_file_t *file;
 } snd_pcm_oss_substream_t;
index 5af1f35b04fefd20a2d1a3fa27cd51dc0da97836..a64fb3f9492e023052057fde4b3d61de5cefe7b1 100644 (file)
@@ -129,8 +129,8 @@ typedef struct _snd_seq_queue queue_t;
 
 typedef struct {
        void *private_data;
-       int allow_input: 1,
-           allow_output: 1;
+       unsigned allow_input: 1,
+                allow_output: 1;
        /*...*/
 } snd_seq_client_callback_t;
 
index 5e799908452653fec3f2d4075dc4242c47cb8435..0fa7e8a033b038b3f9b50f42d43cc54c02e27c85 100644 (file)
@@ -418,13 +418,13 @@ struct _snd_intel8x0 {
        snd_pcm_t *pcm[6];
        ichdev_t ichd[6];
 
-       int multi4: 1,
-           multi6: 1,
-           smp20bit: 1;
-       int in_ac97_init: 1,
-           in_sdin_init: 1;
-       int fix_nocache: 1; /* workaround for 440MX */
-       int buggy_irq: 1; /* workaround for buggy mobos */
+       unsigned multi4: 1,
+                multi6: 1,
+                smp20bit: 1;
+       unsigned in_ac97_init: 1,
+                in_sdin_init: 1;
+       unsigned fix_nocache: 1; /* workaround for 440MX */
+       unsigned buggy_irq: 1; /* workaround for buggy mobos */
 
        ac97_bus_t *ac97_bus;
        ac97_t *ac97[3];