diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-03-16 10:25:00 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-03-16 10:26:01 -0400 |
commit | b9591448e5160ccd353d8547ade018cfdf2b3e09 (patch) | |
tree | e8886ba7bea8737b9f55f5e26e8598d6c646a133 /sound/pci/hda/patch_realtek.c | |
parent | b8dbed0f095263b9ced5bd2e6d54743a7fa13f1b (diff) |
ALSA: hda - Fix ALC662 beep again
The previous commit breaks the (digital-) beep on ALC662.
ALC662 has the connection index 0x05 while ALC662 and ALC272 have the
index 0x04 for the beep widget.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 672103d84ffc..5ad0f8d72ddb 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -16951,7 +16951,10 @@ static int patch_alc662(struct hda_codec *codec) | |||
16951 | 16951 | ||
16952 | if (!spec->cap_mixer) | 16952 | if (!spec->cap_mixer) |
16953 | set_capture_mixer(spec); | 16953 | set_capture_mixer(spec); |
16954 | set_beep_amp(spec, 0x0b, 0x04, HDA_INPUT); | 16954 | if (codec->vendor_id == 0x10ec0662) |
16955 | set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT); | ||
16956 | else | ||
16957 | set_beep_amp(spec, 0x0b, 0x04, HDA_INPUT); | ||
16955 | 16958 | ||
16956 | spec->vmaster_nid = 0x02; | 16959 | spec->vmaster_nid = 0x02; |
16957 | 16960 | ||