ALSA: hda/ca0132: Add DSP mixer controls and helpers
authorIan Minett <ian_minett@creativelabs.com>
Fri, 21 Dec 2012 02:53:35 +0000 (18:53 -0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Jan 2013 15:58:12 +0000 (16:58 +0100)
commita7e76271bdca5b85adb42fed05aae10ff6adeef3
tree7a9f69acb105fb305ea51bb48e72a07d95a88a97
parent5aaca44d8d05d144eec891498ff529c6ad4f5794
ALSA: hda/ca0132: Add DSP mixer controls and helpers

This patch adds the kcontrols for the DSP effects, playback and recording
source selection.
ca0132_is_vnode_effective() checks whether virtual node settings have
taken effect.
The control change helpers ca0132_pe_switch_set(), ca0132_voicefx_set()
and ca0132_cvoice_switch_set() are added to toggle playback / capture
DSP effects, ca0132_voicefx_info(), _get() and _put() are added for
input path DSP effect value access. The volume helpers are updated to
volume_info(), _get() and _set() to use the virtual nodes.
The redundant headphone and speaker switches and ct_extension function
are removed.

Signed-off-by: Ian Minett <ian_minett@creativelabs.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c