MLK-16159: ASoC: imx_cdnhdmi: refine the N value selection
authorShengjiu Wang <shengjiu.wang@freescale.com>
Tue, 8 Aug 2017 06:34:23 +0000 (14:34 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 02:57:02 +0000 (10:57 +0800)
commite41dab168f83baa4d316a57c38fcc184e88bd3cc
tree642cd4ba8b8a5733ed88e48e467fb9d577391c4e
parent961d62495df7dfcf5177ff4a3ce4a56089cf1acb
MLK-16159: ASoC: imx_cdnhdmi: refine the N value selection

According the HDMI spec, the N value depends on the TMDS
rate, and sample rate. As we set the vic mode in dts file,
use the vic_table to get the TMDS rate, then choose the
proper N value.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
sound/soc/fsl/imx-cdnhdmi.c