diff options
author | Libin Yang <libin.yang@intel.com> | 2015-09-02 14:11:38 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-09-25 10:04:40 +0200 |
commit | 5334240c30cb0058fa8c373bf0d653337833230d (patch) | |
tree | 03a645952a1c82b95fb6c08abdb131134a339204 /include/drm | |
parent | 1f93e4a96c9109378204c147b3eec0d0e8100fde (diff) | |
download | linux-5334240c30cb0058fa8c373bf0d653337833230d.tar.bz2 |
drm/i915: Add audio sync_audio_rate callback
Add the sync_audio_rate callback.
With the callback, audio driver can trigger
i915 driver to set the proper N/CTS or N/M
based on different sample rates.
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 'include/drm')
-rw-r--r-- | include/drm/i915_component.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/drm/i915_component.h b/include/drm/i915_component.h index b2d56dd483d9..e6d35d7239c0 100644 --- a/include/drm/i915_component.h +++ b/include/drm/i915_component.h @@ -33,6 +33,13 @@ struct i915_audio_component { void (*put_power)(struct device *); void (*codec_wake_override)(struct device *, bool enable); int (*get_cdclk_freq)(struct device *); + /** + * @sync_audio_rate: set n/cts based on the sample rate + * + * Called from audio driver. After audio driver sets the + * sample rate, it will call this function to set n/cts + */ + int (*sync_audio_rate)(struct device *, int port, int rate); } *ops; const struct i915_audio_component_audio_ops { |