diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-02-20 11:58:14 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-02-26 17:37:08 +0300 |
commit | 709949fbe9632941585dcacabc8a66010030ed10 (patch) | |
tree | 0ff2706a48999e1b0c04a2fc6f5a412f08d7e2f5 /sound/pci/hda/hda_intel.c | |
parent | 55ed9cd1feee80764937913afe760161b86cfb11 (diff) | |
download | linux-709949fbe9632941585dcacabc8a66010030ed10.tar.xz |
ALSA: hda - Power down codec automatically at registration
So far, we let the controller driver power down the all codecs at the
end of probe. But this can be done better in the codec's dev_register
callback. This results in the reduction of duplicated codes in each
control driver.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 738d332351d5..e75e8137e296 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -1604,19 +1604,6 @@ static int azx_first_init(struct azx *chip) return 0; } -static void power_down_all_codecs(struct azx *chip) -{ -#ifdef CONFIG_PM - /* The codecs were powered up in snd_hda_codec_new(). - * Now all initialization done, so turn them down if possible - */ - struct hda_codec *codec; - list_for_each_entry(codec, &chip->bus->codec_list, list) { - snd_hda_power_down(codec); - } -#endif -} - #ifdef CONFIG_SND_HDA_PATCH_LOADER /* callback from request_firmware_nowait() */ static void azx_firmware_cb(const struct firmware *fw, void *context) @@ -1926,7 +1913,6 @@ static int azx_probe_continue(struct azx *chip) goto out_free; chip->running = 1; - power_down_all_codecs(chip); azx_notifier_register(chip); azx_add_card_list(chip); snd_hda_set_power_save(chip->bus, power_save * 1000); |