drm/i915: implement sync_audio_rate callback
authorLibin Yang <libin.yang@intel.com>
Wed, 2 Sep 2015 06:11:39 +0000 (14:11 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 25 Sep 2015 08:04:53 +0000 (10:04 +0200)
commit4a21ef7d1d2b19fdd986783e9ef53bd15fdc87bf
tree7f9e4e8391345f86ba5e63be5a7e6257840bcb5f
parent5334240c30cb0058fa8c373bf0d653337833230d
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>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_audio.c