Commit 5520402f authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] C99 for sound

parent 91576b06
...@@ -518,20 +518,20 @@ static void ad1816_close (int dev) /* close device */ ...@@ -518,20 +518,20 @@ static void ad1816_close (int dev) /* close device */
static struct audio_driver ad1816_audio_driver = static struct audio_driver ad1816_audio_driver =
{ {
owner: THIS_MODULE, .owner = THIS_MODULE,
open: ad1816_open, .open = ad1816_open,
close: ad1816_close, .close = ad1816_close,
output_block: ad1816_output_block, .output_block = ad1816_output_block,
start_input: ad1816_start_input, .start_input = ad1816_start_input,
prepare_for_input: ad1816_prepare_for_input, .prepare_for_input = ad1816_prepare_for_input,
prepare_for_output: ad1816_prepare_for_output, .prepare_for_output = ad1816_prepare_for_output,
halt_io: ad1816_halt, .halt_io = ad1816_halt,
halt_input: ad1816_halt_input, .halt_input = ad1816_halt_input,
halt_output: ad1816_halt_output, .halt_output = ad1816_halt_output,
trigger: ad1816_trigger, .trigger = ad1816_trigger,
set_speed: ad1816_set_speed, .set_speed = ad1816_set_speed,
set_bits: ad1816_set_bits, .set_bits = ad1816_set_bits,
set_channels: ad1816_set_channels, .set_channels = ad1816_set_channels,
}; };
...@@ -970,10 +970,10 @@ ad1816_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg) ...@@ -970,10 +970,10 @@ ad1816_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
/* Mixer structure */ /* Mixer structure */
static struct mixer_operations ad1816_mixer_operations = { static struct mixer_operations ad1816_mixer_operations = {
owner: THIS_MODULE, .owner = THIS_MODULE,
id: "AD1816", .id = "AD1816",
name: "AD1816 Mixer", .name = "AD1816 Mixer",
ioctl: ad1816_mixer_ioctl .ioctl = ad1816_mixer_ioctl
}; };
......
...@@ -943,28 +943,28 @@ static unsigned int ad1848_set_bits(int dev, unsigned int arg) ...@@ -943,28 +943,28 @@ static unsigned int ad1848_set_bits(int dev, unsigned int arg)
static struct audio_driver ad1848_audio_driver = static struct audio_driver ad1848_audio_driver =
{ {
owner: THIS_MODULE, .owner = THIS_MODULE,
open: ad1848_open, .open = ad1848_open,
close: ad1848_close, .close = ad1848_close,
output_block: ad1848_output_block, .output_block = ad1848_output_block,
start_input: ad1848_start_input, .start_input = ad1848_start_input,
prepare_for_input: ad1848_prepare_for_input, .prepare_for_input = ad1848_prepare_for_input,
prepare_for_output: ad1848_prepare_for_output, .prepare_for_output = ad1848_prepare_for_output,
halt_io: ad1848_halt, .halt_io = ad1848_halt,
halt_input: ad1848_halt_input, .halt_input = ad1848_halt_input,
halt_output: ad1848_halt_output, .halt_output = ad1848_halt_output,
trigger: ad1848_trigger, .trigger = ad1848_trigger,
set_speed: ad1848_set_speed, .set_speed = ad1848_set_speed,
set_bits: ad1848_set_bits, .set_bits = ad1848_set_bits,
set_channels: ad1848_set_channels .set_channels = ad1848_set_channels
}; };
static struct mixer_operations ad1848_mixer_operations = static struct mixer_operations ad1848_mixer_operations =
{ {
owner: THIS_MODULE, .owner = THIS_MODULE,
id: "SOUNDPORT", .id = "SOUNDPORT",
name: "AD1848/CS4248/CS4231", .name = "AD1848/CS4248/CS4231",
ioctl: ad1848_mixer_ioctl .ioctl = ad1848_mixer_ioctl
}; };
static int ad1848_open(int dev, int mode) static int ad1848_open(int dev, int mode)
......
...@@ -493,28 +493,28 @@ static int ctrls[AWE_MD_END]; ...@@ -493,28 +493,28 @@ static int ctrls[AWE_MD_END];
static struct synth_operations awe_operations = static struct synth_operations awe_operations =
{ {
owner: THIS_MODULE, .owner = THIS_MODULE,
id: "EMU8K", .id = "EMU8K",
info: &awe_info, .info = &awe_info,
midi_dev: 0, .midi_dev = 0,
synth_type: SYNTH_TYPE_SAMPLE, .synth_type = SYNTH_TYPE_SAMPLE,
synth_subtype: SAMPLE_TYPE_AWE32, .synth_subtype = SAMPLE_TYPE_AWE32,
open: awe_open, .open = awe_open,
close: awe_close, .close = awe_close,
ioctl: awe_ioctl, .ioctl = awe_ioctl,
kill_note: awe_kill_note, .kill_note = awe_kill_note,
start_note: awe_start_note, .start_note = awe_start_note,
set_instr: awe_set_instr_2, .set_instr = awe_set_instr_2,
reset: awe_reset, .reset = awe_reset,
hw_control: awe_hw_control, .hw_control = awe_hw_control,
load_patch: awe_load_patch, .load_patch = awe_load_patch,
aftertouch: awe_aftertouch, .aftertouch = awe_aftertouch,
controller: awe_controller, .controller = awe_controller,
panning: awe_panning, .panning = awe_panning,
volume_method: awe_volume_method, .volume_method = awe_volume_method,
bender: awe_bender, .bender = awe_bender,
alloc_voice: awe_alloc, .alloc_voice = awe_alloc,
setup_voice: awe_setup_voice .setup_voice = awe_setup_voice
}; };
...@@ -4287,10 +4287,10 @@ static int awe_mixer_ioctl(int dev, unsigned int cmd, caddr_t arg); ...@@ -4287,10 +4287,10 @@ static int awe_mixer_ioctl(int dev, unsigned int cmd, caddr_t arg);
static int my_mixerdev = -1; static int my_mixerdev = -1;
static struct mixer_operations awe_mixer_operations = { static struct mixer_operations awe_mixer_operations = {
owner: THIS_MODULE, .owner = THIS_MODULE,
id: "AWE", .id = "AWE",
name: "AWE32 Equalizer", .name = "AWE32 Equalizer",
ioctl: awe_mixer_ioctl, .ioctl = awe_mixer_ioctl,
}; };
static void __init attach_mixer(void) static void __init attach_mixer(void)
...@@ -5232,13 +5232,13 @@ static int xg_control_change(MidiStatus *st, int cmd, int val); ...@@ -5232,13 +5232,13 @@ static int xg_control_change(MidiStatus *st, int cmd, int val);
static struct midi_operations awe_midi_operations = static struct midi_operations awe_midi_operations =
{ {
owner: THIS_MODULE, .owner = THIS_MODULE,
info: {"AWE Midi Emu", 0, 0, SNDCARD_SB}, .info = {"AWE Midi Emu", 0, 0, SNDCARD_SB},
in_info: {0}, .in_info = {0},
open: awe_midi_open, /*open*/ .open = awe_midi_open, /*open*/
close: awe_midi_close, /*close*/ .close = awe_midi_close, /*close*/
ioctl: awe_midi_ioctl, /*ioctl*/ .ioctl = awe_midi_ioctl, /*ioctl*/
outputc: awe_midi_outputc, /*outputc*/ .outputc = awe_midi_outputc, /*outputc*/
}; };
static int my_mididev = -1; static int my_mididev = -1;
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
*/ */
#include <linux/version.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/pci.h> #include <linux/pci.h>
...@@ -426,11 +425,11 @@ static int btaudio_mixer_ioctl(struct inode *inode, struct file *file, ...@@ -426,11 +425,11 @@ static int btaudio_mixer_ioctl(struct inode *inode, struct file *file,
} }
static struct file_operations btaudio_mixer_fops = { static struct file_operations btaudio_mixer_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
llseek: no_llseek, .llseek = no_llseek,
open: btaudio_mixer_open, .open = btaudio_mixer_open,
release: btaudio_mixer_release, .release = btaudio_mixer_release,
ioctl: btaudio_mixer_ioctl, .ioctl = btaudio_mixer_ioctl,
}; };
/* -------------------------------------------------------------- */ /* -------------------------------------------------------------- */
...@@ -791,25 +790,25 @@ static unsigned int btaudio_dsp_poll(struct file *file, struct poll_table_struct ...@@ -791,25 +790,25 @@ static unsigned int btaudio_dsp_poll(struct file *file, struct poll_table_struct
} }
static struct file_operations btaudio_digital_dsp_fops = { static struct file_operations btaudio_digital_dsp_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
llseek: no_llseek, .llseek = no_llseek,
open: btaudio_dsp_open_digital, .open = btaudio_dsp_open_digital,
release: btaudio_dsp_release, .release = btaudio_dsp_release,
read: btaudio_dsp_read, .read = btaudio_dsp_read,
write: btaudio_dsp_write, .write = btaudio_dsp_write,
ioctl: btaudio_dsp_ioctl, .ioctl = btaudio_dsp_ioctl,
poll: btaudio_dsp_poll, .poll = btaudio_dsp_poll,
}; };
static struct file_operations btaudio_analog_dsp_fops = { static struct file_operations btaudio_analog_dsp_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
llseek: no_llseek, .llseek = no_llseek,
open: btaudio_dsp_open_analog, .open = btaudio_dsp_open_analog,
release: btaudio_dsp_release, .release = btaudio_dsp_release,
read: btaudio_dsp_read, .read = btaudio_dsp_read,
write: btaudio_dsp_write, .write = btaudio_dsp_write,
ioctl: btaudio_dsp_ioctl, .ioctl = btaudio_dsp_ioctl,
poll: btaudio_dsp_poll, .poll = btaudio_dsp_poll,
}; };
/* -------------------------------------------------------------- */ /* -------------------------------------------------------------- */
...@@ -882,12 +881,12 @@ static int rate = 0; ...@@ -882,12 +881,12 @@ static int rate = 0;
static struct cardinfo cards[] = { static struct cardinfo cards[] = {
[0] = { [0] = {
name: "default", .name = "default",
rate: 32000, .rate = 32000,
}, },
[BTA_OSPREY200] = { [BTA_OSPREY200] = {
name: "Osprey 200", .name = "Osprey 200",
rate: 44100, .rate = 44100,
}, },
}; };
...@@ -1062,31 +1061,31 @@ static void __devexit btaudio_remove(struct pci_dev *pci_dev) ...@@ -1062,31 +1061,31 @@ static void __devexit btaudio_remove(struct pci_dev *pci_dev)
static struct pci_device_id btaudio_pci_tbl[] __devinitdata = { static struct pci_device_id btaudio_pci_tbl[] __devinitdata = {
{ {
vendor: PCI_VENDOR_ID_BROOKTREE, .vendor = PCI_VENDOR_ID_BROOKTREE,
device: 0x0878, .device = 0x0878,
subvendor: 0x0070, .subvendor = 0x0070,
subdevice: 0xff01, .subdevice = 0xff01,
driver_data: BTA_OSPREY200, .driver_data = BTA_OSPREY200,
},{ },{
vendor: PCI_VENDOR_ID_BROOKTREE, .vendor = PCI_VENDOR_ID_BROOKTREE,
device: 0x0878, .device = 0x0878,
subvendor: PCI_ANY_ID, .subvendor = PCI_ANY_ID,
subdevice: PCI_ANY_ID, .subdevice = PCI_ANY_ID,
},{ },{
vendor: PCI_VENDOR_ID_BROOKTREE, .vendor = PCI_VENDOR_ID_BROOKTREE,
device: 0x0878, .device = 0x0878,
subvendor: PCI_ANY_ID, .subvendor = PCI_ANY_ID,
subdevice: PCI_ANY_ID, .subdevice = PCI_ANY_ID,
},{ },{
/* --- end of list --- */ /* --- end of list --- */
} }
}; };
static struct pci_driver btaudio_pci_driver = { static struct pci_driver btaudio_pci_driver = {
name: "btaudio", .name = "btaudio",
id_table: btaudio_pci_tbl, .id_table = btaudio_pci_tbl,
probe: btaudio_probe, .probe = btaudio_probe,
remove: __devexit_p(btaudio_remove), .remove = __devexit_p(btaudio_remove),
}; };
static int btaudio_init_module(void) static int btaudio_init_module(void)
......
...@@ -87,7 +87,6 @@ ...@@ -87,7 +87,6 @@
*/ */
/*****************************************************************************/ /*****************************************************************************/
#include <linux/version.h>
#include <linux/config.h> #include <linux/config.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/string.h> #include <linux/string.h>
......
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