[Intel-gfx] [PATCH v5 3/3] ALSA: Documentation about HDA DP MST pin init and connection

2017-01-12 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> Add the documentation about HD-audio DP MST: 1. pin initialization 2. device entry connection list Reviewed-by: Takashi Iwai <ti...@suse.de> Signed-off-by: Libin Yang <libin.y...@intel.com> --- Documentation/sound/hd-aud

[Intel-gfx] [PATCH v5 1/3] ALSA: hda - add DP mst verb support

2017-01-12 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> Add snd_hda_get_dev_select() and snd_hda_set_dev_select() functions for DP MST audio support. Reviewed-by: Takashi Iwai <ti...@suse.de> Signed-off-by: Libin Yang <libin.y...@linux.intel.com> --- sound/pci/hd

[Intel-gfx] [PATCH v5 2/3] ALSA: hda - add DP MST audio support

2017-01-12 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> This patch adds the DP MST audio support on i915 platform and it will enable dyn_pcm_assign feature. DP MST supports several device entry on the same port and each device entry can map to one pcm stream. For example, on i915, there are

[Intel-gfx] [PATCH v5 0/3] support DP MST audio

2017-01-12 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> This patchset starts to support DP MST audio. change log: v4: refine some comments in 0001 and 0002 patches. refine the 0003 patch for the new ALSA-Configuration document v5: add Takashi's Reviewed-by Libin Yang (3): ALSA: hda - add DP ms

[Intel-gfx] [PATCH 2/2] drm/i915/audio: extend audio sync rate support for DP MST

2016-11-30 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> Remove the type judgement in i915_audio_component_sync_audio_rate(). Audio rate sync is necessary for all i915 digital audio now. Signed-off-by: Libin Yang <libin.y...@intel.com> --- drivers/gpu/drm/i915/intel_audio.c | 4 +--- 1 file changed,

[Intel-gfx] [PATCH 1/2] drm/i915/audio: extend get_saved_enc() to support more scenarios

2016-11-30 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> In initialization, audio driver will call functions get_eld() and etc. But at that time, audio driver may not know whether it is DP MST or not. In the original function get_saved_enc(), if it is DP MST, it requires to set the pipe to the correct

[Intel-gfx] [PATCH 3/3] drm/i915: enable dp mst audio

2016-11-28 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> This patch adds support for DP MST audio in i915. Enable audio codec when DP MST is enabled if has_audio flag is set. Disable audio codec when DP MST is disabled if has_audio flag is set. Another separated patches to support DP MST

[Intel-gfx] [PATCH 2/3] drm/i915: abstract ddi being audio enabled

2016-11-28 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> Prepare for using the same code for judging ddi being audio enabled. No functional changes. Signed-off-by: Libin Yang <libin.y...@intel.com> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandi...@intel.com> Reviewed-by: Lyude <cp...@r

[Intel-gfx] [PATCH 1/3] drm/i915/debugfs: add dp mst info

2016-11-28 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> Add the DP MST info dump in debugfs. Signed-off-by: Libin Yang <libin.y...@intel.com> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandi...@intel.com> Reviewed-by: Lyude <cp...@redhat.com> Signed-off-by: Rodrigo Vivi <rodrigo.v

[Intel-gfx] [PATCH 1/2] drm/i915/audio: extend get_saved_enc() to support more scenarios

2016-11-14 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> When bootup, audio driver may not know it is MST or not. The audio driver will poll all the port & pipe combinations in either MST or Non-MST mode. get_saved_enc() should handle this situation. Signed-off-by: Libin Yang <libin.y...@li

[Intel-gfx] [PATCH 2/2] drm/i915/audio: Extend audio sync rate support for DP MST

2016-11-14 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> This patch extends the support of audio sample rate sync up to DP MST. Signed-off-by: Libin Yang <libin.y...@intel.com> --- drivers/gpu/drm/i915/intel_audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/

[Intel-gfx] [PATCH v3] drm/i915: start adding dp mst audio

2016-11-13 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> (This patch is developed by Dave Airlie <airl...@redhat.com> originally) This patch adds support for DP MST audio in i915. Enable audio codec when DP MST is enabled if has_audio flag is set. Disable audio codec when DP MST is disabled

[Intel-gfx] [PATCH v3] drm/i915/audio: fix hdmi audio noise issue

2016-11-11 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> Some monitors will have noise or even no sound after applying the patch 6014ac12. In patch 6014ac12, it will reset the cts value to 0 for HDMI. However, we need to disable Enable CTS or M Prog bit. This is the initial setting after HW reset.

[Intel-gfx] [PATCH v2] drm/i915/audio: fix hdmi audio noise issue

2016-11-09 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> Some monitors will have noise or even no sound after applying the patch 6014ac12. In patch 6014ac12, it will reset the cts value to 0 for HDMI. However, we need to disable Enable CTS or M Prog bit. This is the initial setting after HW reset.

[Intel-gfx] [PATCH] drm/i915/audio: fix hdmi audio noise issue

2016-11-09 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> This issue is caused by: 6014ac12: drm/i915/audio: set proper N/M in modeset Some special monitors will have noise or even no sound after applying the patch 6014ac12. In patch 6014ac12, it will reset the cts value to 0 for HDMI. However, we need d

[Intel-gfx] [PATCH] drm/i915/audio: extend get_saved_enc() to support more scenarios

2016-09-26 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> When bootup, audio driver may not know it is MST or not. The audio driver will poll all the port & pipe combinations in either MST or Non-MST mode. get_saved_enc() should handle this situation. Signed-off-by: Libin Yang <libin.y...@li

[Intel-gfx] [PATCH v4 1/3] drm/i915: set proper N/M in modeset

2016-08-18 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> When modeset occurs and the LS_CLK is set to some special values in DP mode, the N/M need to be set manually if audio is playing. Otherwise the first several seconds may be silent in audio playback. The relationship of Maud and Naud is exp

[Intel-gfx] [PATCH v4 2/3] drm/i915: set proper N/MCTS on more platforms

2016-08-18 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> This patch applies setting proper N/M, N/CTS on more platforms. Signed-off-by: Libin Yang <libin.y...@linux.intel.com> --- drivers/gpu/drm/i915/intel_audio.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dri

[Intel-gfx] [PATCH v4 3/3] drm/i915: HDMI audio gets the TMDS clock by crtc_clock

2016-08-18 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> HDMI audio should use crtc_clock to get the TMDS clock. This patch renames mode to adjusted_mode to unify the name. Signed-off-by: Libin Yang <libin.y...@linux.intel.com> --- drivers/gpu/drm/i915/intel_audio.c | 14 +++--- 1 fil

[Intel-gfx] [PATCH v4 0/3] drm/i915: fix some audio support 4K resolution issues

2016-08-18 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> changelog: v1: initial patches v2: change to use crtc->config->port_clock instead of mode->clock for dp change to use mode->crtc_clock instead of mode->clock rename mode to adjusted_mode v3: add support for 270MHz

[Intel-gfx] [PATCH v3 3/3] drm/i915: HDMI audio gets the TMDS clock by crtc_clock

2016-08-04 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> HDMI audio should use crtc_clock to get the TMDS clock. Besides, this patch renames mode to adjusted_mode to unify the name. Signed-off-by: Libin Yang <libin.y...@linux.intel.com> --- drivers/gpu/drm/i915/intel_audio.c | 14 +++---

[Intel-gfx] [PATCH v3 2/3] drm/i915: set proper N/MCTS on more platforms

2016-08-04 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> This patch applies setting proper N/M, N/CTS on more platforms. Signed-off-by: Libin Yang <libin.y...@linux.intel.com> --- drivers/gpu/drm/i915/intel_audio.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dri

[Intel-gfx] [PATCH v3 1/3] drm/i915: set proper N/M in modeset

2016-08-04 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> When modeset occurs and the LS_CLK is set to some special values in DP mode, the N/M need to be set manually if audio is playing. Otherwise the first several seconds may be silent in audio playback. The relationship of Maud and Naud is exp

[Intel-gfx] [PATCH] drm/i915: HDMI audio gets the TMDS clock by crtc_clock

2016-08-02 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> HDMI audio should use crtc_clock to get the TMDS clock. Besides, this patch renames mode to adjusted_mode to unify the name. Signed-off-by: Libin Yang <libin.y...@linux.intel.com> --- drivers/gpu/drm/i915/intel_audio.c | 14 +++---

[Intel-gfx] [PATCH] drm/i915: set proper N/M in modeset

2016-08-01 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> When modeset occurs and the LS_CLK is set to some special values in DP mode, the N/M need to be set manually if audio is playing. The relationship of Maud and Naud is expressed in the following equation: Maud/Naud = 512 * fs / f_LS_Clk Please

[Intel-gfx] [PATCH] drm/i915: set proper N/M in modeset

2016-07-14 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> When modeset occurs and the LS_CLK is set to some special values in DP mode, the N/M need to be set manually if audio is playing. Also, the patch applies commit 7e8275c2f2bb ("drm/i915: set proper N/CTS in modeset") to APL platf

[Intel-gfx] [PATCH] drm/i915: intel_audio clear eld buf when disconnecting monitor

2016-03-20 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> When disconnecting monitor, dev_priv->dig_port_map[port] will be set NULL, which causes eld will not be updated in i915_audio_component_get_eld(). This patch clears the eld buf when dev_priv->dig_port_map[port] is NULL. Signed-off-by

[Intel-gfx] [alsa-devel] [PATCH 1/2] ALSA: hda - hdmi add wmb barrier for audio component

2016-03-03 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> To make sure audio_ptr is set before intel_audio_codec_enable() or intel_audio_codec_disable() calling pin_eld_notify(), this patch adds wmb barrier to prevent optimizing. Signed-off-by: Libin Yang <libin.y...@linux.intel.com> --- s

[Intel-gfx] [PATCH] drm/i915: add audio_ptr pointer check

2016-03-01 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> check to make sure audio_ptr is not NULL before using it. Signed-off-by: Libin Yang <libin.y...@linux.intel.com> --- drivers/gpu/drm/i915/intel_audio.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/

[Intel-gfx] [PATCH 1/2] drm/i915: fix get digital port issue in intel_audio

2016-01-05 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> For DP MST, use enc_to_mst(encoder)->primary to get intel_digital_port, instead of using enc_to_dig_port(encoder). Signed-off-by: Libin Yang <libin.y...@linux.intel.com> --- drivers/gpu/drm/i915/intel_audio.c | 21 ++

[Intel-gfx] [PATCH 2/2] drm/i915: add dp mst judgement in hsw_audio_codec_enable

2016-01-05 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> hsw platforms supports DP MST while ilk doesn't. This patch fixes the bug. Signed-off-by: Libin Yang <libin.y...@linux.intel.com> --- drivers/gpu/drm/i915/intel_audio.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-)

Re: [Intel-gfx] ✗ warning: Fi.CI.BAT

2015-12-28 Thread Libin Yang
Sorry to interrupt. I got this email sent to me. It seems one of my patch causes this issue? Does anyone know how to find which patch causes this issue from the below message? Thanks. Best Regards, Libin On 12/23/2015 03:49 PM, Patchwork wrote: == Summary == Built on

[Intel-gfx] [PATCH 2/2] drm/i915: add dp mst judgement in hsw_audio_codec_enable

2015-12-22 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> hsw platforms supports DP MST while ilk doesn't. This patch fixes the bug. Signed-off-by: Libin Yang <libin.y...@linux.intel.com> --- drivers/gpu/drm/i915/intel_audio.c | 16 +--- 1 file changed, 9 insertions(+), 7 deleti

[Intel-gfx] [PATCH 1/2] drm/i915: fix get digital port issue in intel_audio

2015-12-22 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> For DP MST, use enc_to_mst(encoder)->primary to get intel_digital_port, instead of using enc_to_dig_port(encoder). Signed-off-by: Libin Yang <libin.y...@linux.intel.com> --- drivers/gpu/drm/i915/intel_audio.c | 21 ++

Re: [Intel-gfx] [alsa-devel] [PATCH V4 2/2] drm/i915: start adding dp mst audio

2015-12-21 Thread Libin Yang
Sorry, I missed the emails. On 12/11/2015 09:58 PM, Takashi Iwai wrote: On Fri, 11 Dec 2015 11:43:51 +0100, Takashi Iwai wrote: On Fri, 11 Dec 2015 07:07:53 +0100, Libin Yang wrote: diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c index 9aa83e7

Re: [Intel-gfx] [PATCH V4 2/2] drm/i915: start adding dp mst audio

2015-12-10 Thread Libin Yang
Add Takashi and ALSA mail list. On 12/10/2015 05:02 PM, Daniel Vetter wrote: On Tue, Dec 08, 2015 at 04:01:20PM +0800, Libin Yang wrote: Hi all, Any comments on the patches? Sorry, simply fell through the cracks since Ander is on vacation. Takashi is working on some cleanup patches to have

Re: [Intel-gfx] [PATCH V4 1/2] dp/mst: add SDP stream support

2015-12-10 Thread Libin Yang
Add Takashi and ALSA mailing list Best Regards, Libin On 12/02/2015 02:09 PM, libin.y...@linux.intel.com wrote: From: Libin Yang <libin.y...@linux.intel.com> This adds code to initialise the SDP streams for a sink in the simplest ordering. I've no idea how you'd want to control the or

Re: [Intel-gfx] [PATCH V4 2/2] drm/i915: start adding dp mst audio

2015-12-08 Thread Libin Yang
Hi all, Any comments on the patches? Best Regards, Libin On 12/02/2015 02:09 PM, libin.y...@linux.intel.com wrote: From: Libin Yang <libin.y...@linux.intel.com> This patch adds support for DP MST audio in i915. Enable audio codec when DP MST is enabled if has_audio flag is set. D

Re: [Intel-gfx] [PATCH V3 2/2] drm/i915: start adding dp mst audio

2015-12-01 Thread Libin Yang
On 11/27/2015 08:29 PM, Ander Conselvan De Oliveira wrote: On Wed, 2015-11-25 at 13:19 +0800, libin.y...@linux.intel.com wrote: From: Libin Yang <libin.y...@linux.intel.com> This patch adds support for DP MST audio in i915. The title says "start adding" so a note of what

[Intel-gfx] [PATCH V4 2/2] drm/i915: start adding dp mst audio

2015-12-01 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> This patch adds support for DP MST audio in i915. Enable audio codec when DP MST is enabled if has_audio flag is set. Disable audio codec when DP MST is disabled if has_audio flag is set. Another separated patches to support DP MST

[Intel-gfx] [PATCH V4 1/2] dp/mst: add SDP stream support

2015-12-01 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> This adds code to initialise the SDP streams for a sink in the simplest ordering. I've no idea how you'd want to control the ordering at this level, so don't bother until someone comes up with a use case. Reviewed-by: Ander Conselvan de Ol

[Intel-gfx] [PATCH V3 1/2] dp/mst: add SDP stream support

2015-11-24 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> This adds code to initialise the SDP streams for a sink in the simplest ordering. I've no idea how you'd want to control the ordering at this level, so don't bother until someone comes up with a use case. Signed-off-by: Libin Yang &l

[Intel-gfx] [PATCH V3 2/2] drm/i915: start adding dp mst audio

2015-11-24 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> This patch adds support for DP MST audio in i915. Enable audio codec when DP MST is enabled if has_audio flag is set. Disable audio codec when DP MST is disabled if has_audio flag is set. Signed-off-by: Libin Yang <libin.y...@linux.intel.co

Re: [Intel-gfx] [V2 PATCH 2/2] drm/i915: start adding dp mst audio

2015-11-23 Thread Libin Yang
+0800, libin.y...@linux.intel.com wrote: From: Libin Yang <libin.y...@linux.intel.com> This patch adds support for DP MST audio in i915. Enable audio codec when DP MST is enabled if has_audio flag is set. Disable audio codec when DP MST is disabled if has_audio flag is set. Signed-off-by:

Re: [Intel-gfx] [V2 PATCH 2/2] drm/i915: start adding dp mst audio

2015-11-22 Thread Libin Yang
On 11/19/2015 07:07 PM, Ander Conselvan De Oliveira wrote: (Cc'ing Paulo for the audio power domain question) On Wed, 2015-11-11 at 13:33 +0800, libin.y...@linux.intel.com wrote: From: Libin Yang <libin.y...@linux.intel.com> This patch adds support for DP MST audio in i915. Enable

[Intel-gfx] [V2 PATCH 1/2] dp/mst: add SDP stream support

2015-11-10 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> This adds code to initialise the SDP streams for a sink in the simplest ordering. I've no idea how you'd want to control the ordering at this level, so don't bother until someone comes up with a use case. Signed-off-by: Libin Yang &l

[Intel-gfx] [V2 PATCH 2/2] drm/i915: start adding dp mst audio

2015-11-10 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> This patch adds support for DP MST audio in i915. Enable audio codec when DP MST is enabled if has_audio flag is set. Disable audio codec when DP MST is disabled if has_audio flag is set. Signed-off-by: Libin Yang <libin.y...@linux.intel.co

[Intel-gfx] [PATCH 2/2] drm/i915: start adding dp mst audio

2015-11-06 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> This patch adds support for DP MST audio in i915. Enable audio codec when DP MST is enabled if has_audio flag is set. Disable audio codec when DP MST is disabled if has_audio flag is set. Signed-off-by: Libin Yang <libin.y...@linux.intel.co

[Intel-gfx] [PATCH 1/2] dp/mst: add SDP stream support

2015-11-06 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> This adds code to initialise the SDP streams for a sink in the simplest ordering. I've no idea how you'd want to control the ordering at this level, so don't bother until someone comes up with a use case. Signed-off-by: Libin Yang &l

[Intel-gfx] [PATCH 0/2] drm/i915 DP MST audio support in i915

2015-11-06 Thread libin . yang
From: Libin Yang <libin.y...@linux.intel.com> These patches add support for DP MST audio in i915 driver. Patches have been tested on BDW and the result show it won't impact the DP SST and HDMI audio. These patches are ported from Dave's patches. Please check Dave's git tree for original p

[Intel-gfx] [PATCH 3/3] drm/i915: add DOC for i915_component

2015-10-01 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> Add the DOC for i915_component.h. Explain the struct i915_audio_component_ops and struct i915_audio_component_audio_ops usage. Signed-off-by: Libin Yang <libin.y...@intel.com> --- drivers/gpu/drm/i915/intel_audio.c | 5 + 1 file changed,

[Intel-gfx] [PATCH 2/3] drm/i915: DocBook add i915_component.h support

2015-10-01 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> Add the item of i915_component.h in DocBook Signed-off-by: Libin Yang <libin.y...@intel.com> --- Documentation/DocBook/drm.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/dr

[Intel-gfx] [PATCH v2] drm/i915: set proper N/CTS in modeset

2015-09-24 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> When modeset occurs and the TMDS frequency is set to some speical values, the N/CTS need to be set manually if audio is playing. Signed-off-by: Libin Yang <libin.y...@intel.com> --- drivers/gpu/drm/i915/intel_

[Intel-gfx] [PATCH] drm/i915: set proper N/CTS in modeset

2015-09-10 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> When modeset occurs and the TMDS frequency is set to some speical values, the N/CTS need to be set manually if audio is playing. Signed-off-by: Libin Yang <libin.y...@intel.com> --- drivers/gpu/drm/i915/intel_

[Intel-gfx] [PATCH] drm/i915: set proper N/CTS in modeset

2015-09-10 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> When modeset occurs and the TMDS frequency is set to some speical values, the N/CTS need to be set manually if audio is playing. Signed-off-by: Libin Yang <libin.y...@intel.com> --- drivers/gpu/drm/i915/intel_

[Intel-gfx] [PATCH v6 2/4] drm/i915: implement sync_audio_rate callback

2015-09-02 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> 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. Sign

[Intel-gfx] [PATCH v6 4/4] drm/i915: set proper N/CTS in modeset

2015-09-02 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> When modeset occurs and the TMDS frequency is set to some speical values, the N/CTS need to be set manually if audio is playing. Signed-off-by: Libin Yang <libin.y...@intel.com> --- drivers/gpu/drm/i915/i915_reg.h| 8 drivers/

[Intel-gfx] [PATCH v6 3/4] ALSA: hda - display audio call sync_audio_rate callback

2015-09-02 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> For display audio, call the sync_audio_rate callback function to do the synchronization between gfx driver and audio driver. Signed-off-by: Libin Yang <libin.y...@intel.com> Reviewed-by: Takashi Iwai <ti...@suse.de> --- sound/pci/hda

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

2015-09-02 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> 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.y...@intel.com> --- include/drm/i915_component.h |

[Intel-gfx] [PATCH] drm/i915: add kerneldoc for i915_audio_component

2015-09-02 Thread libin . yang
From: Libin Yang <libin.y...@intel.com> Add the kerneldoc for i915_audio_component in i915_component.h Signed-off-by: Libin Yang <libin.y...@intel.com> --- include/drm/i915_component.h | 39 --- 1 file changed, 24 insertions(+), 15 deletions(-)

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

2015-08-18 Thread libin . yang
From: Libin Yang libin.y...@intel.com 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.y...@intel.com --- include/drm/i915_component.h | 1 + 1 file changed

[Intel-gfx] [PATCH v5 2/4] drm/i915: implement sync_audio_rate callback

2015-08-18 Thread libin . yang
From: Libin Yang libin.y...@intel.com 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

[Intel-gfx] [PATCH v5 4/4] drm/i915: set proper N/CTS in modeset

2015-08-18 Thread libin . yang
From: Libin Yang libin.y...@intel.com When modeset occurs and the TMDS frequency is set to some speical values, the N/CTS need to be set manually if audio is playing. Signed-off-by: Libin Yang libin.y...@intel.com --- drivers/gpu/drm/i915/i915_reg.h| 8 drivers/gpu/drm/i915

[Intel-gfx] [PATCH v5 3/4] ALSA: hda - display audio call sync_audio_rate callback

2015-08-18 Thread libin . yang
From: Libin Yang libin.y...@intel.com For display audio, call the sync_audio_rate callback function to do the synchronization between gfx driver and audio driver. Signed-off-by: Libin Yang libin.y...@intel.com Reviewed-by: Takashi Iwai ti...@suse.de --- sound/pci/hda/patch_hdmi.c | 19

[Intel-gfx] [PATCH v4 3/4] ALSA: hda - display audio call sync_audio_rate callback

2015-08-18 Thread libin . yang
From: Libin Yang libin.y...@intel.com For display audio, call the sync_audio_rate callback function to do the synchronization between gfx driver and audio driver. Signed-off-by: Libin Yang libin.y...@intel.com Reviewed-by: Takashi Iwai ti...@suse.de --- sound/pci/hda/patch_hdmi.c | 19

[Intel-gfx] [PATCH v4 2/4] drm/i915: implement sync_audio_rate callback

2015-08-18 Thread libin . yang
From: Libin Yang libin.y...@intel.com 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

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

2015-08-18 Thread libin . yang
From: Libin Yang libin.y...@intel.com 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.y...@intel.com --- include/drm/i915_component.h | 1 + 1 file changed

[Intel-gfx] [PATCH v4 4/4] drm/i915: set proper N/CTS in modeset

2015-08-18 Thread libin . yang
From: Libin Yang libin.y...@intel.com When modeset occurs and the TMDS frequency is set to some speical values, the N/CTS need to be set manually if audio is playing. Signed-off-by: Libin Yang libin.y...@intel.com --- drivers/gpu/drm/i915/i915_reg.h| 8 drivers/gpu/drm/i915

[Intel-gfx] [PATCH v3 4/4] drm/i915: set proper N/CTS in modeset

2015-08-17 Thread libin . yang
From: Libin Yang libin.y...@intel.com When modeset occurs and the TMDS frequency is set to some speical values, the N/CTS need to be set manually if audio is playing. Signed-off-by: Libin Yang libin.y...@intel.com --- drivers/gpu/drm/i915/i915_reg.h| 8 drivers/gpu/drm/i915

[Intel-gfx] [PATCH v3 3/4] ALSA: hda - display audio call sync_audio_rate callback

2015-08-17 Thread libin . yang
From: Libin Yang libin.y...@intel.com For display audio, call the sync_audio_rate callback function to do the synchronization between gfx driver and audio driver. Signed-off-by: Libin Yang libin.y...@intel.com --- sound/pci/hda/patch_hdmi.c | 19 +++ 1 file changed, 19

[Intel-gfx] [PATCH v3 2/4] drm/i915: implement sync_audio_rate callback

2015-08-17 Thread libin . yang
From: Libin Yang libin.y...@intel.com 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

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

2015-08-17 Thread libin . yang
From: Libin Yang libin.y...@intel.com 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.y...@intel.com --- include/drm/i915_component.h | 1 + 1 file changed

[Intel-gfx] [PATCH v2 1/4] drm/i915: Add audio set_ncts callback

2015-08-10 Thread libin . yang
From: Libin Yang libin.y...@intel.com Add the set_ncts callback. With the callback, audio driver can trigger i915 driver to set the proper N/CTS based on different sample rates. Signed-off-by: Libin Yang libin.y...@intel.com --- include/drm/i915_component.h | 2 ++ 1 file changed, 2 insertions

[Intel-gfx] [PATCH v4 4/4] drm/i915: set proper N/CTS in modeset

2015-08-10 Thread libin . yang
From: Libin Yang libin.y...@intel.com When modeset occurs and the TMDS frequency is set to some speical value, the N/CTS need to be set manually if audio is playing. Signed-off-by: Libin Yang libin.y...@intel.com --- drivers/gpu/drm/i915/i915_reg.h| 6 ++ drivers/gpu/drm/i915

[Intel-gfx] [PATCH v2 2/4] drm/i915: implement set_ncts callback

2015-08-10 Thread libin . yang
From: Libin Yang libin.y...@intel.com Display 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

[Intel-gfx] [PATCH v3 3/4] ALSA: hda - display audio call ncts callback

2015-08-10 Thread libin . yang
From: Libin Yang libin.y...@intel.com On some Intel platforms, display audio need set N/CTS manually at some TMDS frequencies. Signed-off-by: Libin Yang libin.y...@intel.com --- sound/pci/hda/patch_hdmi.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/sound/pci/hda

[Intel-gfx] [PATCH 4/4] drm/i915: set proper N/CTS in modeset

2015-08-06 Thread libin . yang
From: Libin Yang libin.y...@intel.com When modeset occurs and the TMDS frequency is set to some speical value, the N/CTS need to be set manually if audio is playing. Signed-off-by: Libin Yang libin.y...@intel.com --- drivers/gpu/drm/i915/i915_reg.h| 6 ++ drivers/gpu/drm/i915

[Intel-gfx] [PATCH 2/4] drm/i915: implement set_ncts callback

2015-08-06 Thread libin . yang
From: Libin Yang libin.y...@intel.com Display 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

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

2015-08-06 Thread libin . yang
From: Libin Yang libin.y...@intel.com Add the set_ncts callback. With the callback, audio driver can trigger i915 driver to set the proper N/CTS based on different sample rates. Signed-off-by: Libin Yang libin.y...@intel.com --- include/drm/i915_component.h | 2 ++ 1 file changed, 2 insertions

[Intel-gfx] [PATCH 3/4] ALSA: hda - display audio call ncts callback

2015-08-06 Thread libin . yang
From: Libin Yang libin.y...@intel.com On some Intel platforms, display audio need set N/CTS manually at some TMDS frequencies. Signed-off-by: Libin Yang libin.y...@intel.com --- sound/pci/hda/patch_hdmi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/sound/pci/hda/patch_hdmi.c b

[Intel-gfx] [PATCH] tools/intel_audio_dump: add details dump for Cherryview

2015-01-14 Thread libin . yang
From: Libin Yang libin.y...@intel.com This patch adds the details dump for audio registers of Cherryview. Signed-off-by: Libin Yang libin.y...@intel.com --- tools/intel_audio_dump.c | 50 1 file changed, 50 insertions(+) diff --git a/tools

[Intel-gfx] [PATCH] intel_audio_dump: add support for Cherryview

2015-01-06 Thread libin . yang
From: Libin Yang libin.y...@intel.com This patch adds support for dumping audio registers of Cherryview. Signed-off-by: Libin Yang libin.y...@intel.com --- lib/intel_reg.h | 2 ++ tools/intel_audio_dump.c | 89 ++-- 2 files changed, 88

[Intel-gfx] [PATCH 1/2] drm/i915/hdmi: call intel_hdmi_prepare for CHV

2014-07-29 Thread libin . yang
From: Libin Yang libin.y...@intel.com call the intel_hdmi_prepare() in chv_hdmi_pre_enable() for hdmi audio. Signed-off-by: Libin Yang libin.y...@intel.com --- drivers/gpu/drm/i915/intel_hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu