ALSA: hda: Copying sync power state helper to core
authorAbhijeet Kumar <abhijeet.kumar@intel.com>
Tue, 23 Jan 2018 17:30:51 +0000 (23:00 +0530)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Feb 2018 12:59:39 +0000 (13:59 +0100)
commit09787492537462e3c7b8f67b30ff9704062f97cc
tree0b728a4c05c493cf70543545383a18060eeb48c8
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
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>
include/sound/hdaudio.h
sound/hda/hdac_device.c