Commit b4f428ee authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] #if abuse is sound/*

Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 66390192
......@@ -33,13 +33,15 @@
#include <linux/time.h>
#include <asm/byteorder.h>
#if __LITTLE_ENDIAN == 1234
#ifdef __LITTLE_ENDIAN
#define SNDRV_LITTLE_ENDIAN
#elif __BIG_ENDIAN == 4321
#else
#ifdef __BIG_ENDIAN
#define SNDRV_BIG_ENDIAN
#else
#error "Unsupported endian..."
#endif
#endif
#else /* !__KERNEL__ */
......
......@@ -674,7 +674,7 @@ static void snd_uart16550_output_write(snd_rawmidi_substream_t * substream)
break;
if (snd_rawmidi_transmit(substream, &midi_byte, 1) != 1)
break;
#if SNDRV_SERIAL_MS124W_MB_NOCOMBO
#ifdef SNDRV_SERIAL_MS124W_MB_NOCOMBO
/* select exactly one of the four ports */
addr_byte = (1 << (substream->number + 4)) | 0x08;
#else
......
......@@ -99,7 +99,7 @@ MODULE_PARM(wss,"i");
MODULE_PARM_DESC(wss,"change between ACI/WSS-mixer; use 0 and 1 - untested"
" default: do nothing; for PCM1-pro only");
#if DEBUG
#ifdef DEBUG
static void print_bits(unsigned char c)
{
int j;
......@@ -184,7 +184,7 @@ static int busy_wait(void)
static inline int aci_rawwrite(unsigned char byte)
{
if (busy_wait() >= 0) {
#if DEBUG
#ifdef DEBUG
printk(KERN_DEBUG "aci_rawwrite(%d)\n", byte);
#endif
outb(byte, COMMAND_REGISTER);
......@@ -199,7 +199,7 @@ static inline int aci_rawread(void)
if (busy_wait() >= 0) {
byte=inb(STATUS_REGISTER);
#if DEBUG
#ifdef DEBUG
printk(KERN_DEBUG "%d = aci_rawread()\n", byte);
#endif
return byte;
......
......@@ -843,7 +843,7 @@ static int snd_azf3328_playback_trigger(snd_pcm_substream_t * substream, int cmd
snd_azf3328_setdmaa(chip, runtime->dma_addr, snd_pcm_lib_period_bytes(substream), snd_pcm_lib_buffer_bytes(substream), 0);
spin_lock_irqsave(&chip->reg_lock, flags);
#if WIN9X
#ifdef WIN9X
/* FIXME: enable playback/recording??? */
status1 |= DMA_PLAY_SOMETHING1 | DMA_PLAY_SOMETHING2;
outw(status1, chip->codec_port+IDX_IO_PLAY_FLAGS);
......@@ -933,7 +933,7 @@ static int snd_azf3328_capture_trigger(snd_pcm_substream_t * substream, int cmd)
snd_azf3328_setdmaa(chip, runtime->dma_addr, snd_pcm_lib_period_bytes(substream), snd_pcm_lib_buffer_bytes(substream), 1);
spin_lock_irqsave(&chip->reg_lock, flags);
#if WIN9X
#ifdef WIN9X
/* FIXME: enable playback/recording??? */
status1 |= DMA_PLAY_SOMETHING1 | DMA_PLAY_SOMETHING2;
outw(status1, chip->codec_port+IDX_IO_REC_FLAGS);
......@@ -993,7 +993,7 @@ static snd_pcm_uframes_t snd_azf3328_playback_pointer(snd_pcm_substream_t * subs
unsigned long flags;
spin_lock_irqsave(&chip->reg_lock, flags);
#if QUERY_HARDWARE
#ifdef QUERY_HARDWARE
bufptr = inl(chip->codec_port+IDX_IO_PLAY_DMA_START_1);
#else
bufptr = substream->runtime->dma_addr;
......@@ -1016,7 +1016,7 @@ static snd_pcm_uframes_t snd_azf3328_capture_pointer(snd_pcm_substream_t * subst
unsigned long flags;
spin_lock_irqsave(&chip->reg_lock, flags);
#if QUERY_HARDWARE
#ifdef QUERY_HARDWARE
bufptr = inl(chip->codec_port+IDX_IO_REC_DMA_START_1);
#else
bufptr = substream->runtime->dma_addr;
......
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