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

Commit 9155f82a authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda/realtek - Add model=fixup not to apply fix-ups



If anyone wants to debug the driver and avoid the existing fix-ups,
pass model=nofixup option.  Then the driver will skip to pick up the
fixup list.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 67b6ec31
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1556,6 +1556,13 @@ static void alc_pick_fixup(struct hda_codec *codec,
	int id = -1;
	const char *name = NULL;

	/* when model=nofixup is given, don't pick up any fixups */
	if (codec->modelname && !strcmp(codec->modelname, "nofixup")) {
		spec->fixup_list = NULL;
		spec->fixup_id = -1;
		return;
	}

	if (codec->modelname && models) {
		while (models->name) {
			if (!strcmp(codec->modelname, models->name)) {