Re: [PATCH 3/5] ASoC: atmel_ssc_dai: implement left-justified data mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22.07.2019 21:27, Michał Mirosław wrote:
> External E-Mail
> 
> 
> Signed-off-by: Michał Mirosław <mirq-linux@xxxxxxxxxxxx>
> ---
>   sound/soc/atmel/atmel_ssc_dai.c | 13 +++++++++++++
>   1 file changed, 13 insertions(+)
> 
> diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
> index b2992496e52f..04541d7c33fe 100644
> --- a/sound/soc/atmel/atmel_ssc_dai.c
> +++ b/sound/soc/atmel/atmel_ssc_dai.c
> @@ -564,7 +564,20 @@ static int atmel_ssc_hw_params(struct snd_pcm_substream *substream,
>   
>   	switch (ssc_p->daifmt & SND_SOC_DAIFMT_FORMAT_MASK) {
>   
> +	case SND_SOC_DAIFMT_LEFT_J:
> +		/* left-justified format */
> +		fs_osync = SSC_FSOS_POSITIVE;
> +
> +		rcmr =	  SSC_BF(RCMR_STTDLY, 0)
> +			| SSC_BF(RCMR_START, SSC_START_RISING_RF);
> +
> +		tcmr =	  SSC_BF(TCMR_STTDLY, 0)
> +			| SSC_BF(TCMR_START, SSC_START_RISING_RF);
> +
> +		break;
> +
>   	case SND_SOC_DAIFMT_I2S:
> +		/* I2S format = left-justified with start bit and inverted LRCLK */
>   		fs_osync = SSC_FSOS_NEGATIVE;
>   
>   		rcmr =	  SSC_BF(RCMR_STTDLY, 1)
> 

Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@xxxxxxxxxxxxx>

Thanks and best regards,
Codrin
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux