aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_i915.h
diff options
context:
space:
mode:
authorMengdong Lin <mengdong.lin@intel.com>2014-07-03 05:02:23 -0400
committerTakashi Iwai <tiwai@suse.de>2014-07-04 01:47:22 -0400
commite4d9e513dedb5ac4e166c1053314fa935ddecc8c (patch)
tree7c5159dd08ef78189302ef7669ddd532b6dd09cc /sound/pci/hda/hda_i915.h
parentc149dcb5c60bfea8871f16dfcc0690255eeb825f (diff)
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 bfd835f8f1aa..e6072c627583 100644
--- a/sound/pci/hda/hda_i915.h
+++ b/sound/pci/hda/hda_i915.h
@@ -18,10 +18,12 @@
18 18
19#ifdef CONFIG_SND_HDA_I915 19#ifdef CONFIG_SND_HDA_I915
20int hda_display_power(bool enable); 20int hda_display_power(bool enable);
21void haswell_set_bclk(struct azx *chip);
21int hda_i915_init(void); 22int hda_i915_init(void);
22int hda_i915_exit(void); 23int hda_i915_exit(void);
23#else 24#else
24static inline int hda_display_power(bool enable) { return 0; } 25static inline int hda_display_power(bool enable) { return 0; }
26static inline void haswell_set_bclk(struct azx *chip) { return; }
25static inline int hda_i915_init(void) 27static inline int hda_i915_init(void)
26{ 28{
27 return -ENODEV; 29 return -ENODEV;