518 |
int sign, width, endian; |
int sign, width, endian; |
519 |
sign = !snd_pcm_format_signed(format); |
sign = !snd_pcm_format_signed(format); |
520 |
width = snd_pcm_format_width(format) / 8 - 1; |
width = snd_pcm_format_width(format) / 8 - 1; |
521 |
|
if (width < 0 || width > 3) { |
522 |
|
snd_printk(KERN_ERR "snd-pcm-oss: invalid format %d\n", format); |
523 |
|
width = 0; |
524 |
|
} |
525 |
#ifdef SNDRV_LITTLE_ENDIAN |
#ifdef SNDRV_LITTLE_ENDIAN |
526 |
endian = snd_pcm_format_big_endian(format); |
endian = snd_pcm_format_big_endian(format); |
527 |
#else |
#else |