alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Qiao Zhou <zhouqiao@marvell.com>
To: Daniel Mack <daniel@zonque.org>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Eric Miao <eric.y.miao@gmail.com>, Takashi Iwai <tiwai@suse.de>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Haojian Zhuang <haojian.zhuang@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	"trinity.qiao.zhou@gmail.com" <trinity.qiao.zhou@gmail.com>,
	Chao Xie <cxie4@marvell.com>
Subject: Re: [PATCH V0] ASoC: pxa-ssp: add TISSP mode support
Date: Mon, 11 Nov 2013 09:59:07 +0800	[thread overview]
Message-ID: <528039EB.70803@marvell.com> (raw)
In-Reply-To: <527F51E2.7010401@zonque.org>

On 11/10/2013 05:29 PM, Daniel Mack wrote:
> On 11/08/2013 02:52 AM, Qiao Zhou wrote:
>> On 11/06/2013 07:24 PM, Mark Brown wrote:
>>> On Tue, Nov 05, 2013 at 04:30:08PM +0800, Qiao Zhou wrote:
>>>> add TISSP mode support. with this mode enabled, ssp controller
>>>> works in TI-ssp protocol automatically and doesn't need to
>>>> configure sspsp register to set the timing for tx/rx.
>>>
>>> What is TISSP mode in an audio context?
>> It's normal SSP mode, and it has a pulse of one bit clock width, which
>> is the frame start signal. previously it's mainly used for voice call
>> which is mono stream. current I2S or DSP_x format use PSP, which
>> configures the details of transmit/receive timing. we can also use PSP
>> to suit this SSP format. But since the SSP controller provides such HW
>> convenience, so we want to add it. I'm not sure it's proper, and want to
>> ask for suggestions.
>
> This sounds like a special case you want to address, rather than
> something that should be recognized by the core.
>
> The question is what you want to achive here. What kind of peripheral do
> you have connected to the other side of the PXA, and why does it need
> this special needle peak on the frame clock rather than a 50% duty-cycle?
The frame format is like the DSP Mode A in WM8994 spec, and the 
peripheral is a normal codec interface for voice call usage, 
mono-stream, 16 bits.
Here I want to add such SSP mode support in pxa-ssp driver, instead of 
using PSP mode to configure detailed data format in PSP register.
should I handle it under DSP_A case with extra param notifying whether 
it's SSP mode or PSP mode? on the peripheral side, the configuration of 
CODEC DAI should be the same.

below are the modes definition in pxa2xx_ssp.h
#define SSCR0_TISSP	(1 << 4)	/* TI Sync Serial Protocol */
#define SSCR0_PSP	(3 << 4)	/* PSP - Programmable Serial Protocol */
>
> Also, I vaguely remember huge problems we had in setting up the SSP
> controller of a PXA SoC. The SSP IP would do all sort of things instead
> of what's described in the docs. Which silicon are you working on?
The silicon now I'm working on is pxa-9xx chips, but it's the same back 
to pxa-3xx chips.
>
>
> Thanks,
> Daniel
>
-- 

Best Regards
Qiao

      reply	other threads:[~2013-11-11  1:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-05  8:30 [PATCH V0] ASoC: pxa-ssp: add TISSP mode support Qiao Zhou
2013-11-06 11:24 ` Mark Brown
2013-11-08  1:52   ` Qiao Zhou
2013-11-08 10:19     ` Mark Brown
2013-11-10  1:50       ` Qiao Zhou
2013-11-10 11:10         ` Mark Brown
2013-11-11  2:03           ` Qiao Zhou
2013-11-11 11:21             ` Mark Brown
2013-11-15  8:57               ` Qiao Zhou
2013-11-10  9:29     ` Daniel Mack
2013-11-11  1:59       ` Qiao Zhou [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=528039EB.70803@marvell.com \
    --to=zhouqiao@marvell.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=cxie4@marvell.com \
    --cc=daniel@zonque.org \
    --cc=eric.y.miao@gmail.com \
    --cc=haojian.zhuang@gmail.com \
    --cc=lgirdwood@gmail.com \
    --cc=tiwai@suse.de \
    --cc=trinity.qiao.zhou@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).