Commit b97b6a1f authored by Bogdan Togorean's avatar Bogdan Togorean Committed by Andrzej Hajda

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: default avatarBogdan Togorean <bogdan.togorean@analog.com>
Reviewed-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200413113513.86091-2-bogdan.togorean@analog.com
parent f7f436b9
...@@ -19,13 +19,15 @@ static void adv7511_calc_cts_n(unsigned int f_tmds, unsigned int fs, ...@@ -19,13 +19,15 @@ static void adv7511_calc_cts_n(unsigned int f_tmds, unsigned int fs,
{ {
switch (fs) { switch (fs) {
case 32000: case 32000:
*n = 4096; case 48000:
case 96000:
case 192000:
*n = fs * 128 / 1000;
break; break;
case 44100: case 44100:
*n = 6272; case 88200:
break; case 176400:
case 48000: *n = fs * 128 / 900;
*n = 6144;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment