[Intel-gfx] [PATCH v3 1/2] drm/i915: provide interface for audio driver to query cdclk

2014-07-03 Thread mengdong . lin
interface for the audio driver to query CDCLK. This is a stopgap solution until a more generic interface between audio and display drivers has been implemented. Signed-off-by: Jani Nikula Reviewed-by: Damien Lespiau Signed-off-by: Mengdong Lin diff --git a/drivers/gpu/drm/i915/intel_pm.c b

[Intel-gfx] [PATCH v2 1/2] drm/i915: provide interface for audio driver to query cdclk

2014-07-02 Thread mengdong . lin
From: Jani Nikula Signed-off-by: Jani Nikula Signed-off-by: Mengdong Lin diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index a90fdbd..21170e5 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -6256,6 +6256,27 @@ int

[Intel-gfx] [PATCH] intel_audio_dump: fix CTS/M value index

2014-03-13 Thread mengdong . lin
From: Mengdong Lin This patch fixes the reversed CTS/M value index when dumping the 'audio M/CTS programing enable' register. Signed-off-by: Mengdong Lin diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c index 46eebdb..3ed2918 100644 --- a/tools/intel_audio_dump.c +

[Intel-gfx] [PATCH 3/7] intel_audio_dump: define IS_HASWELL_PLUS to cover Haswell and its successors

2014-03-03 Thread mengdong . lin
From: Mengdong Lin A macro IS_HASWELL_PLUS(devid) is defined to cover Haswell and its successors, for code sharing. Now it covers HSW and BDW. Signed-off-by: Mengdong Lin Reviewed-by: Haihao Xiang diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c index faa577e..ffd8288 100644

[Intel-gfx] [PATCH 7/7] intel_audio_dump: add support for Valleyview

2014-03-03 Thread mengdong . lin
From: Mengdong Lin This patch adds support for dumping audio registers of Valleyview, by reusing Ironlake code with a different base address and pipe number. Signed-off-by: Mengdong Lin Reviewed-by: Haihao Xiang diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c index e36bb69

[Intel-gfx] [PATCH 2/7] intel_audio_dump: move definitions of transcoder/pipe/port/converter earlier

2014-03-03 Thread mengdong . lin
From: Mengdong Lin Move these enum definitions earlier for future code sharing. Signed-off-by: Mengdong Lin Reviewed-by: Haihao Xiang diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c index 47926e4..faa577e 100644 --- a/tools/intel_audio_dump.c +++ b/tools/intel_audio_dump.c

[Intel-gfx] [PATCH 4/7] intel_audio_dump: define get_num_pipes() to get number of pipes for a device ID

2014-03-03 Thread mengdong . lin
From: Mengdong Lin It's for future code sharing because some registers define their bit fields according to the number of pipes. Signed-off-by: Mengdong Lin Reviewed-by: Haihao Xiang diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c index ffd8288..8632ad3 100644 --- a/

[Intel-gfx] [PATCH 6/7] intel_audio_dump: adjust code alignment

2014-03-03 Thread mengdong . lin
From: Mengdong Lin Signed-off-by: Mengdong Lin Reviewed-by: Haihao Xiang diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c index e6f6002..e36bb69 100644 --- a/tools/intel_audio_dump.c +++ b/tools/intel_audio_dump.c @@ -1344,13 +1344,13 @@ static void dump_aud_config(int index

[Intel-gfx] [PATCH 1/7] intel_audio_dump: support using base address plus an offset to dump registers

2014-03-03 Thread mengdong . lin
From: Mengdong Lin Layout of display and audio registers can be same for different Intel GPUs. For code sharing, this patches defines functions to - set the base address of display and audio registers - dump registers using the base address and an offset Signed-off-by: Mengdong Lin Reviewed-by

[Intel-gfx] [PATCH 0/7] intel_audio_dump: add support for Valleyview

2014-03-03 Thread mengdong . lin
From: Mengdong Lin Layout of display and audio registers can be same for different Intel GPUs, so we want maximum code sharing when adding support for VLV. This patch set: - support using base address plus an offset to dump registers - share common audio dump code for Ironlake, Haswell and

[Intel-gfx] [PATCH v4] drm/i915/vlv: enable HDA display audio for Valleyview2

2013-11-01 Thread mengdong . lin
From: Mengdong Lin This patch defines HD-Audio configuration registers and enables display audio from HDA controller for Valleyview2. v2: fix missing offset VLV_DISPLAY_BASE v3: rename patch from 'enable HDMI audio' to 'enable HDA display audio', since it's for

[Intel-gfx] [PATCH v3] drm/i915/vlv: enable HDA display audio for Valleyview2

2013-10-24 Thread mengdong . lin
From: Mengdong Lin This patch defines HD-Audio configuration registers and enables display audio from HDA controller for Valleyview2. Signed-off-by: Mengdong Lin Reviewed-by: Jesse Barnes diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 9538502..2a4c33f

[Intel-gfx] [PATCH v2] drm/i915/vlv: enable HDMI audio for Valleyview2

2013-10-23 Thread mengdong . lin
From: Mengdong Lin This patch defines audio configuration registers and adds audio enabling code for Valleyview2. Signed-off-by: Mengdong Lin Reviewed-by: Jesse Barnes diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 9538502..2a4c33f 100644 --- a/drivers

[Intel-gfx] [PATCH] drm/i915/vlv: enable HDMI audio for Valleyview2

2013-10-21 Thread mengdong . lin
From: Mengdong Lin This patch defines audio configuration registers and adds audio enabling code for Valleyview2. Signed-off-by: Mengdong Lin diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 9538502..04e5a8b 100644 --- a/drivers/gpu/drm/i915/i915_reg.h

[Intel-gfx] [PATCH v3 1/2] drm/i915/hsw: Add display Audio codec disable sequence for Haswell

2013-09-24 Thread mengdong . lin
apply to both HDMI and DP port.] Signed-off-by: Mukesh Arora Signed-off-by: Mengdong Lin Reviewed-by: Ben Widawsky diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index b042ee5..bda9181 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH v3 2/2] drm/i915/hsw: add flag has_audio in crtc config

2013-09-24 Thread mengdong . lin
From: Mengdong Lin This patch adds a flag "has_audio" for audio presence in intel_crtc->config. HMDI and DP encoders set this flag in their computer_config() if the external monitor supports audio. Later audio sequence will check this flag. Signed-off-by: Mengdong Lin diff --git

[Intel-gfx] [PATCH 1/3] intel_audio_dump/hsw: remove misuse of PCH transcoder configuration register

2013-09-09 Thread mengdong . lin
From: Mengdong Lin The PCH transcoder config register (PCH_TRANS_CONF, 0xf0008) is not the correct config register for transcoder A, B or C. This register is in PCH and for CRT display, nothing to do with display audio. So This patch removes misuse of it as config register for transcoder A/B/C

[Intel-gfx] [PATCH 3/3] intel_audio_dump/hsw: rename some audio configuration registers for Haswell

2013-09-09 Thread mengdong . lin
From: Mengdong Lin For Haswell, some audio configuration registers have changed their name and some bit definitions. This patch applies the changes, and uses subfunctions to parse registers for code reuse. Here is the name change list: Audio configuration: AUD_CONFIG_x to AUD_TCx_CONFIG Audio

[Intel-gfx] [PATCH 0/3] intel_audio_dump/hsw: clean up code

2013-09-09 Thread mengdong . lin
From: Mengdong Lin Three patches are included, reviewed by Haihao, Xiang. Mengdong Lin (3): intel_audio_dump/hsw: remove misuse of PCH transcoder configuration register intel_audio_dump/hsw: align code with tab intel_audio_dump/hsw: rename some audio configuration registers for

[Intel-gfx] [PATCH v2] drm/i915/hsw: Add display Audio codec disable sequence for Haswell

2013-08-29 Thread mengdong . lin
apply to both HDMI and DP port.] Signed-off-by: Mukesh Arora Signed-off-by: Mengdong Lin diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index b042ee5..2946fe7 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -1088,6

[Intel-gfx] [PATCH] [VPG HSW-A] drm/i915:Added HDMI Audio codec disable sequence for HSW.

2013-08-29 Thread mengdong . lin
From: Mukesh The code implements hsw_hdmi_audio_disable func which sets the relevant registers for disabling the audio codec in a call to intel_disable_ddi func.This audio codec disbale sequence is implemented as per the recommendation of the Bspec. Change-Id: If6eefbfe5ef821db547c759caa9ff5dc18

[Intel-gfx] [PATCH] quick_dump/hsw: support haswell in device auto-detection

2013-08-26 Thread mengdong . lin
From: Mengdong Lin This patch exposes is_haswell() to python, to be used by device auto-detection. Signed-off-by: Mengdong Lin diff --git a/tools/quick_dump/chipset.i b/tools/quick_dump/chipset.i index 69dc8df..4b13487 100644 --- a/tools/quick_dump/chipset.i +++ b/tools/quick_dump/chipset.i