ALSA: hda/cirrus - Simplify creation of new controls
authorTakashi Iwai <tiwai@suse.de>
Wed, 20 Jun 2018 15:10:51 +0000 (17:10 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 25 Jun 2018 08:04:26 +0000 (10:04 +0200)
commit0785b0ecb8fa960b4f49010d0679d174efad423c
treec7d53d462cecaaf3070d2557fbababce7f09b59b
parent51e19ca5f7555802687324d3bee3bc6b7df240d4
ALSA: hda/cirrus - Simplify creation of new controls

This patch moves the mixer creation code in Cirrus codec driver from
its own build_controls callback to snd_hda_gen_add_kctl() for
simplification.

As a bonus, this allows us to remove the cs421x_build_controls as it
becomes identical with snd_hda_gen_build_controls().

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