From 66c9a93be49c22494559460fb25b35dae2a2bb9e Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 5 Oct 2004 19:46:49 -0700 Subject: [PATCH] Fix up signed one-bit bitfields in core sound code --- include/sound/asequencer.h | 2 +- include/sound/pcm.h | 2 +- include/sound/pcm_oss.h | 10 +++++----- include/sound/seq_kernel.h | 4 ++-- sound/pci/intel8x0.c | 14 +++++++------- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/include/sound/asequencer.h b/include/sound/asequencer.h index 01772ddb6f092..728efd504262a 100644 --- a/include/sound/asequencer.h +++ b/include/sound/asequencer.h @@ -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 */ diff --git a/include/sound/pcm.h b/include/sound/pcm.h index bb7b0c20f35e7..c780e101383ad 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -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; diff --git a/include/sound/pcm_oss.h b/include/sound/pcm_oss.h index 096d975de7b99..518728536bc6e 100644 --- a/include/sound/pcm_oss.h +++ b/include/sound/pcm_oss.h @@ -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; diff --git a/include/sound/seq_kernel.h b/include/sound/seq_kernel.h index 5af1f35b04fef..a64fb3f9492e0 100644 --- a/include/sound/seq_kernel.h +++ b/include/sound/seq_kernel.h @@ -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; diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index 5e79990845265..0fa7e8a033b03 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c @@ -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]; -- 2.53.0