]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/via - Simplify control management
authorTakashi Iwai <tiwai@suse.de>
Wed, 20 Jun 2018 15:20:42 +0000 (17:20 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 25 Jun 2018 08:04:27 +0000 (10:04 +0200)
commit8a56774973b7869089fd9507e1d1b53175c2c8ca
tree663f14d9ebcc4d22d2d278e04b134fdbc619e214
parent4bf3a5e04099afa8569f0d44e4e10cb0bb9ec1f6
ALSA: hda/via - Simplify control management

This patch replaces the control element creations in VIA codec driver
with the standard snd_hda_gen_add_kctl() calls as a cleanup.  There
are two major fields targeted by this patch: the beep controls and
static init controls.

The former is converted just like other codec drivers do.  The
spec->beep_amp field can be eliminated by this change as well.

The latter, static init controls, are replaced simply with explicit
snd_hda_gen_add_kctl() calls.

After these conversions, via_build_controls() becomes superfluous and
replaced with snd_hda_gen_build_controls(), too.

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