Commit 07eba61d authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Don't enable beep for digital-only ALC262

When ALC262 codec is configured as digital-only, it's meaningless to
add the digital beep input.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b3bdb30b
...@@ -11051,11 +11051,13 @@ static int patch_alc262(struct hda_codec *codec) ...@@ -11051,11 +11051,13 @@ static int patch_alc262(struct hda_codec *codec)
} }
} }
if (!spec->no_analog) {
err = snd_hda_attach_beep_device(codec, 0x1); err = snd_hda_attach_beep_device(codec, 0x1);
if (err < 0) { if (err < 0) {
alc_free(codec); alc_free(codec);
return err; return err;
} }
}
if (board_config != ALC262_AUTO) if (board_config != ALC262_AUTO)
setup_preset(spec, &alc262_presets[board_config]); setup_preset(spec, &alc262_presets[board_config]);
...@@ -11087,6 +11089,7 @@ static int patch_alc262(struct hda_codec *codec) ...@@ -11087,6 +11089,7 @@ static int patch_alc262(struct hda_codec *codec)
} }
if (!spec->cap_mixer && !spec->no_analog) if (!spec->cap_mixer && !spec->no_analog)
set_capture_mixer(spec); set_capture_mixer(spec);
if (!spec->no_analog)
set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT); set_beep_amp(spec, 0x0b, 0x05, HDA_INPUT);
spec->vmaster_nid = 0x0c; spec->vmaster_nid = 0x0c;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment