diff options
author | Matthew Ranostay <mranostay@embeddedalley.com> | 2008-09-11 15:49:39 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-09-23 08:17:56 +0200 |
commit | 89385035fa3126dff27bfb73d186bc51e78d5ba5 (patch) | |
tree | 6d46bca88b7719546d10b9a304f153e365e84e51 /sound/pci/hda/hda_codec.c | |
parent | ALSA: hda: Added a STAC_HP_M4 quirk (diff) | |
download | linux-89385035fa3126dff27bfb73d186bc51e78d5ba5.tar.xz linux-89385035fa3126dff27bfb73d186bc51e78d5ba5.zip |
ALSA: hda: Input port AMP controls
Added support for controlling hardware gain amps on input ports
using a volume control mixer with a mux selecting the port being controlled.
Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 531364d35353..c742e101d91e 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -961,15 +961,6 @@ void snd_hda_codec_resume_amp(struct hda_codec *codec) } #endif /* SND_HDA_NEEDS_RESUME */ -/* - * AMP control callbacks - */ -/* retrieve parameters from private_value */ -#define get_amp_nid(kc) ((kc)->private_value & 0xffff) -#define get_amp_channels(kc) (((kc)->private_value >> 16) & 0x3) -#define get_amp_direction(kc) (((kc)->private_value >> 18) & 0x1) -#define get_amp_index(kc) (((kc)->private_value >> 19) & 0xf) - /* volume */ int snd_hda_mixer_amp_volume_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |