Re: [PATCH 1/3] ASoC: imx-card: Need special setting for ak4497 on i.MX8MQ

From: S.J. Wang <hidden>
Date: 2022-01-05 09:02:55
Also in: alsa-devel, lkml

Hi
quoted
 			/* sai may support mclk/bclk = 1 */
-			if (of_find_property(np, "fsl,mclk-equal-bclk", NULL))
+			if (of_find_property(np, "fsl,mclk-equal-bclk", NULL))
{
quoted
 				link_data->one2one_ratio = true;
+			} else {
+				int i;
+
+				/*
+				 * i.MX8MQ don't support one2one ratio,
then
quoted
+				 * with ak4497 only 16bit case is supported.
+				 */
+				for (i = 0; i < ARRAY_SIZE(ak4497_fs_mul); i++)
{

Shouldn't this be keyed off checking that we are actually running with an
ak4497?
No need. Here just update the ak4497_fs_mul table, before it is used the
codec type is checked.

Best regards
Wang Shengjiu
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help