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
nexedi
linux
Commits
8bc47ee1
Commit
8bc47ee1
authored
Apr 07, 2003
by
Alan Cox
Committed by
Linus Torvalds
Apr 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] lots more version and C99 for audio
parent
5520402f
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
304 additions
and
314 deletions
+304
-314
sound/oss/cs4281/cs4281m.c
sound/oss/cs4281/cs4281m.c
+0
-1
sound/oss/cs46xx.c
sound/oss/cs46xx.c
+0
-1
sound/oss/dmasound/dmasound_atari.c
sound/oss/dmasound/dmasound_atari.c
+83
-83
sound/oss/dmasound/dmasound_awacs.c
sound/oss/dmasound/dmasound_awacs.c
+31
-31
sound/oss/dmasound/dmasound_core.c
sound/oss/dmasound/dmasound_core.c
+18
-18
sound/oss/dmasound/dmasound_paula.c
sound/oss/dmasound/dmasound_paula.c
+38
-38
sound/oss/dmasound/dmasound_q40.c
sound/oss/dmasound/dmasound_q40.c
+25
-25
sound/oss/emu10k1/audio.c
sound/oss/emu10k1/audio.c
+10
-11
sound/oss/emu10k1/main.c
sound/oss/emu10k1/main.c
+4
-5
sound/oss/emu10k1/midi.c
sound/oss/emu10k1/midi.c
+6
-7
sound/oss/emu10k1/mixer.c
sound/oss/emu10k1/mixer.c
+5
-6
sound/oss/emu10k1/passthrough.c
sound/oss/emu10k1/passthrough.c
+0
-1
sound/oss/es1370.c
sound/oss/es1370.c
+29
-30
sound/oss/es1371.c
sound/oss/es1371.c
+29
-30
sound/oss/esssolo1.c
sound/oss/esssolo1.c
+26
-27
No files found.
sound/oss/cs4281/cs4281m.c
View file @
8bc47ee1
...
@@ -58,7 +58,6 @@
...
@@ -58,7 +58,6 @@
//#define NOT_CS4281_PM 1
//#define NOT_CS4281_PM 1
#include <linux/list.h>
#include <linux/list.h>
#include <linux/version.h>
#include <linux/module.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/string.h>
#include <linux/ioport.h>
#include <linux/ioport.h>
...
...
sound/oss/cs46xx.c
View file @
8bc47ee1
...
@@ -77,7 +77,6 @@
...
@@ -77,7 +77,6 @@
#include <linux/interrupt.h>
#include <linux/interrupt.h>
#include <linux/list.h>
#include <linux/list.h>
#include <linux/version.h>
#include <linux/module.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/string.h>
#include <linux/ioport.h>
#include <linux/ioport.h>
...
...
sound/oss/dmasound/dmasound_atari.c
View file @
8bc47ee1
...
@@ -767,39 +767,39 @@ static ssize_t ata_ctx_u16le(const u_char *userPtr, size_t userCount,
...
@@ -767,39 +767,39 @@ static ssize_t ata_ctx_u16le(const u_char *userPtr, size_t userCount,
static
TRANS
transTTNormal
=
{
static
TRANS
transTTNormal
=
{
ct_ulaw:
ata_ct_law
,
.
ct_ulaw
=
ata_ct_law
,
ct_alaw:
ata_ct_law
,
.
ct_alaw
=
ata_ct_law
,
ct_s8:
ata_ct_s8
,
.
ct_s8
=
ata_ct_s8
,
ct_u8:
ata_ct_u8
,
.
ct_u8
=
ata_ct_u8
,
};
};
static
TRANS
transTTExpanding
=
{
static
TRANS
transTTExpanding
=
{
ct_ulaw:
ata_ctx_law
,
.
ct_ulaw
=
ata_ctx_law
,
ct_alaw:
ata_ctx_law
,
.
ct_alaw
=
ata_ctx_law
,
ct_s8:
ata_ctx_s8
,
.
ct_s8
=
ata_ctx_s8
,
ct_u8:
ata_ctx_u8
,
.
ct_u8
=
ata_ctx_u8
,
};
};
static
TRANS
transFalconNormal
=
{
static
TRANS
transFalconNormal
=
{
ct_ulaw:
ata_ct_law
,
.
ct_ulaw
=
ata_ct_law
,
ct_alaw:
ata_ct_law
,
.
ct_alaw
=
ata_ct_law
,
ct_s8:
ata_ct_s8
,
.
ct_s8
=
ata_ct_s8
,
ct_u8:
ata_ct_u8
,
.
ct_u8
=
ata_ct_u8
,
ct_s16be:
ata_ct_s16be
,
.
ct_s16be
=
ata_ct_s16be
,
ct_u16be:
ata_ct_u16be
,
.
ct_u16be
=
ata_ct_u16be
,
ct_s16le:
ata_ct_s16le
,
.
ct_s16le
=
ata_ct_s16le
,
ct_u16le:
ata_ct_u16le
.
ct_u16le
=
ata_ct_u16le
};
};
static
TRANS
transFalconExpanding
=
{
static
TRANS
transFalconExpanding
=
{
ct_ulaw:
ata_ctx_law
,
.
ct_ulaw
=
ata_ctx_law
,
ct_alaw:
ata_ctx_law
,
.
ct_alaw
=
ata_ctx_law
,
ct_s8:
ata_ctx_s8
,
.
ct_s8
=
ata_ctx_s8
,
ct_u8:
ata_ctx_u8
,
.
ct_u8
=
ata_ctx_u8
,
ct_s16be:
ata_ctx_s16be
,
.
ct_s16be
=
ata_ctx_s16be
,
ct_u16be:
ata_ctx_u16be
,
.
ct_u16be
=
ata_ctx_u16be
,
ct_s16le:
ata_ctx_s16le
,
.
ct_s16le
=
ata_ctx_s16le
,
ct_u16le:
ata_ctx_u16le
,
.
ct_u16le
=
ata_ctx_u16le
,
};
};
...
@@ -1495,81 +1495,81 @@ static int FalconStateInfo(char *buffer, size_t space)
...
@@ -1495,81 +1495,81 @@ static int FalconStateInfo(char *buffer, size_t space)
/*** Machine definitions *****************************************************/
/*** Machine definitions *****************************************************/
static
SETTINGS
def_hard_falcon
=
{
static
SETTINGS
def_hard_falcon
=
{
format:
AFMT_S8
,
.
format
=
AFMT_S8
,
stereo:
0
,
.
stereo
=
0
,
size:
8
,
.
size
=
8
,
speed:
8195
.
speed
=
8195
}
;
}
;
static
SETTINGS
def_hard_tt
=
{
static
SETTINGS
def_hard_tt
=
{
format:
AFMT_S8
,
.
format
=
AFMT_S8
,
stereo:
0
,
.
stereo
=
0
,
size:
8
,
.
size
=
8
,
speed:
12517
.
speed
=
12517
}
;
}
;
static
SETTINGS
def_soft
=
{
static
SETTINGS
def_soft
=
{
format:
AFMT_U8
,
.
format
=
AFMT_U8
,
stereo:
0
,
.
stereo
=
0
,
size:
8
,
.
size
=
8
,
speed:
8000
.
speed
=
8000
}
;
}
;
static
MACHINE
machTT
=
{
static
MACHINE
machTT
=
{
name:
"Atari"
,
.
name
=
"Atari"
,
name2:
"TT"
,
.
name2
=
"TT"
,
open:
AtaOpen
,
.
open
=
AtaOpen
,
release:
AtaRelease
,
.
release
=
AtaRelease
,
dma_alloc:
AtaAlloc
,
.
dma_alloc
=
AtaAlloc
,
dma_free:
AtaFree
,
.
dma_free
=
AtaFree
,
irqinit:
AtaIrqInit
,
.
irqinit
=
AtaIrqInit
,
#ifdef MODULE
#ifdef MODULE
irqcleanup:
AtaIrqCleanUp
,
.
irqcleanup
=
AtaIrqCleanUp
,
#endif
/* MODULE */
#endif
/* MODULE */
init:
TTInit
,
.
init
=
TTInit
,
silence:
TTSilence
,
.
silence
=
TTSilence
,
setFormat:
TTSetFormat
,
.
setFormat
=
TTSetFormat
,
setVolume:
TTSetVolume
,
.
setVolume
=
TTSetVolume
,
setBass:
AtaSetBass
,
.
setBass
=
AtaSetBass
,
setTreble:
AtaSetTreble
,
.
setTreble
=
AtaSetTreble
,
setGain:
TTSetGain
,
.
setGain
=
TTSetGain
,
play:
AtaPlay
,
.
play
=
AtaPlay
,
mixer_init:
TTMixerInit
,
.
mixer_init
=
TTMixerInit
,
mixer_ioctl:
TTMixerIoctl
,
.
mixer_ioctl
=
TTMixerIoctl
,
write_sq_setup:
AtaWriteSqSetup
,
.
write_sq_setup
=
AtaWriteSqSetup
,
sq_open:
AtaSqOpen
,
.
sq_open
=
AtaSqOpen
,
state_info:
TTStateInfo
,
.
state_info
=
TTStateInfo
,
min_dsp_speed:
6258
,
.
min_dsp_speed
=
6258
,
version:
((
DMASOUND_ATARI_REVISION
<<
8
)
|
DMASOUND_ATARI_EDITION
),
.
version
=
((
DMASOUND_ATARI_REVISION
<<
8
)
|
DMASOUND_ATARI_EDITION
),
hardware_afmts:
AFMT_S8
,
/* h'ware-supported formats *only* here */
.
hardware_afmts
=
AFMT_S8
,
/* h'ware-supported formats *only* here */
capabilities:
DSP_CAP_BATCH
/* As per SNDCTL_DSP_GETCAPS */
.
capabilities
=
DSP_CAP_BATCH
/* As per SNDCTL_DSP_GETCAPS */
};
};
static
MACHINE
machFalcon
=
{
static
MACHINE
machFalcon
=
{
name:
"Atari"
,
.
name
=
"Atari"
,
name2:
"FALCON"
,
.
name2
=
"FALCON"
,
dma_alloc:
AtaAlloc
,
.
dma_alloc
=
AtaAlloc
,
dma_free:
AtaFree
,
.
dma_free
=
AtaFree
,
irqinit:
AtaIrqInit
,
.
irqinit
=
AtaIrqInit
,
#ifdef MODULE
#ifdef MODULE
irqcleanup:
AtaIrqCleanUp
,
.
irqcleanup
=
AtaIrqCleanUp
,
#endif
/* MODULE */
#endif
/* MODULE */
init:
FalconInit
,
.
init
=
FalconInit
,
silence:
FalconSilence
,
.
silence
=
FalconSilence
,
setFormat:
FalconSetFormat
,
.
setFormat
=
FalconSetFormat
,
setVolume:
FalconSetVolume
,
.
setVolume
=
FalconSetVolume
,
setBass:
AtaSetBass
,
.
setBass
=
AtaSetBass
,
setTreble:
AtaSetTreble
,
.
setTreble
=
AtaSetTreble
,
play:
AtaPlay
,
.
play
=
AtaPlay
,
mixer_init:
FalconMixerInit
,
.
mixer_init
=
FalconMixerInit
,
mixer_ioctl:
FalconMixerIoctl
,
.
mixer_ioctl
=
FalconMixerIoctl
,
write_sq_setup:
AtaWriteSqSetup
,
.
write_sq_setup
=
AtaWriteSqSetup
,
sq_open:
AtaSqOpen
,
.
sq_open
=
AtaSqOpen
,
state_info:
FalconStateInfo
,
.
state_info
=
FalconStateInfo
,
min_dsp_speed:
8195
,
.
min_dsp_speed
=
8195
,
version:
((
DMASOUND_ATARI_REVISION
<<
8
)
|
DMASOUND_ATARI_EDITION
),
.
version
=
((
DMASOUND_ATARI_REVISION
<<
8
)
|
DMASOUND_ATARI_EDITION
),
hardware_afmts:
(
AFMT_S8
|
AFMT_S16_BE
),
/* h'ware-supported formats *only* here */
.
hardware_afmts
=
(
AFMT_S8
|
AFMT_S16_BE
),
/* h'ware-supported formats *only* here */
capabilities:
DSP_CAP_BATCH
/* As per SNDCTL_DSP_GETCAPS */
.
capabilities
=
DSP_CAP_BATCH
/* As per SNDCTL_DSP_GETCAPS */
};
};
...
...
sound/oss/dmasound/dmasound_awacs.c
View file @
8bc47ee1
...
@@ -2405,45 +2405,45 @@ static int PMacStateInfo(char *b, size_t sp)
...
@@ -2405,45 +2405,45 @@ static int PMacStateInfo(char *b, size_t sp)
/*** Machine definitions *****************************************************/
/*** Machine definitions *****************************************************/
static
SETTINGS
def_hard
=
{
static
SETTINGS
def_hard
=
{
format:
AFMT_S16_BE
,
.
format
=
AFMT_S16_BE
,
stereo:
1
,
.
stereo
=
1
,
size:
16
,
.
size
=
16
,
speed:
44100
.
speed
=
44100
}
;
}
;
static
SETTINGS
def_soft
=
{
static
SETTINGS
def_soft
=
{
format:
AFMT_S16_BE
,
.
format
=
AFMT_S16_BE
,
stereo:
1
,
.
stereo
=
1
,
size:
16
,
.
size
=
16
,
speed:
44100
.
speed
=
44100
}
;
}
;
static
MACHINE
machPMac
=
{
static
MACHINE
machPMac
=
{
name:
awacs_name
,
.
name
=
awacs_name
,
name2:
"PowerMac Built-in Sound"
,
.
name2
=
"PowerMac Built-in Sound"
,
open:
PMacOpen
,
.
open
=
PMacOpen
,
release:
PMacRelease
,
.
release
=
PMacRelease
,
dma_alloc:
PMacAlloc
,
.
dma_alloc
=
PMacAlloc
,
dma_free:
PMacFree
,
.
dma_free
=
PMacFree
,
irqinit:
PMacIrqInit
,
.
irqinit
=
PMacIrqInit
,
#ifdef MODULE
#ifdef MODULE
irqcleanup:
PMacIrqCleanup
,
.
irqcleanup
=
PMacIrqCleanup
,
#endif
/* MODULE */
#endif
/* MODULE */
init:
PMacInit
,
.
init
=
PMacInit
,
silence:
PMacSilence
,
.
silence
=
PMacSilence
,
setFormat:
PMacSetFormat
,
.
setFormat
=
PMacSetFormat
,
setVolume:
PMacSetVolume
,
.
setVolume
=
PMacSetVolume
,
play:
PMacPlay
,
.
play
=
PMacPlay
,
record:
NULL
,
/* default to no record */
.
record
=
NULL
,
/* default to no record */
mixer_init:
PMacMixerInit
,
.
mixer_init
=
PMacMixerInit
,
mixer_ioctl:
PMacMixerIoctl
,
.
mixer_ioctl
=
PMacMixerIoctl
,
write_sq_setup:
PMacWriteSqSetup
,
.
write_sq_setup
=
PMacWriteSqSetup
,
read_sq_setup:
PMacReadSqSetup
,
.
read_sq_setup
=
PMacReadSqSetup
,
state_info:
PMacStateInfo
,
.
state_info
=
PMacStateInfo
,
abort_read:
PMacAbortRead
,
.
abort_read
=
PMacAbortRead
,
min_dsp_speed:
7350
,
.
min_dsp_speed
=
7350
,
max_dsp_speed:
44100
,
.
max_dsp_speed
=
44100
,
version:
((
DMASOUND_AWACS_REVISION
<<
8
)
+
DMASOUND_AWACS_EDITION
)
.
version
=
((
DMASOUND_AWACS_REVISION
<<
8
)
+
DMASOUND_AWACS_EDITION
)
};
};
...
...
sound/oss/dmasound/dmasound_core.c
View file @
8bc47ee1
...
@@ -367,11 +367,11 @@ static int mixer_ioctl(struct inode *inode, struct file *file, u_int cmd,
...
@@ -367,11 +367,11 @@ static int mixer_ioctl(struct inode *inode, struct file *file, u_int cmd,
static
struct
file_operations
mixer_fops
=
static
struct
file_operations
mixer_fops
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
ioctl:
mixer_ioctl
,
.
ioctl
=
mixer_ioctl
,
open:
mixer_open
,
.
open
=
mixer_open
,
release:
mixer_release
,
.
release
=
mixer_release
,
};
};
static
void
__init
mixer_init
(
void
)
static
void
__init
mixer_init
(
void
)
...
@@ -1325,15 +1325,15 @@ static int sq_ioctl(struct inode *inode, struct file *file, u_int cmd,
...
@@ -1325,15 +1325,15 @@ static int sq_ioctl(struct inode *inode, struct file *file, u_int cmd,
static
struct
file_operations
sq_fops
=
static
struct
file_operations
sq_fops
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
write:
sq_write
,
.
write
=
sq_write
,
poll:
sq_poll
,
.
poll
=
sq_poll
,
ioctl:
sq_ioctl
,
.
ioctl
=
sq_ioctl
,
open:
sq_open
,
.
open
=
sq_open
,
release:
sq_release
,
.
release
=
sq_release
,
#ifdef HAS_RECORD
#ifdef HAS_RECORD
read:
NULL
/* default to no read for compat mode */
.
read
=
NULL
/* default to no read for compat mode */
#endif
#endif
};
};
...
@@ -1548,11 +1548,11 @@ static ssize_t state_read(struct file *file, char *buf, size_t count,
...
@@ -1548,11 +1548,11 @@ static ssize_t state_read(struct file *file, char *buf, size_t count,
}
}
static
struct
file_operations
state_fops
=
{
static
struct
file_operations
state_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
read:
state_read
,
.
read
=
state_read
,
open:
state_open
,
.
open
=
state_open
,
release:
state_release
,
.
release
=
state_release
,
};
};
static
int
__init
state_init
(
void
)
static
int
__init
state_init
(
void
)
...
...
sound/oss/dmasound/dmasound_paula.c
View file @
8bc47ee1
...
@@ -298,14 +298,14 @@ GENERATE_AMI_CT_16(ami_ct_u16le, AMI_CT_U16LE)
...
@@ -298,14 +298,14 @@ GENERATE_AMI_CT_16(ami_ct_u16le, AMI_CT_U16LE)
static
TRANS
transAmiga
=
{
static
TRANS
transAmiga
=
{
ct_ulaw:
ami_ct_ulaw
,
.
ct_ulaw
=
ami_ct_ulaw
,
ct_alaw:
ami_ct_alaw
,
.
ct_alaw
=
ami_ct_alaw
,
ct_s8:
ami_ct_s8
,
.
ct_s8
=
ami_ct_s8
,
ct_u8:
ami_ct_u8
,
.
ct_u8
=
ami_ct_u8
,
ct_s16be:
ami_ct_s16be
,
.
ct_s16be
=
ami_ct_s16be
,
ct_u16be:
ami_ct_u16be
,
.
ct_u16be
=
ami_ct_u16be
,
ct_s16le:
ami_ct_s16le
,
.
ct_s16le
=
ami_ct_s16le
,
ct_u16le:
ami_ct_u16le
,
.
ct_u16le
=
ami_ct_u16le
,
};
};
/*** Low level stuff *********************************************************/
/*** Low level stuff *********************************************************/
...
@@ -681,44 +681,44 @@ static int AmiStateInfo(char *buffer, size_t space)
...
@@ -681,44 +681,44 @@ static int AmiStateInfo(char *buffer, size_t space)
/*** Machine definitions *****************************************************/
/*** Machine definitions *****************************************************/
static
SETTINGS
def_hard
=
{
static
SETTINGS
def_hard
=
{
format:
AFMT_S8
,
.
format
=
AFMT_S8
,
stereo:
0
,
.
stereo
=
0
,
size:
8
,
.
size
=
8
,
speed:
8000
.
speed
=
8000
}
;
}
;
static
SETTINGS
def_soft
=
{
static
SETTINGS
def_soft
=
{
format:
AFMT_U8
,
.
format
=
AFMT_U8
,
stereo:
0
,
.
stereo
=
0
,
size:
8
,
.
size
=
8
,
speed:
8000
.
speed
=
8000
}
;
}
;
static
MACHINE
machAmiga
=
{
static
MACHINE
machAmiga
=
{
name:
"Amiga"
,
.
name
=
"Amiga"
,
name2:
"AMIGA"
,
.
name2
=
"AMIGA"
,
open:
AmiOpen
,
.
open
=
AmiOpen
,
release:
AmiRelease
,
.
release
=
AmiRelease
,
dma_alloc:
AmiAlloc
,
.
dma_alloc
=
AmiAlloc
,
dma_free:
AmiFree
,
.
dma_free
=
AmiFree
,
irqinit:
AmiIrqInit
,
.
irqinit
=
AmiIrqInit
,
#ifdef MODULE
#ifdef MODULE
irqcleanup:
AmiIrqCleanUp
,
.
irqcleanup
=
AmiIrqCleanUp
,
#endif
/* MODULE */
#endif
/* MODULE */
init:
AmiInit
,
.
init
=
AmiInit
,
silence:
AmiSilence
,
.
silence
=
AmiSilence
,
setFormat:
AmiSetFormat
,
.
setFormat
=
AmiSetFormat
,
setVolume:
AmiSetVolume
,
.
setVolume
=
AmiSetVolume
,
setTreble:
AmiSetTreble
,
.
setTreble
=
AmiSetTreble
,
play:
AmiPlay
,
.
play
=
AmiPlay
,
mixer_init:
AmiMixerInit
,
.
mixer_init
=
AmiMixerInit
,
mixer_ioctl:
AmiMixerIoctl
,
.
mixer_ioctl
=
AmiMixerIoctl
,
write_sq_setup:
AmiWriteSqSetup
,
.
write_sq_setup
=
AmiWriteSqSetup
,
state_info:
AmiStateInfo
,
.
state_info
=
AmiStateInfo
,
min_dsp_speed:
8000
,
.
min_dsp_speed
=
8000
,
version:
((
DMASOUND_PAULA_REVISION
<<
8
)
|
DMASOUND_PAULA_EDITION
),
.
version
=
((
DMASOUND_PAULA_REVISION
<<
8
)
|
DMASOUND_PAULA_EDITION
),
hardware_afmts:
(
AFMT_S8
|
AFMT_S16_BE
),
/* h'ware-supported formats *only* here */
.
hardware_afmts
=
(
AFMT_S8
|
AFMT_S16_BE
),
/* h'ware-supported formats *only* here */
capabilities:
DSP_CAP_BATCH
/* As per SNDCTL_DSP_GETCAPS */
.
capabilities
=
DSP_CAP_BATCH
/* As per SNDCTL_DSP_GETCAPS */
};
};
...
...
sound/oss/dmasound/dmasound_q40.c
View file @
8bc47ee1
...
@@ -584,39 +584,39 @@ static int Q40SetVolume(int volume)
...
@@ -584,39 +584,39 @@ static int Q40SetVolume(int volume)
/*** Machine definitions *****************************************************/
/*** Machine definitions *****************************************************/
static
SETTINGS
def_hard
=
{
static
SETTINGS
def_hard
=
{
format:
AFMT_U8
,
.
format
=
AFMT_U8
,
stereo:
0
,
.
stereo
=
0
,
size:
8
,
.
size
=
8
,
speed:
10000
.
speed
=
10000
}
;
}
;
static
SETTINGS
def_soft
=
{
static
SETTINGS
def_soft
=
{
format:
AFMT_U8
,
.
format
=
AFMT_U8
,
stereo:
0
,
.
stereo
=
0
,
size:
8
,
.
size
=
8
,
speed:
8000
.
speed
=
8000
}
;
}
;
static
MACHINE
machQ40
=
{
static
MACHINE
machQ40
=
{
name:
"Q40"
,
.
name
=
"Q40"
,
name2:
"Q40"
,
.
name2
=
"Q40"
,
open:
Q40Open
,
.
open
=
Q40Open
,
release:
Q40Release
,
.
release
=
Q40Release
,
dma_alloc:
Q40Alloc
,
.
dma_alloc
=
Q40Alloc
,
dma_free:
Q40Free
,
.
dma_free
=
Q40Free
,
irqinit:
Q40IrqInit
,
.
irqinit
=
Q40IrqInit
,
#ifdef MODULE
#ifdef MODULE
irqcleanup:
Q40IrqCleanUp
,
.
irqcleanup
=
Q40IrqCleanUp
,
#endif
/* MODULE */
#endif
/* MODULE */
init:
Q40Init
,
.
init
=
Q40Init
,
silence:
Q40Silence
,
.
silence
=
Q40Silence
,
setFormat:
Q40SetFormat
,
.
setFormat
=
Q40SetFormat
,
setVolume:
Q40SetVolume
,
.
setVolume
=
Q40SetVolume
,
play:
Q40Play
,
.
play
=
Q40Play
,
min_dsp_speed:
10000
,
.
min_dsp_speed
=
10000
,
version:
((
DMASOUND_Q40_REVISION
<<
8
)
|
DMASOUND_Q40_EDITION
),
.
version
=
((
DMASOUND_Q40_REVISION
<<
8
)
|
DMASOUND_Q40_EDITION
),
hardware_afmts:
AFMT_U8
,
/* h'ware-supported formats *only* here */
.
hardware_afmts
=
AFMT_U8
,
/* h'ware-supported formats *only* here */
capabilities:
DSP_CAP_BATCH
/* As per SNDCTL_DSP_GETCAPS */
.
capabilities
=
DSP_CAP_BATCH
/* As per SNDCTL_DSP_GETCAPS */
};
};
...
...
sound/oss/emu10k1/audio.c
View file @
8bc47ee1
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include <linux/module.h>
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/poll.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/version.h>
#include <linux/bitops.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <asm/io.h>
#include <linux/sched.h>
#include <linux/sched.h>
...
@@ -1020,7 +1019,7 @@ static struct page *emu10k1_mm_nopage (struct vm_area_struct * vma, unsigned lon
...
@@ -1020,7 +1019,7 @@ static struct page *emu10k1_mm_nopage (struct vm_area_struct * vma, unsigned lon
}
}
struct
vm_operations_struct
emu10k1_mm_ops
=
{
struct
vm_operations_struct
emu10k1_mm_ops
=
{
nopage:
emu10k1_mm_nopage
,
.
nopage
=
emu10k1_mm_nopage
,
};
};
static
int
emu10k1_audio_mmap
(
struct
file
*
file
,
struct
vm_area_struct
*
vma
)
static
int
emu10k1_audio_mmap
(
struct
file
*
file
,
struct
vm_area_struct
*
vma
)
...
@@ -1558,13 +1557,13 @@ void emu10k1_waveout_bh(unsigned long refdata)
...
@@ -1558,13 +1557,13 @@ void emu10k1_waveout_bh(unsigned long refdata)
}
}
struct
file_operations
emu10k1_audio_fops
=
{
struct
file_operations
emu10k1_audio_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
read:
emu10k1_audio_read
,
.
read
=
emu10k1_audio_read
,
write:
emu10k1_audio_write
,
.
write
=
emu10k1_audio_write
,
poll:
emu10k1_audio_poll
,
.
poll
=
emu10k1_audio_poll
,
ioctl:
emu10k1_audio_ioctl
,
.
ioctl
=
emu10k1_audio_ioctl
,
mmap:
emu10k1_audio_mmap
,
.
mmap
=
emu10k1_audio_mmap
,
open:
emu10k1_audio_open
,
.
open
=
emu10k1_audio_open
,
release:
emu10k1_audio_release
,
.
release
=
emu10k1_audio_release
,
};
};
sound/oss/emu10k1/main.c
View file @
8bc47ee1
...
@@ -86,7 +86,6 @@
...
@@ -86,7 +86,6 @@
*********************************************************************/
*********************************************************************/
/* These are only included once per module */
/* These are only included once per module */
#include <linux/version.h>
#include <linux/module.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/init.h>
...
@@ -1144,10 +1143,10 @@ MODULE_DESCRIPTION("Creative EMU10K1 PCI Audio Driver v" DRIVER_VERSION "\nCopyr
...
@@ -1144,10 +1143,10 @@ MODULE_DESCRIPTION("Creative EMU10K1 PCI Audio Driver v" DRIVER_VERSION "\nCopyr
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
static
struct
pci_driver
emu10k1_pci_driver
=
{
static
struct
pci_driver
emu10k1_pci_driver
=
{
name:
"emu10k1"
,
.
name
=
"emu10k1"
,
id_table:
emu10k1_pci_tbl
,
.
id_table
=
emu10k1_pci_tbl
,
probe:
emu10k1_probe
,
.
probe
=
emu10k1_probe
,
remove:
__devexit_p
(
emu10k1_remove
),
.
remove
=
__devexit_p
(
emu10k1_remove
),
};
};
static
int
__init
emu10k1_init_module
(
void
)
static
int
__init
emu10k1_init_module
(
void
)
...
...
sound/oss/emu10k1/midi.c
View file @
8bc47ee1
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
#include <linux/module.h>
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/poll.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/version.h>
#include <linux/sched.h>
#include <linux/sched.h>
#include <linux/smp_lock.h>
#include <linux/smp_lock.h>
#include <asm/uaccess.h>
#include <asm/uaccess.h>
...
@@ -465,12 +464,12 @@ int emu10k1_midi_callback(unsigned long msg, unsigned long refdata, unsigned lon
...
@@ -465,12 +464,12 @@ int emu10k1_midi_callback(unsigned long msg, unsigned long refdata, unsigned lon
/* MIDI file operations */
/* MIDI file operations */
struct
file_operations
emu10k1_midi_fops
=
{
struct
file_operations
emu10k1_midi_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
read:
emu10k1_midi_read
,
.
read
=
emu10k1_midi_read
,
write:
emu10k1_midi_write
,
.
write
=
emu10k1_midi_write
,
poll:
emu10k1_midi_poll
,
.
poll
=
emu10k1_midi_poll
,
open:
emu10k1_midi_open
,
.
open
=
emu10k1_midi_open
,
release:
emu10k1_midi_release
,
.
release
=
emu10k1_midi_release
,
};
};
...
...
sound/oss/emu10k1/mixer.c
View file @
8bc47ee1
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
*/
*/
#include <linux/module.h>
#include <linux/module.h>
#include <linux/version.h>
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#include <linux/fs.h>
#include <linux/fs.h>
...
@@ -675,9 +674,9 @@ static int emu10k1_mixer_release(struct inode *inode, struct file *file)
...
@@ -675,9 +674,9 @@ static int emu10k1_mixer_release(struct inode *inode, struct file *file)
}
}
struct
file_operations
emu10k1_mixer_fops
=
{
struct
file_operations
emu10k1_mixer_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
ioctl:
emu10k1_mixer_ioctl
,
.
ioctl
=
emu10k1_mixer_ioctl
,
open:
emu10k1_mixer_open
,
.
open
=
emu10k1_mixer_open
,
release:
emu10k1_mixer_release
,
.
release
=
emu10k1_mixer_release
,
};
};
sound/oss/emu10k1/passthrough.c
View file @
8bc47ee1
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
#include <linux/module.h>
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/poll.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/version.h>
#include <linux/bitops.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <asm/io.h>
#include <linux/sched.h>
#include <linux/sched.h>
...
...
sound/oss/es1370.c
View file @
8bc47ee1
...
@@ -140,7 +140,6 @@
...
@@ -140,7 +140,6 @@
/*****************************************************************************/
/*****************************************************************************/
#include <linux/version.h>
#include <linux/interrupt.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/string.h>
...
@@ -1054,11 +1053,11 @@ static int es1370_ioctl_mixdev(struct inode *inode, struct file *file, unsigned
...
@@ -1054,11 +1053,11 @@ static int es1370_ioctl_mixdev(struct inode *inode, struct file *file, unsigned
}
}
static
/*const*/
struct
file_operations
es1370_mixer_fops
=
{
static
/*const*/
struct
file_operations
es1370_mixer_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
ioctl:
es1370_ioctl_mixdev
,
.
ioctl
=
es1370_ioctl_mixdev
,
open:
es1370_open_mixdev
,
.
open
=
es1370_open_mixdev
,
release:
es1370_release_mixdev
,
.
release
=
es1370_release_mixdev
,
};
};
/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
...
@@ -1816,15 +1815,15 @@ static int es1370_release(struct inode *inode, struct file *file)
...
@@ -1816,15 +1815,15 @@ static int es1370_release(struct inode *inode, struct file *file)
}
}
static
/*const*/
struct
file_operations
es1370_audio_fops
=
{
static
/*const*/
struct
file_operations
es1370_audio_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
read:
es1370_read
,
.
read
=
es1370_read
,
write:
es1370_write
,
.
write
=
es1370_write
,
poll:
es1370_poll
,
.
poll
=
es1370_poll
,
ioctl:
es1370_ioctl
,
.
ioctl
=
es1370_ioctl
,
mmap:
es1370_mmap
,
.
mmap
=
es1370_mmap
,
open:
es1370_open
,
.
open
=
es1370_open
,
release:
es1370_release
,
.
release
=
es1370_release
,
};
};
/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
...
@@ -2240,14 +2239,14 @@ static int es1370_release_dac(struct inode *inode, struct file *file)
...
@@ -2240,14 +2239,14 @@ static int es1370_release_dac(struct inode *inode, struct file *file)
}
}
static
/*const*/
struct
file_operations
es1370_dac_fops
=
{
static
/*const*/
struct
file_operations
es1370_dac_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
write:
es1370_write_dac
,
.
write
=
es1370_write_dac
,
poll:
es1370_poll_dac
,
.
poll
=
es1370_poll_dac
,
ioctl:
es1370_ioctl_dac
,
.
ioctl
=
es1370_ioctl_dac
,
mmap:
es1370_mmap_dac
,
.
mmap
=
es1370_mmap_dac
,
open:
es1370_open_dac
,
.
open
=
es1370_open_dac
,
release:
es1370_release_dac
,
.
release
=
es1370_release_dac
,
};
};
/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
...
@@ -2513,13 +2512,13 @@ static int es1370_midi_release(struct inode *inode, struct file *file)
...
@@ -2513,13 +2512,13 @@ static int es1370_midi_release(struct inode *inode, struct file *file)
}
}
static
/*const*/
struct
file_operations
es1370_midi_fops
=
{
static
/*const*/
struct
file_operations
es1370_midi_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
read:
es1370_midi_read
,
.
read
=
es1370_midi_read
,
write:
es1370_midi_write
,
.
write
=
es1370_midi_write
,
poll:
es1370_midi_poll
,
.
poll
=
es1370_midi_poll
,
open:
es1370_midi_open
,
.
open
=
es1370_midi_open
,
release:
es1370_midi_release
,
.
release
=
es1370_midi_release
,
};
};
/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
...
...
sound/oss/es1371.c
View file @
8bc47ee1
...
@@ -109,7 +109,6 @@
...
@@ -109,7 +109,6 @@
/*****************************************************************************/
/*****************************************************************************/
#include <linux/version.h>
#include <linux/interrupt.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/string.h>
...
@@ -1243,11 +1242,11 @@ static int es1371_ioctl_mixdev(struct inode *inode, struct file *file, unsigned
...
@@ -1243,11 +1242,11 @@ static int es1371_ioctl_mixdev(struct inode *inode, struct file *file, unsigned
}
}
static
/*const*/
struct
file_operations
es1371_mixer_fops
=
{
static
/*const*/
struct
file_operations
es1371_mixer_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
ioctl:
es1371_ioctl_mixdev
,
.
ioctl
=
es1371_ioctl_mixdev
,
open:
es1371_open_mixdev
,
.
open
=
es1371_open_mixdev
,
release:
es1371_release_mixdev
,
.
release
=
es1371_release_mixdev
,
};
};
/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
...
@@ -2004,15 +2003,15 @@ static int es1371_release(struct inode *inode, struct file *file)
...
@@ -2004,15 +2003,15 @@ static int es1371_release(struct inode *inode, struct file *file)
}
}
static
/*const*/
struct
file_operations
es1371_audio_fops
=
{
static
/*const*/
struct
file_operations
es1371_audio_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
read:
es1371_read
,
.
read
=
es1371_read
,
write:
es1371_write
,
.
write
=
es1371_write
,
poll:
es1371_poll
,
.
poll
=
es1371_poll
,
ioctl:
es1371_ioctl
,
.
ioctl
=
es1371_ioctl
,
mmap:
es1371_mmap
,
.
mmap
=
es1371_mmap
,
open:
es1371_open
,
.
open
=
es1371_open
,
release:
es1371_release
,
.
release
=
es1371_release
,
};
};
/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
...
@@ -2418,14 +2417,14 @@ static int es1371_release_dac(struct inode *inode, struct file *file)
...
@@ -2418,14 +2417,14 @@ static int es1371_release_dac(struct inode *inode, struct file *file)
}
}
static
/*const*/
struct
file_operations
es1371_dac_fops
=
{
static
/*const*/
struct
file_operations
es1371_dac_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
write:
es1371_write_dac
,
.
write
=
es1371_write_dac
,
poll:
es1371_poll_dac
,
.
poll
=
es1371_poll_dac
,
ioctl:
es1371_ioctl_dac
,
.
ioctl
=
es1371_ioctl_dac
,
mmap:
es1371_mmap_dac
,
.
mmap
=
es1371_mmap_dac
,
open:
es1371_open_dac
,
.
open
=
es1371_open_dac
,
release:
es1371_release_dac
,
.
release
=
es1371_release_dac
,
};
};
/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
...
@@ -2690,13 +2689,13 @@ static int es1371_midi_release(struct inode *inode, struct file *file)
...
@@ -2690,13 +2689,13 @@ static int es1371_midi_release(struct inode *inode, struct file *file)
}
}
static
/*const*/
struct
file_operations
es1371_midi_fops
=
{
static
/*const*/
struct
file_operations
es1371_midi_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
read:
es1371_midi_read
,
.
read
=
es1371_midi_read
,
write:
es1371_midi_write
,
.
write
=
es1371_midi_write
,
poll:
es1371_midi_poll
,
.
poll
=
es1371_midi_poll
,
open:
es1371_midi_open
,
.
open
=
es1371_midi_open
,
release:
es1371_midi_release
,
.
release
=
es1371_midi_release
,
};
};
/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
...
...
sound/oss/esssolo1.c
View file @
8bc47ee1
...
@@ -87,7 +87,6 @@
...
@@ -87,7 +87,6 @@
/*****************************************************************************/
/*****************************************************************************/
#include <linux/version.h>
#include <linux/interrupt.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/string.h>
...
@@ -951,11 +950,11 @@ static int solo1_ioctl_mixdev(struct inode *inode, struct file *file, unsigned i
...
@@ -951,11 +950,11 @@ static int solo1_ioctl_mixdev(struct inode *inode, struct file *file, unsigned i
}
}
static
/*const*/
struct
file_operations
solo1_mixer_fops
=
{
static
/*const*/
struct
file_operations
solo1_mixer_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
ioctl:
solo1_ioctl_mixdev
,
.
ioctl
=
solo1_ioctl_mixdev
,
open:
solo1_open_mixdev
,
.
open
=
solo1_open_mixdev
,
release:
solo1_release_mixdev
,
.
release
=
solo1_release_mixdev
,
};
};
/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
...
@@ -1650,15 +1649,15 @@ static int solo1_open(struct inode *inode, struct file *file)
...
@@ -1650,15 +1649,15 @@ static int solo1_open(struct inode *inode, struct file *file)
}
}
static
/*const*/
struct
file_operations
solo1_audio_fops
=
{
static
/*const*/
struct
file_operations
solo1_audio_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
read:
solo1_read
,
.
read
=
solo1_read
,
write:
solo1_write
,
.
write
=
solo1_write
,
poll:
solo1_poll
,
.
poll
=
solo1_poll
,
ioctl:
solo1_ioctl
,
.
ioctl
=
solo1_ioctl
,
mmap:
solo1_mmap
,
.
mmap
=
solo1_mmap
,
open:
solo1_open
,
.
open
=
solo1_open
,
release:
solo1_release
,
.
release
=
solo1_release
,
};
};
/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
...
@@ -2001,13 +2000,13 @@ static int solo1_midi_release(struct inode *inode, struct file *file)
...
@@ -2001,13 +2000,13 @@ static int solo1_midi_release(struct inode *inode, struct file *file)
}
}
static
/*const*/
struct
file_operations
solo1_midi_fops
=
{
static
/*const*/
struct
file_operations
solo1_midi_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
read:
solo1_midi_read
,
.
read
=
solo1_midi_read
,
write:
solo1_midi_write
,
.
write
=
solo1_midi_write
,
poll:
solo1_midi_poll
,
.
poll
=
solo1_midi_poll
,
open:
solo1_midi_open
,
.
open
=
solo1_midi_open
,
release:
solo1_midi_release
,
.
release
=
solo1_midi_release
,
};
};
/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
...
@@ -2189,11 +2188,11 @@ static int solo1_dmfm_release(struct inode *inode, struct file *file)
...
@@ -2189,11 +2188,11 @@ static int solo1_dmfm_release(struct inode *inode, struct file *file)
}
}
static
/*const*/
struct
file_operations
solo1_dmfm_fops
=
{
static
/*const*/
struct
file_operations
solo1_dmfm_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
llseek:
no_llseek
,
.
llseek
=
no_llseek
,
ioctl:
solo1_dmfm_ioctl
,
.
ioctl
=
solo1_dmfm_ioctl
,
open:
solo1_dmfm_open
,
.
open
=
solo1_dmfm_open
,
release:
solo1_dmfm_release
,
.
release
=
solo1_dmfm_release
,
};
};
/* --------------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
...
...
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