]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Clean up snd_device_*() codes
authorTakashi Iwai <tiwai@suse.de>
Tue, 4 Feb 2014 10:36:11 +0000 (11:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Feb 2014 11:12:52 +0000 (12:12 +0100)
commitf6f32a45cb4cabc183ba6e23d2e884077338ae9e
treed477ad2c4ade6b2d3c1ef2d37aa555ec8c1ac137
parenta857e41f63dba74d4aead76f110aab85f5f046ce
ALSA: Clean up snd_device_*() codes

A few code cleanups and optimizations.  In addition, drop
snd_device_disconnect() that isn't used at all, and drop the return
values from snd_device_free*().

Another slight difference by this change is that now the device state
will become always SNDRV_DEV_REGISTERED no matter whether dev_register
ops is present or not.  It's for better consistency.  There should be
no impact for the current tree, as the state isn't checked.

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