From 67c58dfc7038e9fd360b148caa63fe31b0a0abc5 Mon Sep 17 00:00:00 2001 From: Erik Gilling Date: Mon, 13 Dec 2010 20:51:43 -0800 Subject: video: tegra: fix HDMI audio programming This was causing the Onkyo TXNR708 to drop out audio. Change-Id: I9b9fd782d39d60c3207ea140a94d074b1338c7fa Signed-off-by: Erik Gilling --- drivers/video/tegra/dc/hdmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/video/tegra/dc/hdmi.c') diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c index 6ad63ba791a4..878cca51283a 100644 --- a/drivers/video/tegra/dc/hdmi.c +++ b/drivers/video/tegra/dc/hdmi.c @@ -686,7 +686,7 @@ static int tegra_dc_hdmi_setup_audio(struct tegra_dc *dc) unsigned audio_freq = 44100; /* TODO: find some way of configuring this */ tegra_hdmi_writel(hdmi, - AUDIO_CNTRL0_ERROR_TOLERANCE(9) | + AUDIO_CNTRL0_ERROR_TOLERANCE(6) | AUDIO_CNTRL0_FRAMES_PER_BLOCK(0xc0) | AUDIO_CNTRL0_SOURCE_SELECT_AUTO, HDMI_NV_PDISP_AUDIO_CNTRL0); @@ -702,7 +702,7 @@ static int tegra_dc_hdmi_setup_audio(struct tegra_dc *dc) tegra_hdmi_writel(hdmi, 0, HDMI_NV_PDISP_HDMI_ACR_CTRL); audio_n = AUDIO_N_RESETF | AUDIO_N_GENERATE_ALTERNALTE | - AUDIO_N_VALUE(config->n); + AUDIO_N_VALUE(config->n - 1); tegra_hdmi_writel(hdmi, audio_n, HDMI_NV_PDISP_AUDIO_N); tegra_hdmi_writel(hdmi, ACR_SUBPACK_N(config->n) | ACR_ENABLE, -- cgit v1.2.3