return 0;
}
-#ifdef CONFIG_SND_HDA_POWER_SAVE
static int stac_vrefout_set(struct hda_codec *codec,
hda_nid_t nid, unsigned int new_vref)
{
return 1;
}
-#endif
static unsigned int stac92xx_vref_set(struct hda_codec *codec,
hda_nid_t nid, unsigned int new_vref)
return 0;
}
-#ifdef CONFIG_SND_HDA_POWER_SAVE
static int stac92xx_pre_resume(struct hda_codec *codec)
{
struct sigmatel_spec *spec = codec->spec;
afg_power_state);
snd_hda_codec_set_power_to_all(codec, fg, power_state, true);
}
-#endif /* CONFIG_SND_HDA_POWER_SAVE */
#endif /* CONFIG_PM */
/* update mute-LED accoring to the master switch */
spec->gpio_led,
spec->gpio_led_polarity);
-#ifdef CONFIG_SND_HDA_POWER_SAVE
if (spec->gpio_led) {
if (!spec->vref_mute_led_nid) {
spec->gpio_mask |= spec->gpio_led;
}
codec->patch_ops.pre_resume = stac92xx_pre_resume;
}
-#endif
err = stac92xx_parse_auto_config(codec);
if (!err) {
spec->gpio_led,
spec->gpio_led_polarity);
-#ifdef CONFIG_SND_HDA_POWER_SAVE
if (spec->gpio_led) {
if (!spec->vref_mute_led_nid) {
spec->gpio_mask |= spec->gpio_led;
}
codec->patch_ops.pre_resume = stac92xx_pre_resume;
}
-#endif
spec->multiout.dac_nids = spec->dac_nids;