Skip to content

Commit

Permalink
ALSA: hda - Don't create a beep control for digital-only ALC268
Browse files Browse the repository at this point in the history
When an ALC268 codec is set up as the digital-only (as found in Toshiba
laptops), it shouldn't contain any beep control that conflict with the
primary codec.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Mar 2, 2009
1 parent b31b43e commit 892981f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -11915,7 +11915,7 @@ static int alc268_parse_auto_config(struct hda_codec *codec)
if (spec->kctls.list)
add_mixer(spec, spec->kctls.list);

if (spec->autocfg.speaker_pins[0] != 0x1d)
if (!spec->no_analog && spec->autocfg.speaker_pins[0] != 0x1d)
add_mixer(spec, alc268_beep_mixer);

add_verb(spec, alc268_volume_init_verbs);
Expand Down

0 comments on commit 892981f

Please sign in to comment.