Re: [Intel-gfx] [PATCH v6 1/4] drm/i915: Add audio sync_audio_rate callback

2015-09-02 Thread Jani Nikula
On Wed, 02 Sep 2015, libin.y...@intel.com wrote:
> From: Libin Yang 
>
> 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 

Reviewed-by: Jani Nikula 

> ---
>  include/drm/i915_component.h | 7 +++
>  1 file changed, 7 insertions(+)
>
> diff --git a/include/drm/i915_component.h b/include/drm/i915_component.h
> index c9a8b64..8ad6f1b 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;
>  };
>  
> -- 
> 1.9.1
>

-- 
Jani Nikula, Intel Open Source Technology Center
___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx


[Intel-gfx] [PATCH v6 1/4] drm/i915: Add audio sync_audio_rate callback

2015-09-01 Thread libin . yang
From: Libin Yang 

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 
---
 include/drm/i915_component.h | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/include/drm/i915_component.h b/include/drm/i915_component.h
index c9a8b64..8ad6f1b 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;
 };
 
-- 
1.9.1

___
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx