[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 Add the documentation about HD-audio DP MST: 1. pin initialization 2. device entry connection list Reviewed-by: Takashi Iwai Signed-off-by: Libin Yang --- Documentation/sound/hd-audio/dp-mst.rst | 17 + 1 file changed, 17 insertions(+) diff --git a

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

2017-01-12 Thread libin . yang
From: Libin Yang Add snd_hda_get_dev_select() and snd_hda_set_dev_select() functions for DP MST audio support. Reviewed-by: Takashi Iwai Signed-off-by: Libin Yang --- sound/pci/hda/hda_codec.c | 72 --- sound/pci/hda/hda_codec.h | 3 ++ 2 files

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

2017-01-12 Thread libin . yang
From: Libin Yang 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 3 pins, and each pin has 3 device entries

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

2017-01-12 Thread libin . yang
From: Libin Yang 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 mst verb support ALSA: hda

[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 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 --- drivers/gpu/drm/i915/intel_audio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers

[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 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 value, otherwise, pipe to be -1

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

2016-11-28 Thread libin . yang
From: Libin Yang 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 audio will be implemented in audio driver

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

2016-11-28 Thread libin . yang
From: Libin Yang Prepare for using the same code for judging ddi being audio enabled. No functional changes. Signed-off-by: Libin Yang Signed-off-by: Dhinakaran Pandiyan Reviewed-by: Lyude Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_ddi.c | 20 +++- drivers

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

2016-11-28 Thread libin . yang
From: Libin Yang Add the DP MST info dump in debugfs. Signed-off-by: Libin Yang Signed-off-by: Dhinakaran Pandiyan Reviewed-by: Lyude Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_debugfs.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a

[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 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 --- drivers/gpu/drm/i915/intel_audio.c

[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 This patch extends the support of audio sample rate sync up to DP MST. Signed-off-by: Libin Yang --- drivers/gpu/drm/i915/intel_audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915

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

2016-11-13 Thread libin . yang
From: Libin Yang (This patch is developed by Dave Airlie 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 if has_audio flag is set. Another separated patches to

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

2016-11-11 Thread libin . yang
From: Libin Yang 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. Fixes: 6014ac122ed0 ("drm

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

2016-11-09 Thread libin . yang
From: Libin Yang 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. Fixes: 6014ac122ed0 ("drm

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

2016-11-09 Thread libin . yang
From: Libin Yang 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 disable Enable CTS or M Prog

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

2016-09-26 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/intel_audio.c

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

2016-08-17 Thread libin . yang
From: Libin Yang 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 expressed in the following equation: Maud

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

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

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

2016-08-17 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/intel_audio.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu

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

2016-08-17 Thread libin . yang
From: Libin Yang 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 add more platforms support

[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 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 --- drivers/gpu/drm/i915/intel_audio.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a

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

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

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

2016-08-04 Thread libin . yang
From: Libin Yang 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 expressed in the following equation: Maud

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

2016-08-01 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/intel_audio.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a

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

2016-08-01 Thread libin . yang
From: Libin Yang 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 refer VESA DisplayPort Standard

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

2016-07-14 Thread libin . yang
From: Libin Yang 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 platform. Signed-off-by: Libin Yang --- d

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

2016-03-20 Thread libin . yang
From: Libin Yang 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: Libin Yang --- drivers/gpu/dr

[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 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 --- sound/pci/hda/patch_hdmi.c | 5 + 1 file changed, 5 insertions

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

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

[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 hsw platforms supports DP MST while ilk doesn't. This patch fixes the bug. Signed-off-by: Libin Yang --- drivers/gpu/drm/i915/intel_audio.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gp

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

2016-01-05 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/intel_audio.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --gi

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 7e671e69deffb88d60687d

[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 hsw platforms supports DP MST while ilk doesn't. This patch fixes the bug. Signed-off-by: Libin Yang --- drivers/gpu/drm/i915/intel_audio.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_audio.c b/driver

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

2015-12-22 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/intel_audio.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --gi

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 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 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

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 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 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

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 This patch adds support for DP MST audio in i915. The title says "start adding" so a note of what's still missing would be good

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

2015-12-01 Thread libin . yang
From: Libin Yang 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 audio will be implemented in audio driver

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

2015-12-01 Thread libin . yang
From: Libin Yang 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 Oliveira Signed-off

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

2015-11-24 Thread libin . yang
From: Libin Yang 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 Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915

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

2015-11-24 Thread libin . yang
From: Libin Yang 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 Signed-off-by: Dave Airlie -

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

2015-11-23 Thread Libin Yang
13:33 +0800, libin.y...@linux.intel.com wrote: From: Libin Yang 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 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 This patch adds support for DP MST audio in i915. Enable audio codec when DP MST is enabl

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

2015-11-10 Thread libin . yang
From: Libin Yang 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 Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915

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

2015-11-10 Thread libin . yang
From: Libin Yang 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 Signed-off-by: Dave Airlie -

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

2015-11-06 Thread libin . yang
From: Libin Yang 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 origin

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

2015-11-06 Thread libin . yang
From: Libin Yang 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 Signed-off-by: Dave Airlie -

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

2015-11-06 Thread libin . yang
From: Libin Yang 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 Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915

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

2015-10-01 Thread libin . yang
From: Libin Yang Add the item of i915_component.h in DocBook Signed-off-by: Libin Yang --- Documentation/DocBook/drm.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.tmpl index 4096781..9896f3d 100644 --- a/Documentation

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

2015-10-01 Thread libin . yang
From: Libin Yang Add the kerneldoc for i915_audio_component in i915_component.h Signed-off-by: Libin Yang --- include/drm/i915_component.h | 65 ++-- 1 file changed, 38 insertions(+), 27 deletions(-) diff --git a/include/drm/i915_component.h b/include

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

2015-10-01 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/intel_audio.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915

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

2015-09-24 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/intel_audio.c | 57 -- include/drm/i915_component.h

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

2015-09-10 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/intel_audio.c | 56 -- include/drm/i915_component.h

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

2015-09-10 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/intel_audio.c | 56 -- include/drm/i915_component.h

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

2015-09-01 Thread libin . yang
From: Libin Yang Add the kerneldoc for i915_audio_component in i915_component.h Signed-off-by: Libin Yang --- include/drm/i915_component.h | 39 --- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/include/drm/i915_component.h b/include/drm

[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

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

2015-09-01 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/i915_reg.h| 8 drivers/gpu/drm/i915/intel_audio.c | 40

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

2015-09-01 Thread libin . yang
From: Libin Yang 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 Reviewed-by: Takashi Iwai --- sound/pci/hda/patch_hdmi.c | 19 +++ 1 file changed, 19 insertions(+) diff

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

2015-09-01 Thread libin . yang
From: Libin Yang 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 --- drivers

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

2015-08-18 Thread libin . yang
From: Libin Yang 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 Reviewed-by: Takashi Iwai --- sound/pci/hda/patch_hdmi.c | 19 +++ 1 file changed, 19 insertions(+) diff

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

2015-08-18 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/i915_reg.h| 8 drivers/gpu/drm/i915/intel_audio.c | 40

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

2015-08-18 Thread libin . yang
From: Libin Yang 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 --- drivers

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

2015-08-18 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/include

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

2015-08-17 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/include

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

2015-08-17 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/i915_reg.h| 8 drivers/gpu/drm/i915/intel_audio.c | 40

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

2015-08-17 Thread libin . yang
From: Libin Yang 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 --- drivers

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

2015-08-17 Thread libin . yang
From: Libin Yang 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 Reviewed-by: Takashi Iwai --- sound/pci/hda/patch_hdmi.c | 19 +++ 1 file changed, 19 insertions(+) diff

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

2015-08-17 Thread libin . yang
From: Libin Yang 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 --- drivers

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

2015-08-17 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/include

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

2015-08-17 Thread libin . yang
From: Libin Yang 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 --- sound/pci/hda/patch_hdmi.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/sound/pci/hda

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

2015-08-17 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/i915_reg.h| 8 drivers/gpu/drm/i915/intel_audio.c | 40

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

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

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

2015-08-10 Thread libin . yang
From: Libin Yang 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-by: Libin Yang

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

2015-08-10 Thread libin . yang
From: Libin Yang 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 --- include/drm/i915_component.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm

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

2015-08-10 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/i915_reg.h| 6 ++ drivers/gpu/drm/i915/intel_audio.c | 42

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

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

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

2015-08-06 Thread libin . yang
From: Libin Yang 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 --- include/drm/i915_component.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm

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

2015-08-06 Thread libin . yang
From: Libin Yang 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 --- drivers/gpu/drm/i915/i915_reg.h| 6 ++ drivers/gpu/drm/i915/intel_audio.c | 42

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

2015-08-06 Thread libin . yang
From: Libin Yang 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-by: Libin Yang

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

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

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

2015-01-06 Thread libin . yang
From: Libin Yang This patch adds support for dumping audio registers of Cherryview. Signed-off-by: Libin Yang --- lib/intel_reg.h | 2 ++ tools/intel_audio_dump.c | 89 ++-- 2 files changed, 88 insertions(+), 3 deletions(-) diff --git a

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

2014-07-29 Thread libin . yang
From: Libin Yang call the intel_hdmi_prepare() in chv_hdmi_pre_enable() for hdmi audio. Signed-off-by: Libin Yang --- 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/drm/i915/intel_hdmi.c index 5f8f4ca