X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sound%2Fcore%2Fpcm_misc.c;h=422b8db141547fe07b1c69b817ad7de79a651a3b;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=794372b6df66f0279aadf85b27b4be9f880dc8c2;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/sound/core/pcm_misc.c b/sound/core/pcm_misc.c index 794372b6d..422b8db14 100644 --- a/sound/core/pcm_misc.c +++ b/sound/core/pcm_misc.c @@ -25,11 +25,14 @@ #include #define SND_PCM_FORMAT_UNKNOWN (-1) +/* NOTE: "signed" prefix must be given below since the default char is + * unsigned on some architectures! + */ struct pcm_format_data { - char width; /* bit width */ - char phys; /* physical bit width */ - char le; /* 0 = big-endian, 1 = little-endian, -1 = others */ - char signd; /* 0 = unsigned, 1 = signed, -1 = others */ + unsigned char width; /* bit width */ + unsigned char phys; /* physical bit width */ + signed char le; /* 0 = big-endian, 1 = little-endian, -1 = others */ + signed char signd; /* 0 = unsigned, 1 = signed, -1 = others */ unsigned char silence[8]; /* silence data to fill */ };