Commit 7c3f7e28 authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] [SPARSE] Use unsigned int :1 bitfields

EMU10K1/EMU10K2 driver,GUS Library,ALSA<-OSS emulation,Trident driver
YMFPCI driver,CMIPCI driver,Intel8x0-modem driver,Maestro3 driver
ALI5451 driver,ICE1712 driver
Use unsigned int :1 bitfields.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 0c7ba7bc
......@@ -849,7 +849,7 @@ typedef enum {
struct _snd_emu10k1_voice {
emu10k1_t *emu;
int number;
int use: 1,
unsigned int use: 1,
pcm: 1,
efx: 1,
synth: 1,
......@@ -999,7 +999,7 @@ struct _snd_emu10k1 {
int irq;
unsigned long port; /* I/O port number */
int APS: 1, /* APS flag */
unsigned int APS: 1, /* APS flag */
no_ac97: 1, /* no AC'97 */
tos_link: 1, /* tos link detected */
rear_ac97: 1, /* rear channels are on AC'97 */
......
......@@ -230,7 +230,7 @@ typedef struct {
int mode; /* operation mode */
int client; /* sequencer client number */
int port; /* sequencer port number */
int midi_has_voices: 1;
unsigned int midi_has_voices: 1;
} snd_gus_port_t;
typedef struct _snd_gus_voice snd_gus_voice_t;
......@@ -264,7 +264,7 @@ typedef enum {
struct _snd_gus_voice {
int number;
int use: 1,
unsigned int use: 1,
pcm: 1,
synth:1,
midi: 1;
......
......@@ -38,7 +38,7 @@ typedef int (*snd_mixer_oss_put_recsrce_t)(snd_mixer_oss_file_t *fmixer, unsigne
struct _snd_oss_mixer_slot {
int number;
int stereo: 1;
unsigned int stereo: 1;
snd_mixer_oss_get_volume_t get_volume;
snd_mixer_oss_put_volume_t put_volume;
snd_mixer_oss_get_recsrc_t get_recsrc;
......
......@@ -290,7 +290,7 @@ typedef struct {
int mode; /* operation mode */
int client; /* sequencer client number */
int port; /* sequencer port number */
int midi_has_voices: 1;
unsigned int midi_has_voices: 1;
} snd_trident_port_t;
typedef struct snd_trident_memblk_arg {
......@@ -308,7 +308,7 @@ typedef struct {
struct _snd_trident_voice {
unsigned int number;
int use: 1,
unsigned int use: 1,
pcm: 1,
synth:1,
midi: 1;
......@@ -347,7 +347,7 @@ struct _snd_trident_voice {
trident_t *trident;
snd_pcm_substream_t *substream;
snd_trident_voice_t *extra; /* extra PCM voice (acts as interrupt generator) */
int running: 1,
unsigned int running: 1,
capture: 1,
spdif: 1,
foldback: 1,
......
......@@ -262,7 +262,7 @@ typedef enum {
struct _snd_ymfpci_voice {
ymfpci_t *chip;
int number;
int use: 1,
unsigned int use: 1,
pcm: 1,
synth: 1,
midi: 1;
......@@ -288,9 +288,9 @@ struct _snd_ymfpci_pcm {
snd_ymfpci_pcm_type_t type;
snd_pcm_substream_t *substream;
ymfpci_voice_t *voices[2]; /* playback only */
int running: 1;
int output_front: 1;
int output_rear: 1;
unsigned int running: 1;
unsigned int output_front: 1;
unsigned int output_rear: 1;
u32 period_size; /* cached from runtime->period_size */
u32 buffer_size; /* cached from runtime->buffer_size */
u32 period_pos;
......
......@@ -188,7 +188,7 @@ typedef struct snd_ali_channel_control {
struct snd_ali_stru_voice {
unsigned int number;
int use: 1,
unsigned int use: 1,
pcm: 1,
midi: 1,
mode: 1,
......@@ -199,7 +199,7 @@ struct snd_ali_stru_voice {
snd_pcm_substream_t *substream;
snd_ali_voice_t *extra;
int running: 1;
unsigned int running: 1;
int eso; /* final ESO value for channel */
int count; /* runtime->period_size */
......
......@@ -458,7 +458,7 @@ struct snd_stru_cmipci {
int opened[2]; /* open mode */
struct semaphore open_mutex;
int mixer_insensitive: 1;
unsigned int mixer_insensitive: 1;
snd_kcontrol_t *mixer_res_ctl[CM_SAVED_MIXERS];
int mixer_res_status[CM_SAVED_MIXERS];
......@@ -2108,8 +2108,8 @@ typedef struct snd_cmipci_switch_args {
int reg; /* register index */
unsigned int mask; /* mask bits */
unsigned int mask_on; /* mask bits to turn on */
int is_byte: 1; /* byte access? */
int ac3_sensitive: 1; /* access forbidden during non-audio operation? */
unsigned int is_byte: 1; /* byte access? */
unsigned int ac3_sensitive: 1; /* access forbidden during non-audio operation? */
} snd_cmipci_switch_args_t;
static int snd_cmipci_uswitch_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo)
......
......@@ -484,7 +484,7 @@ struct snd_ice1712_card_info {
char *driver;
int (*chip_init)(ice1712_t *);
int (*build_controls)(ice1712_t *);
int no_mpu401: 1;
unsigned int no_mpu401: 1;
unsigned int eeprom_size;
unsigned char *eeprom_data;
};
......
......@@ -247,7 +247,7 @@ struct _snd_intel8x0m {
snd_pcm_t *pcm[2];
ichdev_t ichd[2];
int in_ac97_init: 1;
unsigned int in_ac97_init: 1;
ac97_bus_t *ac97_bus;
ac97_t *ac97;
......
......@@ -820,7 +820,7 @@ struct snd_m3 {
unsigned long iobase;
int irq;
int allegro_flag : 1;
unsigned int allegro_flag : 1;
ac97_t *ac97;
......
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