All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>
Cc: alsa-devel@alsa-project.org, broonie@opensource.wolfsonmicro.com,
	lrg@ti.com
Subject: Re: [PATCH] ASoC: Added PCM short and long frame sync formats
Date: Tue, 27 Mar 2012 09:33:01 +0200	[thread overview]
Message-ID: <4F716D2D.50502@metafoo.de> (raw)
In-Reply-To: <4F71353A.9020704@linux.intel.com>

On 03/27/2012 05:34 AM, Omair Mohammed Abdullah wrote:
> On Tuesday 27 March 2012 09:02 AM, Omair Mohammed Abdullah wrote:
>> The PCM short frame sync sends a short (1 clock length) sync signal before the
>> MSB of data. The PCM long frame sync sends a 1 word length sync signal along
>> with the data.
>>
>> Signed-off-by: Omair Mohammed Abdullah<omair.m.abdullah@linux.intel.com>
>> ---
>>   include/sound/soc-dai.h |    2 ++
>>   1 files changed, 2 insertions(+), 0 deletions(-)
>>
>> diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
>> index c429f24..dc94b25 100644
>> --- a/include/sound/soc-dai.h
>> +++ b/include/sound/soc-dai.h
>> @@ -32,6 +32,8 @@ struct snd_soc_dapm_widget;
>>   #define SND_SOC_DAIFMT_DSP_B		5 /* L data MSB during FRM LRC */
>>   #define SND_SOC_DAIFMT_AC97		6 /* AC97 */
>>   #define SND_SOC_DAIFMT_PDM		7 /* Pulse density modulation */
>> +#define SND_SOC_DAIFMT_SHORT_SYNC	8 /* FRM for 1 clock before MSB */
>> +#define SND_SOC_DAIFMT_LONG_SYNC	9 /* FRM for 1 word starting with MSB */
>>
>>   /* left and right justified also known as MSB and LSB respectively */
>>   #define SND_SOC_DAIFMT_MSB		SND_SOC_DAIFMT_LEFT_J
> 
> What I am looking for is something like this. But 
> SND_SOC_DAIFMT_SHORT_SYNC might be the same as SND_SOC_DAIFMT_DSP_A.

Yes it is. And if you really only have two slots your long sync is
SND_SOC_DAIFMT_LEFT_J, but with the bit clock inverted.

      reply	other threads:[~2012-03-27  7:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21 10:21 Question: PCM short and long sync formats Omair Mohammed Abdullah
2012-03-21 11:51 ` Mark Brown
2012-03-26  9:06   ` Omair Mohammed Abdullah
2012-03-26 10:26     ` Mark Brown
2012-03-26 12:07       ` Omair Mohammed Abdullah
2012-03-26 12:08         ` Mark Brown
2012-03-26 13:29           ` Omair Mohammed Abdullah
2012-03-26 13:33             ` Mark Brown
2012-03-27  3:32               ` [PATCH] ASoC: Added PCM short and long frame " Omair Mohammed Abdullah
2012-03-27  3:34                 ` Omair Mohammed Abdullah
2012-03-27  7:33                   ` Lars-Peter Clausen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F716D2D.50502@metafoo.de \
    --to=lars@metafoo.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=lrg@ti.com \
    --cc=omair.m.abdullah@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.