aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
authorAndrew Paprocki <andrew@ishiboo.com>2007-12-19 06:13:44 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:29:42 -0500
commit3982d17e3d38850908ed3400cb5a68fdc623877d (patch)
treeedc3fa96f032fe767f0cbf5a83f85b853cf1b99a /sound/pci/hda/patch_realtek.c
parent1697055e6c82ee5e99f459c15619605782eb7fcc (diff)
[ALSA] hda-codec - Add missing #defines (and 1 rename) in hda_codec.h
Added AC_VERB_GET_DIGI_CONVERT_2 and renamed AC_VERB_GET_DIGI_CONVERT to AC_VERB_GET_DIGI_CONVERT_1 to stay consistent with the SET variants. Added AC_VERB_GET_GPIO_UNSOLICITED_RSP_MASK, AC_VERB_SET_GPIO_UNSOLICITED_RSP_MASK, and AC_PINCAP_LR_SWAP. The missing fields were listed in the ALC883 datasheet rev 1.3. Signed-off-by: Andrew Paprocki <andrew@ishiboo.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 2bbf89e26fa2..c251974fdcc7 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -572,7 +572,7 @@ static int alc_spdif_ctrl_get(struct snd_kcontrol *kcontrol,
572 unsigned char mask = (kcontrol->private_value >> 16) & 0xff; 572 unsigned char mask = (kcontrol->private_value >> 16) & 0xff;
573 long *valp = ucontrol->value.integer.value; 573 long *valp = ucontrol->value.integer.value;
574 unsigned int val = snd_hda_codec_read(codec, nid, 0, 574 unsigned int val = snd_hda_codec_read(codec, nid, 0,
575 AC_VERB_GET_DIGI_CONVERT, 0x00); 575 AC_VERB_GET_DIGI_CONVERT_1, 0x00);
576 576
577 *valp = (val & mask) != 0; 577 *valp = (val & mask) != 0;
578 return 0; 578 return 0;
@@ -586,7 +586,7 @@ static int alc_spdif_ctrl_put(struct snd_kcontrol *kcontrol,
586 unsigned char mask = (kcontrol->private_value >> 16) & 0xff; 586 unsigned char mask = (kcontrol->private_value >> 16) & 0xff;
587 long val = *ucontrol->value.integer.value; 587 long val = *ucontrol->value.integer.value;
588 unsigned int ctrl_data = snd_hda_codec_read(codec, nid, 0, 588 unsigned int ctrl_data = snd_hda_codec_read(codec, nid, 0,
589 AC_VERB_GET_DIGI_CONVERT, 589 AC_VERB_GET_DIGI_CONVERT_1,
590 0x00); 590 0x00);
591 591
592 /* Set/unset the masked control bit(s) as needed */ 592 /* Set/unset the masked control bit(s) as needed */