[Intel-gfx] [PATCH 4/4] drm/i915: add new param to force audio on or off for HDMI/DP port

2010-09-18 Thread Zhenyu Wang
Two reasons to add this param, one is for some AV device requiring HDMI input for audio, but some device might not have sane EDID info to enable audio on HDMI port. Another is for testing purpose. Signed-off-by: Zhenyu Wang --- drivers/gpu/drm/i915/i915_drv.c |3 +++ drivers/gpu/drm/i915/i

[Intel-gfx] [PATCH 3/4] drm/i915: Enable HDMI audio for monitor with audio support

2010-09-18 Thread Zhenyu Wang
Rely on monitor's audio capability to turn on audio output for HDMI. Tested-by: Wu Fengguang Signed-off-by: Zhenyu Wang --- drivers/gpu/drm/i915/intel_hdmi.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/

[Intel-gfx] [PATCH 2/4] drm/i915: Enable DisplayPort audio

2010-09-18 Thread Zhenyu Wang
This will turn on DP audio output by checking monitor's audio capability. Tested-by: Wu Fengguang Signed-off-by: Zhenyu Wang --- drivers/gpu/drm/i915/intel_dp.c | 61 +++ 1 files changed, 36 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/i915/

[Intel-gfx] [PATCH 1/4] drm/edid: add helper function to detect monitor audio capability

2010-09-18 Thread Zhenyu Wang
To help to determine if digital display port needs to enable audio output or not. This one adds a helper to get monitor's audio capability via EDID CEA extension block. Tested-by: Wu Fengguang Signed-off-by: Zhenyu Wang --- drivers/gpu/drm/drm_edid.c | 92 +

[Intel-gfx] [PATCH 0/4] updated patches for KMS audio

2010-09-18 Thread Zhenyu Wang
I found my check for audio capability within CEA extension might has some conflict with Adam's patch to add more detailed mode from CEA ext block. But I haven't found Adam's patch in next tree, so I just kept my current change. This fixed incorrect probe for DP monitor's audio. Fengguang helped to

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Enable DisplayPort audio

2010-09-18 Thread Zhenyu Wang
On 2010.09.16 14:31:31 +0800, Zhenyu Wang wrote: > This will turn on DP audio output by checking monitor's audio > capability. > oops, please ignore this one. Check EDID data after it's already freed... > Signed-off-by: Zhenyu Wang > --- > drivers/gpu/drm/i915/intel_dp.c |4 > 1 files