Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b4f428ee
Commit
b4f428ee
authored
Jul 26, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jul 26, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] #if abuse is sound/*
Signed-off-by:
Linus Torvalds
<
torvalds@osdl.org
>
parent
66390192
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
include/sound/asound.h
include/sound/asound.h
+4
-2
sound/drivers/serial-u16550.c
sound/drivers/serial-u16550.c
+1
-1
sound/oss/aci.c
sound/oss/aci.c
+3
-3
sound/pci/azt3328.c
sound/pci/azt3328.c
+4
-4
No files found.
include/sound/asound.h
View file @
b4f428ee
...
...
@@ -33,13 +33,15 @@
#include <linux/time.h>
#include <asm/byteorder.h>
#if
__LITTLE_ENDIAN == 1234
#if
def __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__ */
...
...
sound/drivers/serial-u16550.c
View file @
b4f428ee
...
...
@@ -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
#if
def
SNDRV_SERIAL_MS124W_MB_NOCOMBO
/* select exactly one of the four ports */
addr_byte
=
(
1
<<
(
substream
->
number
+
4
))
|
0x08
;
#else
...
...
sound/oss/aci.c
View file @
b4f428ee
...
...
@@ -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
#if
def
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
#if
def
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
#if
def
DEBUG
printk
(
KERN_DEBUG
"%d = aci_rawread()
\n
"
,
byte
);
#endif
return
byte
;
...
...
sound/pci/azt3328.c
View file @
b4f428ee
...
...
@@ -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
#if
def
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
#if
def
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
#if
def
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
#if
def
QUERY_HARDWARE
bufptr
=
inl
(
chip
->
codec_port
+
IDX_IO_REC_DMA_START_1
);
#else
bufptr
=
substream
->
runtime
->
dma_addr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment