]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: hda - Use standard device registration for beep
authorTakashi Iwai <tiwai@suse.de>
Thu, 24 Jan 2019 08:45:36 +0000 (09:45 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 29 Jan 2019 17:28:09 +0000 (18:28 +0100)
commit45571bb871b217f1031045a27d935ea7c6ea5d12
treeafe743bfa29172c521d396e9e146dc95051b9fd2
parent9a19c90276e85e78612ee1d0a67ffb431253bff2
ALSA: hda - Use standard device registration for beep

Currently the registration and free of beep input device was done
manually from the register and the disconnect callbacks of the
assigned codec object.  This seems working in most cases, but this may
be a cause of some races at probe.  Moreover, due to these manual
calls, the total code became unnecessarily lengthy.

This patch rewrites the beep registration code to follow the standard
sound device object style.  This allows us reducing the code, in
addition to avoiding the nested device registration calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_beep.c
sound/pci/hda/hda_beep.h
sound/pci/hda/hda_codec.c