Commit 66c9a93b authored by Linus Torvalds's avatar Linus Torvalds

Fix up signed one-bit bitfields in core sound code

parent 6586bafd
...@@ -640,7 +640,7 @@ struct sndrv_seq_queue_info { ...@@ -640,7 +640,7 @@ struct sndrv_seq_queue_info {
* etc. if the queue is locked for other clients * etc. if the queue is locked for other clients
*/ */
int owner; /* client id for owner of the queue */ 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 */ char name[64]; /* name of this queue */
unsigned int flags; /* flags */ unsigned int flags; /* flags */
char reserved[60]; /* for future use */ char reserved[60]; /* for future use */
......
...@@ -384,7 +384,7 @@ struct _snd_pcm_substream { ...@@ -384,7 +384,7 @@ struct _snd_pcm_substream {
snd_pcm_runtime_t *runtime; snd_pcm_runtime_t *runtime;
/* -- timer section -- */ /* -- timer section -- */
snd_timer_t *timer; /* timer */ snd_timer_t *timer; /* timer */
int timer_running: 1; /* time is running */ unsigned timer_running: 1; /* time is running */
spinlock_t timer_lock; spinlock_t timer_lock;
/* -- next substream -- */ /* -- next substream -- */
snd_pcm_substream_t *next; snd_pcm_substream_t *next;
......
...@@ -39,10 +39,10 @@ struct _snd_pcm_oss_setup { ...@@ -39,10 +39,10 @@ struct _snd_pcm_oss_setup {
}; };
typedef struct _snd_pcm_oss_runtime { typedef struct _snd_pcm_oss_runtime {
int params: 1, /* format/parameter change */ unsigned params: 1, /* format/parameter change */
prepare: 1, /* need to prepare the operation */ prepare: 1, /* need to prepare the operation */
trigger: 1, /* trigger flag */ trigger: 1, /* trigger flag */
sync_trigger: 1; /* sync trigger flag */ sync_trigger: 1; /* sync trigger flag */
int rate; /* requested rate */ int rate; /* requested rate */
int format; /* requested OSS format */ int format; /* requested OSS format */
unsigned int channels; /* requested channels */ unsigned int channels; /* requested channels */
...@@ -68,7 +68,7 @@ typedef struct _snd_pcm_oss_file { ...@@ -68,7 +68,7 @@ typedef struct _snd_pcm_oss_file {
} snd_pcm_oss_file_t; } snd_pcm_oss_file_t;
typedef struct _snd_pcm_oss_substream { 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_setup_t *setup; /* active setup */
snd_pcm_oss_file_t *file; snd_pcm_oss_file_t *file;
} snd_pcm_oss_substream_t; } snd_pcm_oss_substream_t;
......
...@@ -129,8 +129,8 @@ typedef struct _snd_seq_queue queue_t; ...@@ -129,8 +129,8 @@ typedef struct _snd_seq_queue queue_t;
typedef struct { typedef struct {
void *private_data; void *private_data;
int allow_input: 1, unsigned allow_input: 1,
allow_output: 1; allow_output: 1;
/*...*/ /*...*/
} snd_seq_client_callback_t; } snd_seq_client_callback_t;
......
...@@ -418,13 +418,13 @@ struct _snd_intel8x0 { ...@@ -418,13 +418,13 @@ struct _snd_intel8x0 {
snd_pcm_t *pcm[6]; snd_pcm_t *pcm[6];
ichdev_t ichd[6]; ichdev_t ichd[6];
int multi4: 1, unsigned multi4: 1,
multi6: 1, multi6: 1,
smp20bit: 1; smp20bit: 1;
int in_ac97_init: 1, unsigned in_ac97_init: 1,
in_sdin_init: 1; in_sdin_init: 1;
int fix_nocache: 1; /* workaround for 440MX */ unsigned fix_nocache: 1; /* workaround for 440MX */
int buggy_irq: 1; /* workaround for buggy mobos */ unsigned buggy_irq: 1; /* workaround for buggy mobos */
ac97_bus_t *ac97_bus; ac97_bus_t *ac97_bus;
ac97_t *ac97[3]; ac97_t *ac97[3];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment