[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20191004112256.31396-1-bogdan.togorean@analog.com>
Date: Fri, 4 Oct 2019 14:22:56 +0300
From: Bogdan Togorean <bogdan.togorean@...log.com>
To: <dri-devel@...ts.freedesktop.org>
CC: <airlied@...ux.ie>, <daniel@...ll.ch>, <narmstrong@...libre.com>,
<a.hajda@...sung.com>, <Laurent.pinchart@...asonboard.com>,
<jonas@...boo.se>, <jernej.skrabec@...l.net>,
<allison@...utok.net>, <tglx@...utronix.de>,
<gregkh@...uxfoundation.org>, <swinslow@...il.com>,
<linux-kernel@...r.kernel.org>,
Bogdan Togorean <bogdan.togorean@...log.com>
Subject: [PATCH 2/2] drm: bridge: adv7511: Extend list of audio sample rates
ADV7511 support sample rates up to 192kHz. CTS and N parameters should
be computed accordingly so this commit extend the list up to maximum
supported sample rate.
Signed-off-by: Bogdan Togorean <bogdan.togorean@...log.com>
---
drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c b/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
index 96be7b005c50..f376ed7eb9da 100644
--- a/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
+++ b/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
@@ -27,6 +27,18 @@ static void adv7511_calc_cts_n(unsigned int f_tmds, unsigned int fs,
case 48000:
*n = 6144;
break;
+ case 88200:
+ *n = 12544;
+ break;
+ case 96000:
+ *n = 12288;
+ break;
+ case 176400:
+ *n = 25088;
+ break;
+ case 192000:
+ *n = 24576;
+ break;
}
*cts = ((f_tmds * *n) / (128 * fs)) * 1000;
--
2.23.0
Powered by blists - more mailing lists