Skip to content

Commit

Permalink
ALSA: hda/realtek - Add model=fixup not to apply fix-ups
Browse files Browse the repository at this point in the history
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: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Feb 20, 2012
1 parent 67b6ec3 commit 9155f82
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 9155f82

Please sign in to comment.