]> git.kernelconcepts.de Git - mv-sheeva.git/commitdiff
ALSA: hda/realtek - Add model=fixup not to apply fix-ups
authorTakashi Iwai <tiwai@suse.de>
Mon, 20 Feb 2012 17:41:02 +0000 (18:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 20 Feb 2012 17:42:04 +0000 (18:42 +0100)
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>
sound/pci/hda/patch_realtek.c

index 4ac1e3830af40a446e35c67aef10ff613c2cf4ea..3c6f5b5161f0b530a6d42c83a0a3ff24e5c9de44 100644 (file)
@@ -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)) {