diff options
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 8fddc9d08726..f0af8cfab410 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -1682,6 +1682,8 @@ struct alc_fixup { | |||
1682 | unsigned int sku; | 1682 | unsigned int sku; |
1683 | const struct alc_pincfg *pins; | 1683 | const struct alc_pincfg *pins; |
1684 | const struct hda_verb *verbs; | 1684 | const struct hda_verb *verbs; |
1685 | void (*func)(struct hda_codec *codec, const struct alc_fixup *fix, | ||
1686 | int pre_init); | ||
1685 | }; | 1687 | }; |
1686 | 1688 | ||
1687 | static void alc_pick_fixup(struct hda_codec *codec, | 1689 | static void alc_pick_fixup(struct hda_codec *codec, |
@@ -1721,6 +1723,13 @@ static void alc_pick_fixup(struct hda_codec *codec, | |||
1721 | #endif | 1723 | #endif |
1722 | add_verb(codec->spec, fix->verbs); | 1724 | add_verb(codec->spec, fix->verbs); |
1723 | } | 1725 | } |
1726 | if (fix->func) { | ||
1727 | #ifdef CONFIG_SND_DEBUG_VERBOSE | ||
1728 | snd_printdd(KERN_INFO "hda_codec: %s: Apply fix-func for %s\n", | ||
1729 | codec->chip_name, quirk->name); | ||
1730 | #endif | ||
1731 | fix->func(codec, fix, pre_init); | ||
1732 | } | ||
1724 | } | 1733 | } |
1725 | 1734 | ||
1726 | static int alc_read_coef_idx(struct hda_codec *codec, | 1735 | static int alc_read_coef_idx(struct hda_codec *codec, |