]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - include/sound/seq_device.h
ALSA: seq: Define driver object in each driver
authorTakashi Iwai <tiwai@suse.de>
Thu, 12 Feb 2015 12:43:22 +0000 (13:43 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 12 Feb 2015 13:15:54 +0000 (14:15 +0100)
commit056622053b8ae02978678ac1321b5bd956e7c812
treee2c0602b6efd90dc7d6e760bd7cd4ab0567104ee
parentaf03c243a1f014145dae34368fe975b2f08ed964
ALSA: seq: Define driver object in each driver

This patch moves the driver object initialization and allocation to
each driver's module init/exit code like other normal drivers.  The
snd_seq_driver struct is now published in seq_device.h, and each
driver is responsible to define it with proper driver attributes
(name, probe and remove) with snd_seq_driver specific attributes as id
and argsize fields.  The helper functions snd_seq_driver_register(),
snd_seq_driver_unregister() and module_snd_seq_driver() are used for
simplifying codes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/seq_device.h
sound/core/seq/oss/seq_oss.c
sound/core/seq/oss/seq_oss_synth.c
sound/core/seq/oss/seq_oss_synth.h
sound/core/seq/seq_device.c
sound/core/seq/seq_midi.c
sound/drivers/opl3/opl3_seq.c
sound/drivers/opl4/opl4_seq.c
sound/isa/sb/emu8000_synth.c
sound/pci/emu10k1/emu10k1_synth.c