From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ladislav Michl Subject: Re: [PATCH 2/7] ASoC: atmel_ssc_dai: Fix TCMR settings in I2S slave mode Date: Tue, 27 Feb 2018 19:50:15 +0100 Message-ID: <20180227185015.GA1961@lenoch> References: <20180130110604.GA18123@lenoch> <20180130110810.GC18123@lenoch> <20180227170921.GE1479@piout.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cvs.linux-mips.org (eddie.linux-mips.org [148.251.95.138]) by alsa0.perex.cz (Postfix) with ESMTP id 2534426770A for ; Tue, 27 Feb 2018 19:50:19 +0100 (CET) Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23990864AbeB0SuRmmma7 (ORCPT ); Tue, 27 Feb 2018 19:50:17 +0100 Content-Disposition: inline In-Reply-To: <20180227170921.GE1479@piout.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Alexandre Belloni Cc: alsa-devel@alsa-project.org, Charles Keepax , Nicolas Ferre , Kuninori Morimoto , anish kumar List-Id: alsa-devel@alsa-project.org On Tue, Feb 27, 2018 at 06:09:21PM +0100, Alexandre Belloni wrote: > This one needs a proper git message because it is not obvious what this > is fixing. And is also incomplete, as all synchronous slave modes need fixing :) > Also, this doesn't exactly fix salve mode. Instead it is enabled > synchronous mode. Maybe we need a new DT property to handle sychronous > RX/TX. Probably something like what is done here: > > https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/sound/fsl-sai.txt#L39 Thank you for usefull pointer, will send v2. > But our default would be asynchronous. > > On 30/01/2018 at 12:08:10 +0100, Ladislav Michl wrote: > > Signed-off-by: Ladislav Michl > > --- > > sound/soc/atmel/atmel_ssc_dai.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c > > index a1e2c5682dcd..8e145487cb18 100644 > > --- a/sound/soc/atmel/atmel_ssc_dai.c > > +++ b/sound/soc/atmel/atmel_ssc_dai.c > > @@ -647,7 +647,7 @@ static int atmel_ssc_hw_params(struct snd_pcm_substream *substream, > > > > tcmr = SSC_BF(TCMR_PERIOD, 0) > > | SSC_BF(TCMR_STTDLY, START_DELAY) > > - | SSC_BF(TCMR_START, SSC_START_FALLING_RF) > > + | SSC_BF(TCMR_START, SSC_START_TX_RX) > > | SSC_BF(TCMR_CKI, SSC_CKI_FALLING) > > | SSC_BF(TCMR_CKO, SSC_CKO_NONE) > > | SSC_BF(TCMR_CKS, ssc->clk_from_rk_pin ? > > -- > > 2.15.1 > > > > -- > Alexandre Belloni, Bootlin (formerly Free Electrons) > Embedded Linux and Kernel engineering > https://bootlin.com