• Takashi Iwai's avatar
    ALSA: Clean up snd_device_*() codes · 72620d60
    Takashi Iwai authored
    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: default avatarTakashi Iwai <tiwai@suse.de>
    72620d60
init.c 24.7 KB