summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_dma.c
diff options
context:
space:
mode:
authorLibin Yang <libin.yang@intel.com>2015-09-02 14:11:39 +0800
committerTakashi Iwai <tiwai@suse.de>2015-09-25 10:04:53 +0200
commit4a21ef7d1d2b19fdd986783e9ef53bd15fdc87bf (patch)
tree7f9e4e8391345f86ba5e63be5a7e6257840bcb5f /drivers/gpu/drm/i915/i915_dma.c
parent5334240c30cb0058fa8c373bf0d653337833230d (diff)
downloadop-kernel-dev-4a21ef7d1d2b19fdd986783e9ef53bd15fdc87bf.zip
op-kernel-dev-4a21ef7d1d2b19fdd986783e9ef53bd15fdc87bf.tar.gz
drm/i915: implement sync_audio_rate callback
HDMI audio may not work at some frequencies with the HW provided N/CTS. This patch sets the proper N value for the given audio sample rate at the impacted frequencies. At other frequencies, it will use the N/CTS value which HW provides. Signed-off-by: Libin Yang <libin.yang@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r--drivers/gpu/drm/i915/i915_dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index ab37d11..990f656 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -832,6 +832,7 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
mutex_init(&dev_priv->sb_lock);
mutex_init(&dev_priv->modeset_restore_lock);
mutex_init(&dev_priv->csr_lock);
+ mutex_init(&dev_priv->av_mutex);
intel_pm_setup(dev);
OpenPOWER on IntegriCloud