Fix broken binary issues with latest gcc 4.x due to bitfield signess

mishaps for emu10k1 [1] and few other places.

Reported/Submitted/Tested by:	Ed Schouten <ed@fxq.nl> [1]
This commit is contained in:
ariff 2007-05-27 20:12:51 +00:00
parent 885b989283
commit 4538e39c22
4 changed files with 6 additions and 4 deletions

View File

@ -97,7 +97,8 @@ struct ess_info {
bus_dma_tag_t parent_dmat;
unsigned int bufsize;
int type, duplex:1, newspeed:1;
int type;
unsigned int duplex:1, newspeed:1;
u_long bd_flags; /* board-specific flags */
struct ess_chinfo pch, rch;
};

View File

@ -87,7 +87,7 @@ struct emu_mem {
struct emu_voice {
int vnum;
int b16:1, stereo:1, busy:1, running:1, ismaster:1;
unsigned int b16:1, stereo:1, busy:1, running:1, ismaster:1;
int speed;
int start, end, vol;
int fxrt1; /* FX routing */

View File

@ -92,7 +92,8 @@ struct ess_info {
void *ih;
bus_dma_tag_t parent_dmat;
int simplex_dir, type, duplex:1, newspeed:1, dmasz[2];
int simplex_dir, type, dmasz[2];
unsigned int duplex:1, newspeed:1;
unsigned int bufsz;
struct ess_chinfo pch, rch;

View File

@ -37,7 +37,7 @@ SND_DECLARE_FILE("$FreeBSD$");
MALLOC_DEFINE(M_AC97, "ac97", "ac97 codec");
struct ac97mixtable_entry {
int reg:8; /* register index */
unsigned reg:8; /* register index */
/* reg < 0 if inverted polarity */
unsigned bits:4; /* width of control field */
unsigned ofs:4; /* offset (only if stereo=0) */