提交 5334240c 编写于 作者: L Libin Yang 提交者: Takashi Iwai

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: NLibin Yang <libin.yang@intel.com>
Reviewed-by: NJani Nikula <jani.nikula@intel.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 1f93e4a9
...@@ -33,6 +33,13 @@ struct i915_audio_component { ...@@ -33,6 +33,13 @@ struct i915_audio_component {
void (*put_power)(struct device *); void (*put_power)(struct device *);
void (*codec_wake_override)(struct device *, bool enable); void (*codec_wake_override)(struct device *, bool enable);
int (*get_cdclk_freq)(struct device *); 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; } *ops;
const struct i915_audio_component_audio_ops { const struct i915_audio_component_audio_ops {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册