HDA Codec driver
Fixed LFE volume/switch control.
Signed-off-by: Nicolas Graziano <nicolas.graziano@wanadoo.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
long *valp = ucontrol->value.integer.value;
int change = 0;
long *valp = ucontrol->value.integer.value;
int change = 0;
change = snd_hda_codec_amp_update(codec, nid, 0, dir, idx,
0x7f, *valp);
change = snd_hda_codec_amp_update(codec, nid, 0, dir, idx,
0x7f, *valp);
if (chs & 2)
change |= snd_hda_codec_amp_update(codec, nid, 1, dir, idx,
if (chs & 2)
change |= snd_hda_codec_amp_update(codec, nid, 1, dir, idx,
long *valp = ucontrol->value.integer.value;
int change = 0;
long *valp = ucontrol->value.integer.value;
int change = 0;
change = snd_hda_codec_amp_update(codec, nid, 0, dir, idx,
0x80, *valp ? 0 : 0x80);
change = snd_hda_codec_amp_update(codec, nid, 0, dir, idx,
0x80, *valp ? 0 : 0x80);
if (chs & 2)
change |= snd_hda_codec_amp_update(codec, nid, 1, dir, idx,
if (chs & 2)
change |= snd_hda_codec_amp_update(codec, nid, 1, dir, idx,
- 0x80, valp[1] ? 0 : 0x80);
+ 0x80, *valp ? 0 : 0x80);
+