patch-2.4.0-test7 linux/drivers/sound/ad1816.c
Next file: linux/drivers/sound/ad1848.c
Previous file: linux/drivers/sound/aci.c
Back to the patch index
Back to the overall index
- Lines: 91
- Date:
Fri Aug 11 08:26:43 2000
- Orig file:
v2.4.0-test6/linux/drivers/sound/ad1816.c
- Orig date:
Tue Apr 11 15:09:19 2000
diff -u --recursive --new-file v2.4.0-test6/linux/drivers/sound/ad1816.c linux/drivers/sound/ad1816.c
@@ -36,7 +36,6 @@
#include <linux/isapnp.h>
#include <linux/stddef.h>
-#include "soundmodule.h"
#include "sound_config.h"
#define DEBUGNOISE(x)
@@ -248,13 +247,6 @@
restore_flags (flags);
}
-
-static int ad1816_ioctl (int dev, unsigned int cmd, caddr_t arg)
-{
- return -(EINVAL);
-}
-
-
static int ad1816_prepare_for_input (int dev, int bsize, int bcount)
{
unsigned long flags;
@@ -535,24 +527,20 @@
static struct audio_driver ad1816_audio_driver =
{
- ad1816_open,
- ad1816_close,
- ad1816_output_block,
- ad1816_start_input,
- ad1816_ioctl,
- ad1816_prepare_for_input,
- ad1816_prepare_for_output,
- ad1816_halt,
- NULL,
- NULL,
- ad1816_halt_input,
- ad1816_halt_output,
- ad1816_trigger,
- ad1816_set_speed,
- ad1816_set_bits,
- ad1816_set_channels,
- NULL,
- NULL
+ owner: THIS_MODULE,
+ open: ad1816_open,
+ close: ad1816_close,
+ output_block: ad1816_output_block,
+ start_input: ad1816_start_input,
+ prepare_for_input: ad1816_prepare_for_input,
+ prepare_for_output: ad1816_prepare_for_output,
+ halt_io: ad1816_halt,
+ halt_input: ad1816_halt_input,
+ halt_output: ad1816_halt_output,
+ trigger: ad1816_trigger,
+ set_speed: ad1816_set_speed,
+ set_bits: ad1816_set_bits,
+ set_channels: ad1816_set_channels,
};
@@ -992,9 +980,10 @@
/* Mixer structure */
static struct mixer_operations ad1816_mixer_operations = {
- "AD1816",
- "AD1816 Mixer",
- ad1816_mixer_ioctl
+ owner: THIS_MODULE,
+ id: "AD1816",
+ name: "AD1816 Mixer",
+ ioctl: ad1816_mixer_ioctl
};
@@ -1424,7 +1413,6 @@
}
attach_ad1816(&cfg);
- SOUND_LOCK;
return 0;
}
@@ -1441,7 +1429,6 @@
}
nr_ad1816_devs=0;
- SOUND_LOCK_END;
#if defined CONFIG_ISAPNP || defined CONFIG_ISAPNP_MODULE
if(activated)
if(ad1816_dev)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)