summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_i915.h
diff options
context:
space:
mode:
authorMengdong Lin <mengdong.lin@intel.com>2014-07-03 17:02:23 +0800
committerTakashi Iwai <tiwai@suse.de>2014-07-04 07:47:22 +0200
commite4d9e513dedb5ac4e166c1053314fa935ddecc8c (patch)
tree7c5159dd08ef78189302ef7669ddd532b6dd09cc /sound/pci/hda/hda_i915.h
parentc149dcb5c60bfea8871f16dfcc0690255eeb825f (diff)
downloadop-kernel-dev-e4d9e513dedb5ac4e166c1053314fa935ddecc8c.zip
op-kernel-dev-e4d9e513dedb5ac4e166c1053314fa935ddecc8c.tar.gz
ALSA: hda - restore BCLK M/N value as per CDCLK for HSW/BDW display HDA controller
For HSW/BDW display HD-A controller, hda_set_bclk() is defined to set BCLK by programming the M/N values as per the core display clock (CDCLK) queried from i915 display driver. And the audio driver will also set BCLK in azx_first_init() since the display driver can turn off the shared power in boot phase if only eDP is connected and M/N values will be lost and must be reprogrammed. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_i915.h')
-rw-r--r--sound/pci/hda/hda_i915.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_i915.h b/sound/pci/hda/hda_i915.h
index bfd835f..e6072c6 100644
--- a/sound/pci/hda/hda_i915.h
+++ b/sound/pci/hda/hda_i915.h
@@ -18,10 +18,12 @@
#ifdef CONFIG_SND_HDA_I915
int hda_display_power(bool enable);
+void haswell_set_bclk(struct azx *chip);
int hda_i915_init(void);
int hda_i915_exit(void);
#else
static inline int hda_display_power(bool enable) { return 0; }
+static inline void haswell_set_bclk(struct azx *chip) { return; }
static inline int hda_i915_init(void)
{
return -ENODEV;
OpenPOWER on IntegriCloud