From: Takashi Iwai Date: Mon, 18 Feb 2013 16:04:20 +0000 (+0100) Subject: ALSA: hda - Fix the silent speaker output on Fujitsu S7020 laptop X-Git-Tag: v3.9-rc1~52^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6e0ee507f630350d883bb3343e78cab30cad5e2;p=platform%2Fupstream%2Fkernel-adaptation-pc.git ALSA: hda - Fix the silent speaker output on Fujitsu S7020 laptop In the recent update, Fujitsu S7020 laptop with ALC260 codec lost the speaker output, no matter how the amps and the pins are set. After a long debugging session, we found out that the default codec init code is harmful for this machine, and we have to reset it to ALC_INIT_NONE. Reported-and-tested-by: Jonathan Woithe Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index e575685..61478fd 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -1516,8 +1516,14 @@ static void alc260_fixup_fsc_s7020(struct hda_codec *codec, { struct alc_spec *spec = codec->spec; - if (action == HDA_FIXUP_ACT_PRE_PROBE) + switch (action) { + case HDA_FIXUP_ACT_PRE_PROBE: spec->gen.add_out_jack_modes = 1; + break; + case HDA_FIXUP_ACT_PROBE: + spec->init_amp = ALC_INIT_NONE; + break; + } } static const struct hda_fixup alc260_fixups[] = {