summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAbhijeet Kumar <abhijeet.kumar@intel.com>2018-01-23 20:30:51 +0300
committerTakashi Iwai <tiwai@suse.de>2018-02-12 15:59:39 +0300
commit09787492537462e3c7b8f67b30ff9704062f97cc (patch)
tree0b728a4c05c493cf70543545383a18060eeb48c8 /include
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff)
downloadlinux-09787492537462e3c7b8f67b30ff9704062f97cc.tar.xz
ALSA: hda: Copying sync power state helper to core
The current sync_power_state is local to hda code, moving it core so that other users apart from hda legacy can use it. The helper function ensures the actual state reaches the target state. Signed-off-by: Abhijeet Kumar <abhijeet.kumar@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/sound/hdaudio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h
index 68169e3749de..4c93ff5301bd 100644
--- a/include/sound/hdaudio.h
+++ b/include/sound/hdaudio.h
@@ -146,6 +146,8 @@ int snd_hdac_codec_write(struct hdac_device *hdac, hda_nid_t nid,
int flags, unsigned int verb, unsigned int parm);
bool snd_hdac_check_power_state(struct hdac_device *hdac,
hda_nid_t nid, unsigned int target_state);
+unsigned int snd_hdac_sync_power_state(struct hdac_device *hdac,
+ hda_nid_t nid, unsigned int target_state);
/**
* snd_hdac_read_parm - read a codec parameter
* @codec: the codec object