diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-06-19 22:45:37 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-06-19 22:45:37 +0000 |
commit | 6d403070f28cd44860fdb3a53be5da0275c65cf4 (patch) | |
tree | 0d0e7fe7b5fb7568d19e11d7d862b77a866ce081 /drivers/sound/dmasound | |
parent | ecf1bf5f6c2e668d03b0a9fb026db7aa41e292e1 (diff) |
Merge with 2.4.0-test1-ac21 + pile of MIPS cleanups to make merging
possible. Chainsawed RM200 kernel to compile again. Jazz machine
status unknown.
Diffstat (limited to 'drivers/sound/dmasound')
-rw-r--r-- | drivers/sound/dmasound/dmasound_awacs.c | 6 | ||||
-rw-r--r-- | drivers/sound/dmasound/dmasound_core.c | 13 |
2 files changed, 7 insertions, 12 deletions
diff --git a/drivers/sound/dmasound/dmasound_awacs.c b/drivers/sound/dmasound/dmasound_awacs.c index 3893f9b58..f80ada7fd 100644 --- a/drivers/sound/dmasound/dmasound_awacs.c +++ b/drivers/sound/dmasound/dmasound_awacs.c @@ -1184,7 +1184,7 @@ static void awacs_nosound(unsigned long xx) } static struct timer_list beep_timer = { - NULL, NULL, 0, 0, awacs_nosound + function: awacs_nosound }; static void awacs_mksound(unsigned int hz, unsigned int ticks) @@ -1703,14 +1703,14 @@ static int awacs_mixer_ioctl(u_int cmd, u_long arg) case SOUND_MIXER_READ_RECLEV: data = awacs_get_volume(awacs_reg[0], 4); return IOCTL_OUT(arg, data); - case MIXER_WRITE(SOUND_MASK_MONITOR): + case MIXER_WRITE(SOUND_MIXER_MONITOR): IOCTL_IN(arg, data); awacs_reg[1] &= ~MASK_LOOPTHRU; if ((data & 0xff) >= 50) awacs_reg[1] |= MASK_LOOPTHRU; awacs_write(MASK_ADDR1 | awacs_reg[1]); /* fall through */ - case MIXER_READ(SOUND_MASK_MONITOR): + case MIXER_READ(SOUND_MIXER_MONITOR): data = (awacs_reg[1] & MASK_LOOPTHRU)? 100: 0; return IOCTL_OUT(arg, data); } diff --git a/drivers/sound/dmasound/dmasound_core.c b/drivers/sound/dmasound/dmasound_core.c index 4aed3953e..da60c783b 100644 --- a/drivers/sound/dmasound/dmasound_core.c +++ b/drivers/sound/dmasound/dmasound_core.c @@ -494,7 +494,6 @@ static struct { static int mixer_open(struct inode *inode, struct file *file) { - MOD_INC_USE_COUNT; dmasound.mach.open(); mixer.busy = 1; return 0; @@ -504,7 +503,6 @@ static int mixer_release(struct inode *inode, struct file *file) { mixer.busy = 0; dmasound.mach.release(); - MOD_DEC_USE_COUNT; return 0; } static int mixer_ioctl(struct inode *inode, struct file *file, u_int cmd, @@ -533,6 +531,7 @@ static int mixer_ioctl(struct inode *inode, struct file *file, u_int cmd, static struct file_operations mixer_fops = { + owner: THIS_MODULE, llseek: sound_lseek, ioctl: mixer_ioctl, open: mixer_open, @@ -843,11 +842,9 @@ static int sq_open(struct inode *inode, struct file *file) { int rc; - MOD_INC_USE_COUNT; dmasound.mach.open(); if ((rc = write_sq_open(file)) || (rc = read_sq_open(file))) { dmasound.mach.release(); - MOD_DEC_USE_COUNT; return rc; } @@ -917,7 +914,6 @@ static int sq_release(struct inode *inode, struct file *file) write_sq_release_buffers(); read_sq_release_buffers(); dmasound.mach.release(); - MOD_DEC_USE_COUNT; /* There is probably a DOS atack here. They change the mode flag. */ /* XXX add check here */ @@ -1029,6 +1025,7 @@ static int sq_ioctl(struct inode *inode, struct file *file, u_int cmd, static struct file_operations sq_fops = { + owner: THIS_MODULE, llseek: sound_lseek, write: sq_write, ioctl: sq_ioctl, @@ -1088,7 +1085,6 @@ static int state_open(struct inode *inode, struct file *file) if (state.busy) return -EBUSY; - MOD_INC_USE_COUNT; dmasound.mach.open(); state.ptr = 0; state.busy = 1; @@ -1147,7 +1143,6 @@ static int state_release(struct inode *inode, struct file *file) { state.busy = 0; dmasound.mach.release(); - MOD_DEC_USE_COUNT; return 0; } @@ -1165,8 +1160,8 @@ static ssize_t state_read(struct file *file, char *buf, size_t count, return n; } -static struct file_operations state_fops = -{ +static struct file_operations state_fops = { + owner: THIS_MODULE, llseek: sound_lseek, read: state_read, open: state_open, |