]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ALSA: hda - Enable widget power saving for Cirrus codecs
authorTakashi Iwai <tiwai@suse.de>
Thu, 15 Oct 2015 09:17:09 +0000 (11:17 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 15 Oct 2015 09:19:39 +0000 (11:19 +0200)
Cirrus codecs have also fine power controls on each widget, thus it
gets benefit from the recent widget power-saving feature.  As we
haven't seen any obvious regressions with tests on some MacBooks,
let's try to enable it.

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

index 85813de26da87715df7d1d259339e30450c7815a..01c464a468f6b5ef506387fecb77297fdf9f3d90 100644 (file)
@@ -570,6 +570,7 @@ static struct cs_spec *cs_alloc_spec(struct hda_codec *codec, int vendor_nid)
                return NULL;
        codec->spec = spec;
        spec->vendor_nid = vendor_nid;
+       codec->power_save_node = 1;
        snd_hda_gen_spec_init(&spec->gen);
 
        return spec;