[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BY2PR11MB0837062B05627DCD5540CBB8E7920@BY2PR11MB0837.namprd11.prod.outlook.com>
Date: Fri, 1 Sep 2017 21:37:48 +0000
From: Ryan Lee <RyanS.Lee@...imintegrated.com>
To: Mark Brown <broonie@...nel.org>
CC: "lgirdwood@...il.com" <lgirdwood@...il.com>,
"perex@...ex.cz" <perex@...ex.cz>,
"tiwai@...e.com" <tiwai@...e.com>,
"kuninori.morimoto.gx@...esas.com" <kuninori.morimoto.gx@...esas.com>,
"alsa-devel@...a-project.org" <alsa-devel@...a-project.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"ryan.lee.maxim@...il.com" <ryan.lee.maxim@...il.com>
Subject: RE: [PATCH 1/9] ASoC: max98927: Added support for DSP_A and DSP_B
format
>-----Original Message-----
>From: Mark Brown [mailto:broonie@...nel.org]
>Sent: Tuesday, August 29, 2017 12:00 PM
>To: Ryan Lee <RyanS.Lee@...imintegrated.com>
>Cc: lgirdwood@...il.com; perex@...ex.cz; tiwai@...e.com;
>kuninori.morimoto.gx@...esas.com; alsa-devel@...a-project.org; linux-
>kernel@...r.kernel.org; ryan.lee.maxim@...il.com
>Subject: Re: [PATCH 1/9] ASoC: max98927: Added support for DSP_A and DSP_B
>format
>
>On Mon, Aug 28, 2017 at 04:30:53PM -0700, Ryan Lee wrote:
>
>> + if ((max98927->iface == SND_SOC_DAIFMT_DSP_A) ||
>> + (max98927->iface == SND_SOC_DAIFMT_DSP_B))
>> + return 0;
>> +
>> + /* BCLK configuration */
>
>Why do we not configure the BCLK in DSP modes? That's unusual and seems
>likely to break some systems that rely on exact clocking.
I put this code to avoid overwrite BCLK value in TDM mode. BCLK is being configured by ' max98927_dai_tdm_slot'.
Now I added one more variable to check TDM mode instead of checking DAI_FMT.
>
>Also if we're selecting on format a switch statement is generally better to make
>any further special casing easier in future.
OK. Thanks. But I kept if statement on the modified version because it only have two cases, tdm and non-tdm.
Powered by blists - more mailing lists