aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/pci/hda/hda_intel.h
diff options
context:
space:
mode:
authorMengdong Lin <mengdong.lin@intel.com>2015-04-29 17:43:12 +0800
committerTakashi Iwai <tiwai@suse.de>2015-04-29 12:27:52 +0200
commitd4b7b13e19258a848da920502e27526f36c5a59d (patch)
treefd2a55f49787b4621511bfd6b9aca7475f7a88d4 /sound/pci/hda/hda_intel.h
parentALSA: hda - Replace open codes with snd_hdac_stream_set_params() (diff)
downloadwireguard-linux-d4b7b13e19258a848da920502e27526f36c5a59d.tar.xz
wireguard-linux-d4b7b13e19258a848da920502e27526f36c5a59d.zip
ALSA: hda - implement a refcount for i915 power well switch
This is to check the refcount of audio driver and reduce calling to i915. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.h')
-rw-r--r--sound/pci/hda/hda_intel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_intel.h b/sound/pci/hda/hda_intel.h
index 206989878bc6..dc1d3ffab1aa 100644
--- a/sound/pci/hda/hda_intel.h
+++ b/sound/pci/hda/hda_intel.h
@@ -46,6 +46,7 @@ struct hda_intel {
/* i915 component interface */
struct i915_audio_component audio_component;
+ int i915_power_refcount;
};
#ifdef CONFIG_SND_HDA_I915