ALSA: hda/realtek - Use common helper for creating beep controls
authorTakashi Iwai <tiwai@suse.de>
Wed, 20 Jun 2018 10:52:46 +0000 (12:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 25 Jun 2018 08:04:25 +0000 (10:04 +0200)
commitfea80fae552c428b67591cb0aacca56c11c3eeaf
tree5f4f05f9b0c9be25410a7a3eff509ed4a36c880a
parenta5cb463a81737dde1ef3f1b1cf3e17bf69f20669
ALSA: hda/realtek - Use common helper for creating beep controls

In the Realtek codec driver, we used to build kctl elements for beep
mixer in the own build_controls callback.  This is an open-code and
can be covered by the standard feature of the generic parser with
snd_hda_gen_add_kctl() instead.

Also, after the conversion, spec->beep_amp becomes superfluous; hence
it's removed along with the conversion.

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