summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_controller.h
diff options
context:
space:
mode:
authorMengdong Lin <mengdong.lin@intel.com>2015-04-29 11:43:29 +0200
committerTakashi Iwai <tiwai@suse.de>2015-04-29 12:27:53 +0200
commit17eccb27fce7cac8469dd9e828645a3ba256fc1e (patch)
tree847fcecfd604da3b7b57746258bbd7509a6a34af /sound/pci/hda/hda_controller.h
parentALSA: hda - allow a codec to control the link power (diff)
downloadlinux-17eccb27fce7cac8469dd9e828645a3ba256fc1e.tar.xz
linux-17eccb27fce7cac8469dd9e828645a3ba256fc1e.zip
ALSA: hda - implement link_power ops for i915 display power control
This patch implements the bus link_power ops to request/release i915 display power well. It can be used by the display codec which shares this power well with GPU on Intel platforms. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_controller.h')
-rw-r--r--sound/pci/hda/hda_controller.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_controller.h b/sound/pci/hda/hda_controller.h
index 173bf7c85b6e..3d26e613ab67 100644
--- a/sound/pci/hda/hda_controller.h
+++ b/sound/pci/hda/hda_controller.h
@@ -89,6 +89,8 @@ struct hda_controller_ops {
struct vm_area_struct *area);
/* Check if current position is acceptable */
int (*position_check)(struct azx *chip, struct azx_dev *azx_dev);
+ /* enable/disable the link power */
+ int (*link_power)(struct azx *chip, bool enable);
};
struct azx_pcm {