ALSA: hda - Fix missing EAPD/GPIO setup for Cirrus codecs
authorTakashi Iwai <tiwai@suse.de>
Fri, 15 Mar 2013 13:23:32 +0000 (14:23 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 Mar 2013 13:24:45 +0000 (14:24 +0100)
During the transition to the generic parser, the hook to the codec
specific automute function was forgotten.  This resulted in the silent
output on some MacBooks.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_cirrus.c

index 72ebb8a36b135938593db795d255b27479a5231f..60d08f669f0c1dec9c4a165437f466dec73071bb 100644 (file)
@@ -506,6 +506,8 @@ static int patch_cs420x(struct hda_codec *codec)
        if (!spec)
                return -ENOMEM;
 
+       spec->gen.automute_hook = cs_automute;
+
        snd_hda_pick_fixup(codec, cs420x_models, cs420x_fixup_tbl,
                           cs420x_fixups);
        snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE);
@@ -893,6 +895,8 @@ static int patch_cs4210(struct hda_codec *codec)
        if (!spec)
                return -ENOMEM;
 
+       spec->gen.automute_hook = cs_automute;
+
        snd_hda_pick_fixup(codec, cs421x_models, cs421x_fixup_tbl,
                           cs421x_fixups);
        snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PRE_PROBE);