[Intel-gfx] [PATCH v2] drm/i915: Audio N value computed for pixel doubled modes
Ville Syrjälä
ville.syrjala at linux.intel.com
Fri Sep 26 18:28:53 CEST 2014
On Thu, Sep 25, 2014 at 09:26:36AM -0700, clinton.a.taylor at intel.com wrote:
> From: Clint Taylor <clinton.a.taylor at intel.com>
>
> HDMI audio clock config was incorrectly choosing the default for
> pixel doubled interlaced modes. The table was missing pixel clock
> values 13.500 (27.000) and 13.513 (27.027). Luckily the default N
> value for 25.200 is the same N value for both 27MHz pixel clocks,
> a warning message was being printed with drm.debug set.
>
> ver2: Use 13500 * 1001 / 1000 instead of 13513 constant.
>
> Cc: Jani Nikula <jani.nikula at intel.com>
>
> Signed-off-by: Clint Taylor <clinton.a.taylor at intel.com>
> ---
> drivers/gpu/drm/i915/intel_display.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 858011d..e76a4106 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -7872,6 +7872,8 @@ static struct {
> { 74250, AUD_CONFIG_PIXEL_CLOCK_HDMI_74250 },
> { DIV_ROUND_UP(148500 * 1000, 1001), AUD_CONFIG_PIXEL_CLOCK_HDMI_148352 },
> { 148500, AUD_CONFIG_PIXEL_CLOCK_HDMI_148500 },
> + { 13500, AUD_CONFIG_PIXEL_CLOCK_HDMI_27000 },
> + { 13500 * 1001 / 1000, AUD_CONFIG_PIXEL_CLOCK_HDMI_27027 },
We have double clocked modes where the non-doubled clock is already
27MHz so this seems like a bandaid for one particular case rather than a
full solution.
The HDMI specification makes it clear that the N/CTS stuff depends on
the TMDS clock and not the pixel clock, but BSpec just talks about pixel
clock without further explaining any of this stuff. So should we look
at port_clock rather than the pixel clock here?
> };
>
> /* get AUD_CONFIG_PIXEL_CLOCK_HDMI_* value for mode */
> --
> 1.7.9.5
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Ville Syrjälä
Intel OTC
More information about the Intel-gfx
mailing list