diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-02-20 18:41:02 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-02-20 18:42:04 +0100 |
commit | 9155f82a6a26da4a5b8d2d29f1d31836906b4712 (patch) | |
tree | 688dd865459f416be73f7a6b0e0e1bd4ae565db9 /sound/pci | |
parent | 67b6ec3196da235317ff1b9474f17379b78f3294 (diff) | |
download | linux-9155f82a6a26da4a5b8d2d29f1d31836906b4712.tar.bz2 |
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: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 4ac1e3830af4..3c6f5b5161f0 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -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)) { |