diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-06-20 17:20:42 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-06-25 10:04:27 +0200 |
commit | 0e8f9862493a55d85d3351cb4517f2e4d95c9600 (patch) | |
tree | 663f14d9ebcc4d22d2d278e04b134fdbc619e214 /drivers/pinctrl/freescale/pinctrl-imx23.c | |
parent | fcbdcc1a93dd49ccd0e0f34224ce1ba4203b75de (diff) |
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>
Diffstat (limited to 'drivers/pinctrl/freescale/pinctrl-imx23.c')
0 files changed, 0 insertions, 0 deletions