OSDN Git Service

ALSA: seq: Rewrite sequencer device binding with standard bus
authorTakashi Iwai <tiwai@suse.de>
Thu, 12 Feb 2015 09:51:59 +0000 (10:51 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 12 Feb 2015 10:35:11 +0000 (11:35 +0100)
commit7c37ae5c625aaa4836466cfaea829a3199dfc571
tree14ea2a629eeb1b09154b41bf22617bf9d7f7fcd2
parent72496edcf85e048b4c5373d518e4f27938d9594e
ALSA: seq: Rewrite sequencer device binding with standard bus

We've used the old house-made code for binding the sequencer device
and driver.  This can be far better implemented with the standard
bus nowadays.

This patch refactors the whole sequencer binding code with the bus
/sys/bus/snd_seq.  The devices appear as id-card-device on this bus
and are bound with the drivers corresponding to the given id like the
former implementation.  The module autoload is also kept like before.

There is no change in API functions by this patch, and almost all
transitions are kept inside seq_device.c.  The proc file output will
change slightly but kept compatible as much as possible.

Further integration works will follow in later patches.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/seq_device.h
sound/core/seq/seq_device.c