Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34c3d192 authored by David Henningsson's avatar David Henningsson Committed by Takashi Iwai
Browse files

ALSA: hda - Cirrus: Correctly clear line_out_pins when moving to speaker

If this array is not cleared, the jack related code later might
fail to create "Internal Speaker Phantom Jack" on Dell Inspiron 3420 and
Dell Vostro 2420.

BugLink: https://bugs.launchpad.net/bugs/1076840


Cc: stable@vger.kernel.org (3.6+)
Signed-off-by: default avatarDavid Henningsson <david.henningsson@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent af02dde8
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -466,6 +466,7 @@ static int parse_output(struct hda_codec *codec)
		memcpy(cfg->speaker_pins, cfg->line_out_pins,
		memcpy(cfg->speaker_pins, cfg->line_out_pins,
		       sizeof(cfg->speaker_pins));
		       sizeof(cfg->speaker_pins));
		cfg->line_outs = 0;
		cfg->line_outs = 0;
		memset(cfg->line_out_pins, 0, sizeof(cfg->line_out_pins));
	}
	}


	return 0;
	return 0;